habbo5 | isometric tile projection engine

Results 1 to 3 of 3
  1. #1
    o/ Konquer is offline
    MemberRank
    Apr 2014 Join Date
    464Posts

    habbo5 | isometric tile projection engine

    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 TypeScript and Webpack for module handling and bundling. I also highly recommend using visual studio code to automate the compiling process.


    Some images and snippets
    Spoiler:







    Demo
    habbo5 demo

    Download
    habbo5


    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.


  2. #2
    habbo5 | isometric tile projection enginehabbo5 | isometric tile projection engine pel is offline
    MemberRank
    Jan 2012 Join Date
    Munich, GermanyLocation
    384Posts

    Re: habbo5 | isometric tile projection engine

    Nice, reminds me of the apollo project. http://forum.ragezone.com/f353/apoll...e-cms-1086191/

  3. #3
    o/ Konquer is offline
    MemberRank
    Apr 2014 Join Date
    464Posts

    Re: habbo5 | isometric tile projection engine

    Quote Originally Posted by pel View Post
    Nice, reminds me of the apollo project. http://forum.ragezone.com/f353/apoll...e-cms-1086191/
    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 :)



Advertisement