Yay, platformer physics!

 

That’s right–I have a little test sprite moving left and right and jumping around!  The white background tiles are loaded from a 16×12 bitmap.  The best part is that the little guy doesn’t glitch through anything!  Hooray~

Unfortunately SDL.net doesn’t seem to really do subpixel render stuff unless you get into OpenGL which I’m not going to do for this project.  But I need to use floating-point coords for logic, otherwise the jumping will look really weird.  So I’m constantly having to round off my logical floating-point coords to int coords for rendering…which actually isn’t too bad.