Game的基本元素.[小糊涂的灵感]

  • 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.

  •  

posted @ 2004-11-03 10:41  小糊涂的超级blog  阅读(414)  评论(0编辑  收藏  举报