Hi, I’m building a java game with tileMap
I’ve a Sprite class and some Enemy class that extends Sprite (ex. Enemy1, Enemy2, Enemy3…)
The Sprites are added in a LinkedList in the Tilemap Class with
addSprite(map,enemy1Sprite,x,y);
and are got with
Iterator i = map.getSprites();
while(i.hasNext())
Now I want to get velocity (speed for Enemy1 is differetn by Enemy2, Enemy3)
How I can Do this??
(some code example??)
