Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java ME Drawing multiple dynamic Sprites on GameCanvas

Guy Dor
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to draw on GameCanvas multiple dynamic Sprites such as gun shots. I have 2 main classes:GameCanvas and GameController GameController holds a Vector of my gun shots.

GameCanvas has an access to GameController's Vector of Sprite and it also has a render() method which draws Sprites on screen.

LayerManager holds all the Sprites I want to draw.

How can I draw all objects in GameController's Vector on screen?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic