I’ve just gotten “enough” ground done on a basic platformer done to have enough code so that people have enough code to tell where I’m going and any pitfalls I might run into. I basically have a very simple testcell prepared and functioning with most of the “physics” effects along with basic rendering tasks. It’s also worth noting that there are a lot of things to do(sprite animation, more complex poly features, and AI), I just want to get other’s views the project so far.
This project currently features.
Collision - Of an individual point to a polygon
Collision response - a hard coded method for figuring out what an object should do upon a collision. These responses can be tweeked for a very wide range of effects.
Physics - a core physics engine that allows for simple gravity, impulse, and acceleration forces. weight is not currently implemented or needed. It’s also worth noting that I’m doing very little cheating with the physics.
Imaging - a really broken image loading method that I will be working on when I work on actual sprite animation
Imaging Scrolling - the ability to implement scrolling, actually you’re expected to implement it.
Imaging Backround - A rendering class that allows for rendering of a backround/multiable. though very limited.
Pause - properly pauses the game and displays a different panel while paused.
The project according to eclipse should be compatible with java 1.4 though it’s compiled in 1.6(I think). Just recompile the PlatApplet if you need to.
I also provided everything as/in an independent folder(source, compiled, resources) and you should be able to run it straight from the HTML file.
http://lithos.110mb.com/BasicPlatformerCodeReview.zip
EDIT:
I’m not looking for style, I’m just looking for people to point out the “broad” implications, and/or mistakes for what I’m working on.