24 hour mark: Got jump + terrain collision working!
I’ve been working on object-to-terrain collision since this morning and it’s been working. Also made some of the player stuff more generic, so now it should be possible to add objects that, um, act more generically.
With respect to the generic stuff, I’ve also made it have velocity and target velocity (which is actually harder than acceleration, but a bit nicer).
But wait! Just in the nick of time (read: about a minute after the 24 hour mark), I got jumping working! And by jumping, I mean it actually detects that you’re on the ground, as opposed to having a magic jetpack.
What’s there:
- Object-to-terrain physics, and not just on the object bottom; there’s a total of 4 pixels checked!
- Gravity!
- You can jump!
- You can’t jump in midair!
What’s not:
- Still need to work on level scrolling.
- Needs more objects.
What might be there:
- Due to me fixing a VDP-related race condition, I think I’ve made it able to load levels that aren’t 16 level tiles wide.
So here’s development snapshot #002. You will need an emulator to run it (linked again just in case you’re not following).
Comments
kibertoad
18. Dec 2011 · 00:12 UTC
Neat!
