Sign in to follow this  

Unity [web] Tempest Game Engine

This topic is 2783 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

URL: http://tge.stormwarestudios.com/ Further to the development of a web-based game engine technology, I have released a small client-only demo of the next incarnation of TGE, or Tempest Game Engine. - Data is loaded from XML maps, generated by TilEd map editor - Client employs line-of-sight algorithm found in earlier Ultima games (III-V) - Mouse and keyboard input is possible (keyboard input is currently employed in the demo) My idea for this engine is to utilize random generators for dungeons, worlds, and civilizations (similar to Diablo, Dwarf Fortress, etc, generated on a 'first instance' basis). Additionally, since the game is rendered entirely inside the canvas object, I am toying with the idea of deploying a custom-written user interface (not looking forward to it, though). I had considered using the browser to fulfill this need, however it seems almost a necessity for elegance' sake to keep the UI inside the canvas element. I've begun a small community site geared toward TGE's development, you can find it here: http://tge.stormwarestudios.com/. I strongly recommend, if you try the demo, to use Chrome, secondarily Safari then Firefox, and lastly enjoy the screenshots if you have nothing else :) [Edited by - stormwarestudios on March 11, 2010 5:08:47 AM]

Share this post


Link to post
Share on other sites
Hey, the demo looks pretty good -- runs great in FireFox 1.6 :)

I've been working on a javascript RTS game engine for about a year now, and I wanted to mention a few things I have learned:

1.) It would probably be best to draw the UI within the same canvas. However, make sure it is abstracted as much as possible from the game rendering. Have something like:

var ctx = ...;
drawMap(ctx);
drawMapObjects(ctx);//castles or towns, things that PC's can walk on... if they aren't drawn in the drawMap function
drawEntities(ctx);
drawFX(ctx);
drawUI(ctx);

etc. etc. etc... Have a different draw function for every different layer you want to draw, and just call the functions in the order you want them to be drawn.

2.) I noticed on your website that you want to add multiplayer functionality using AJAX. My best advice with respect to this is... DON'T DO IT. There's a bunch of different things that are wrong with AJAX that makes it bad for games networking. That doesn't mean there's no hope, though. The HTML5 standard includes support for something called WebSocket. Right now only a few browsers have support for it, but someone wrote a library that detects browsers that don't have it, and use a flash bridge to implement the WebSocket. I have tested it in a bunch of different browsers, and it works really nicely. I'm working on trying to integrate it into my engine now.

Here is a link to the library:
http://github.com/gimite/web-socket-js
(The example is in Ruby... so try to convert it to PHP as an exercise. If you have trouble, feel free to send me a message and I can send you my PHP socket server :))

Here's a link to a javascript game very similar to yours (IE only):
http://www.smokymonkeys.com/triglav/

Share this post


Link to post
Share on other sites
Read through your page again and noticed you were having trouble with drawing speeds. Canvas draws seem to be optimized to draw small amounts of large images, so it may help your framerate if you pre-render large sections of your map or the whole map (either on the server with PHP GD or on the client using data urls) and using 1-4 canvas draw calls to render the relevant portions. It's important to note that IE doesn't support data urls over 64k (I think -- not sure about newer versions), so proceed with caution.

Share this post


Link to post
Share on other sites
Quote:
Original post by stormwarestudios
Researching the potential with WebSockets; I'm liking it.


If you go with sockets I have both a PHP5 based socket server already written as well as a Ruby 1.9 one.

Share this post


Link to post
Share on other sites
Hello,

The demo looks good in my opinion. It is also very fast (using firefox 1.6).

However, i'm working on a browser game aswell (naxasius.com) and have some questions:
* Isn't it easy to "cheat" with the xml based solution? What i mean is: There is no server-side check if i move from x to y.
* How are you planning actions (e.g.: attacking a mob, viewing an object) in the map. Is this also done by xml? That looks to me that i can make a custom javascript/webpage who renders the full 'game'.

Thanks for the Web-socket. It looks very handy.

Share this post


Link to post
Share on other sites

