File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Java ME Drawing multiple dynamic Sprites on GameCanvas Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Java ME Drawing multiple dynamic Sprites on GameCanvas" Watch "Java ME Drawing multiple dynamic Sprites on GameCanvas" New topic
Author

Java ME Drawing multiple dynamic Sprites on GameCanvas

Guy Dor
Greenhorn

Joined: Mar 13, 2013
Posts: 1
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?

Thanks!
 
 
subject: Java ME Drawing multiple dynamic Sprites on GameCanvas