-
GameManager Handles keyboard input, updates sprites, provides collision detection, and plays sound and music.
-
TileMapRenderer Draws the tile map, parallax background, and sprites.
-
ResourceManager Loads images, creates animations and sprites, and loads levels.
-
-
On Windows machines, the granularity of the system timer isn't accurate enough for smooth scrolling. "Optimization Techniques."
-
Using sprite bounds for collision detection isn't accurate enough. Smaller collision bounds could be used instead.
-
Also, you could use better collision handling for times when the sprite travels across large distances between frames.