Log In  

Cart #10099 | 2015-04-22 | Code ▽ | Embed ▽ | No License
2

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.

P#10100 2015-04-22 12:20 ( Edited 2015-05-25 14:45)

Cart #10103 | 2015-04-22 | Code ▽ | Embed ▽ | No License

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.

P#10104 2015-04-22 13:40 ( Edited 2015-04-22 17:40)

Cart #10105 | 2015-04-22 | Code ▽ | Embed ▽ | No License

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

P#10106 2015-04-22 14:00 ( Edited 2015-04-22 18:00)

Cart #10107 | 2015-04-22 | Code ▽ | Embed ▽ | No License

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.

P#10108 2015-04-22 14:48 ( Edited 2015-04-22 18:48)

Cart #10116 | 2015-04-22 | Code ▽ | Embed ▽ | No License

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

P#10118 2015-04-22 16:15 ( Edited 2015-04-22 20:15)
1

Cart #10133 | 2015-04-22 | Code ▽ | Embed ▽ | No License
1

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.

P#10134 2015-04-22 17:05 ( Edited 2015-04-22 21:05)

nice progress! very hard to play tho...

P#10919 2015-05-25 10:45 ( Edited 2015-05-25 14:45)

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2021-04-14 10:39 | 0.037s | 2097k | Q:76