A simple little 2.5d test. Arrow keys move left/right and "forward/back", Z key jumps.
I created this effect by drawing the sprite to the screen at X, Y+Z*"angle" where "angle" is a value between 0 and 1.
For this demo, it's set at 0.5.



Made the thing do some fancy depth lines and a change in the color of the landscape. Each line marks 32 units of travel, and every 1024 units you'll reach a new zone. There's also some enemies, which don't do much right now because I'm having trouble getting the collision checks to work.



This version has shadows for enemies, and collision that works properly.



Added a plasma blaster that fires with X. One-second cooldown. You get 100 points for killing an enemy, and each zone you pass awards you 1000 points times the zone number. All it really needs now is sound and maybe some stars.
336 lines of code to make this happen. Hot damn.



Sound's added, and objects have the proper draw order now.



Touched it up a bit. Got rid of some zones that messed with the player's ability to see their ship. Added lives and zone counter. Added game over state.
[Please log in to post a comment]