Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

habbo5 | isometric tile projection engine

Elite Diviner
Joined
Apr 5, 2014
Messages
464
Reaction score
223
About a year ago I started working on what was to become a canvas based game engine for html5 retros. The goal was to create the tile projection and rendering of avatars and furniture. Unfortunately I lost interest fairly quickly and only finished the room rendering and some misc stuff like camera dragging etc.

What separates this from other html5 releases on here is that it is purely canvas based. No DOM elements or third party engines are used whatsoever. It is also fairly well structured and easy to build upon.

Not sure if anyone will see fit to further work on this, but for what it's worth, it's a nice resource to look at if you want to get into making your own html5 hotel or just an isometric styled game in general.


Some features that might be useful to someone out there
  • Async preloading of assets
  • Script based canvas creation and handling
  • Isometric projection of tiles
  • Hovering over individual tiles
  • Screen coordinates -> tile coordinates conversion
  • Tile coordinates -> center screen coordinates of tile conversion
  • Relative camera positions (dragging the room around)

This project was made with and for module handling and bundling. I also highly recommend using to automate the compiling process.


Some images and snippets
CE6jCaJ - habbo5 | isometric tile projection engine - RaGEZONE Forums

DbWdF8v - habbo5 | isometric tile projection engine - RaGEZONE Forums

InZ2Ad1 - habbo5 | isometric tile projection engine - RaGEZONE Forums


s29g1e9 - habbo5 | isometric tile projection engine - RaGEZONE Forums

Demo


Download



If you are creating a canvas based version of habbo and ever get to the point of having to implement pixel perfect click detection on individual furniture and avatars. I recommend using a shadowcanvas that draws all your entities with a different color and stores the relation betwen color->entity in a dictionary of some sort. When the user clicks on the main canvas, check the color of the clicked screen coordinates on the shadowcanvas and get the corresponding entity.
 

Attachments

You must be registered for see attachments list
Elite Diviner
Joined
Apr 5, 2014
Messages
464
Reaction score
223
Yes, I remember looking at that before I started and would probably have used it as a base if it was made with canvas and not svg.

Taking another look at what you guys accomplished with apollo is proving to be fairly motivating towards actually finishing avatars and furniture here. Unfortunately I don't have time to do it, yet :)
 
Back
Top