Well shit!
OK, so it turns out I fail bigtime at maths :(
The code I had looked reasonable for the background and flying enemies, but trying to add some ground scenery - the trees and bushes - exposed just how broken it was.
I was hoping to have a demo available, but it looks like I need to go right back to the drawing board and actually read up on how 3D projection works...
Other Stuff
Input.py
Input wrapper class for handling multiple controllers in pygame.
SpritePacker.py
Quick and dirty spritesheet generator
Beerware
The Beercave Games Beerware license. Like my games? Buy me a pint!

Comments
It doesn't help that Space
It doesn't help that Space Harrier uses kind of a weird projection.
As best I can make out, 0 on the z axis is *always* level with the screen, so the player shadow is always visible.
The horizon moves with the camera though, so effectively the rear of the view frustrum is moving up and down while the front remains fixed. Tricky...
Post new comment