This topic is 2783 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Forum Statistics

    • Total Topics
      628707
    • Total Posts
      2984310
  • Similar Content

    • By Dafu
      FES Retro Game Framework is now available on the Unity Asset Store for your kind consideration!
      FES was born when I set out to start a retro pixel game project. I was looking around for an engine to try next. I tried a number of things, from GameMaker, to Fantasy Consoles, to MonoGame and Godot and then ended up back at Unity. Unity is just unbeatable in it's cross-platform support, and ease of deployment, but it sure as heck gets in the way of proper retro pixel games!
      So I poured over the Unity pipeline and found the lowest levels I could tie into and bring up a new retro game engine inside of Unity, but with a completely different source-code-only, classic game-loop retro blitting and bleeping API. Months of polishing and tweaking later I ended up with FES.
      Some FES features:
      Pixel perfect rendering RGB and Indexed color mode, with palette swapping support Primitive shape rendering, lines, rectangles, ellipses, pixels Multi-layered tilemaps with TMX file support Offscreen rendering Text rendering, with text alignment, overflow settings, and custom pixel font support Clipping Sound and Music APIs Simplified Input handling Wide pixel support (think Atari 2600) Post processing and transition effects, such as scanlines, screen wipes, screen shake, fade, pixelate and more Deploy to all Unity supported platforms I've put in lots of hours into a very detail documentation, you can flip through it here to get an better glimpse at the features and general overview: http://www.pixeltrollgames.com/fes/docs/index.html
      FES is carefully designed and well optimized (see live stress test demo below). Internally it uses batching, it chunks tilemaps, is careful about memory allocations, and tries to be smart about any heavy operations.
      Please have a quick look at the screenshots and live demos below and let me know what you think! I'd love to hear some opinions, feedback and questions!
      I hope I've tickled your retro feels!



      More images at: https://imgur.com/a/LFMAc
      Live demo feature reel: https://simmer.io/@Dafu/fes
      Live blitting stress test: https://simmer.io/@Dafu/fes-drawstress
      Unity Asset Store: https://www.assetstore.unity3d.com/#!/content/102064

      View full story
    • By Dafu
      FES Retro Game Framework is now available on the Unity Asset Store for your kind consideration!
      FES was born when I set out to start a retro pixel game project. I was looking around for an engine to try next. I tried a number of things, from GameMaker, to Fantasy Consoles, to MonoGame and Godot and then ended up back at Unity. Unity is just unbeatable in it's cross-platform support, and ease of deployment, but it sure as heck gets in the way of proper retro pixel games!
      So I poured over the Unity pipeline and found the lowest levels I could tie into and bring up a new retro game engine inside of Unity, but with a completely different source-code-only, classic game-loop retro blitting and bleeping API. Months of polishing and tweaking later I ended up with FES.
      Some FES features:
      Pixel perfect rendering RGB and Indexed color mode, with palette swapping support Primitive shape rendering, lines, rectangles, ellipses, pixels Multi-layered tilemaps with TMX file support Offscreen rendering Text rendering, with text alignment, overflow settings, and custom pixel font support Clipping Sound and Music APIs Simplified Input handling Wide pixel support (think Atari 2600) Post processing and transition effects, such as scanlines, screen wipes, screen shake, fade, pixelate and more Deploy to all Unity supported platforms I've put in lots of hours into a very detail documentation, you can flip through it here to get an better glimpse at the features and general overview: http://www.pixeltrollgames.com/fes/docs/index.html
      FES is carefully designed and well optimized (see live stress test demo below). Internally it uses batching, it chunks tilemaps, is careful about memory allocations, and tries to be smart about any heavy operations.
      Please have a quick look at the screenshots and live demos below and let me know what you think! I'd love to hear some opinions, feedback and questions!
      I hope I've tickled your retro feels!



      More images at: https://imgur.com/a/LFMAc
      Live demo feature reel: https://simmer.io/@Dafu/fes
      Live blitting stress test: https://simmer.io/@Dafu/fes-drawstress
      Unity Asset Store: https://www.assetstore.unity3d.com/#!/content/102064
    • By Dafu
      Hello all,
      I've been hard at work on a new retro pixel-perfect framework called FES Retro Game Framework. It is now available on the Unity Asset Store for your kind consideration!
      FES was born when I set out to start a retro pixel game project. I was looking around for an engine to try next. I tried a number of things, from GameMaker, to Fantasy Consoles, to MonoGame and Godot and then ended up back at Unity. Unity is just unbeatable in it's cross-platform support, and ease of deployment, but it sure as heck gets in the way of proper retro pixel games!
      So I poured over the Unity pipeline and found the lowest levels I could tie into and bring up a new retro game engine inside of Unity, but with a completely different source-code-only, classic game-loop retro blitting and bleeping API. Months of polishing and tweaking later I ended up with FES.
      Some FES features:
      Pixel perfect rendering RGB and Indexed color mode, with palette swapping support Primitive shape rendering, lines, rectangles, ellipses, pixels Multi-layered tilemaps with TMX file support Offscreen rendering Text rendering, with text alignment, overflow settings, and custom pixel font support Clipping Sound and Music APIs Simplified Input handling Wide pixel support (think Atari 2600) Post processing and transition effects, such as scanlines, screen wipes, screen shake, fade, pixelate and more Deploy to all Unity supported platforms I've put in lots of hours into a very detail documentation, you can flip through it here to get an better glimpse at the features and general overview: http://www.pixeltrollgames.com/fes/docs/index.html
      FES is carefully designed and well optimized (see live stress test demo below). Internally it uses batching, it chunks tilemaps, is careful about memory allocations, and tries to be smart about any heavy operations.
      Please have a quick look at the screenshots and live demos below and let me know what you think! I'd love to hear some opinions, feedback and questions!
      I hope I've tickled your retro feels!



      More images at: https://imgur.com/a/LFMAc
      Live demo feature reel: https://simmer.io/@Dafu/fes
      Live blitting stress test: https://simmer.io/@Dafu/fes-drawstress
      My own game I started working on using FES, a roguelike, very early: https://simmer.io/@Dafu/merl
      Unity Asset Store: https://www.assetstore.unity3d.com/#!/content/102064
       
       
    • By Apollo Cabrera
      Yasss!!! My first Unity3d game is on the App Store and Google Play.
      Download please! About 30 minutes to get through 5 missions.
      Let me know what you guys think.
      Thanks a bunch
       
    • By Mert Oguz
      well, i have started developing games last year, alone , I made a singleplayer 3d openworld rpg on unity you can look at it on googleplaystore ( kooru stone rpg ) whatever, this year, i wanted to make mmo, which gone really fine until I first try real hosting, I was working on "wamp" until then. The reason i am desperate now is that the way my game works.
      On my pc, using wamp mysql , with localhost as host for my game, i was testing my mmorpg with using andorid emulators, ofcourse no lag no issues no restrictions, beautiful dream... But then, I wanted to get real host from web, so, I rent a basic, cheaphest ever web host ( 10$ year ), and transferred my php files along with sql database. 
      So, I launched the game, still no issues, tried to handle 2-3 players by using my pc, phone, friend's phone...  
      After a while, ( after really short time (3-4mins)) host started not to respond, beacause those web hosting were not fit to handle mmos, i predicted that.
      now what i am explaining is that my game works like this and asking what way should i use to handle it :
      - Creates web request ( like : webhost.com/game/getplayerdata.php?ID=2 )
      -Reads request ( request result be like = "ID2-GoodGuyXx-23-123-4-123-43 )
      -Builds player using result string
      -does similar requests REEAALY FREQUENTLY  ( total requests of 8 - 12 times per seconds )
      With my current ultimate cheap web hosting, i can handle 2 players with low lag ( lol ) but, i want to handle around 20-100 players,
      just need a clear path, i have been struggling with google cloud sql and other vps server dedicated server options, i dont wanna pay much and get ripped off.
  • Popular Now