Home | Rules and Guide | Sign In/Create Account | Write a Post | Reddit | #ludumdare on irc.afternet.org (Info)

Thanks for making Ludum Dare 26 AWESOME! See you in August!

Ludum Dare 26 — April 26-29th, 2013
[ Results: Top 100 Compo, Jam | Top 25 Categories | View My Entry ]
[ View All 2346 Games (Compo Only, Jam Only) | Warmup ]

[ 10 Sec Video Compilation (x3) | 260 Game Video Compilation | IndieCade Deal | Ludum Deals (Unity Deal Ends Soon!) ]


The Last Adventurer postmortem #2 – tech

Posted by
January 3rd, 2012 12:44 pm

[ postmortem #1 | Play the game ]

Thte Last Adventurer is an HTML5 canvas game with Javascript and the GameJS library. My previous LD entries were in python, and I was told if I made a browser game then it would get more plays, but so far that’s not the case. I’ve only got 12 ratings so far, which seems pretty low for a web-based game. Oh well. :(

HTML5 gets used for a lot of demos, and it doesn’t have a good reputation for game making, so I wanted something way more graphically and computationally demanding than Tetris. My game is still a bit rough around the edges, but that’s completely due to the time constraints. I’m sure that HTML5 is more than capable of making an extremely polished game.

I had  a lot of fun working with transformations and transparency. Transparency is used in many places in the game, including shadows, the selection region, the exit portal, and the boss of level 4. I used stretch transformations for anything circular that appears on the ground (shadows, selectors, portal), rotation transformations for the “knock” animation when a character gets hit, and scaling transformations for the level 4 boss and the “quake” spell casting sequence.

The pièce de résistance is the circular gameplay area. An 854×854 square image is pre-rendered. Then, each frame, it’s rotated by the current angle, scaled to an isometric 1:2 ratio, and its drawing region is clipped to an ellipse using the canvas element’s clip method. No caching of transformed images is done, and I think performance holds up well. You can see the smoothness of the rotation when you press LEFT or RIGHT. I should have incorporated that into the gameplay more, but more about that next time!

Leave a Reply

You must be logged in to post a comment.


All posts, images, and comments are owned by their creators.

[cache: storing page]