I can store it in an array, ok, but after how can i paint it? Because if i do
enemy = new Enemy();
enemy2 = new Enemy();
i create two istances of the object, but afer how can i paint it?
I use:
g2d.drawImage(Enemy.getImage(), Enemy.getX(), Enemy.getY(), this);
But obviously it use the class, not the variable.
Images will not be overlyed because coordinates are random.
Excuse me my terrible english.
Wednesday, November 25, 2015
java - How to spawn multiple enemies?
Subscribe to:
Post Comments (Atom)
Simple past, Present perfect Past perfect
Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...
-
I have been programming a 2D game in C++, using the SDL2 graphics API for rendering. My game concept currently features effects that could r...
-
i would like to start this topic for programs to counter-attack link text . I am not aware of a big list but with everyone's help i hope...
-
I'm creating an Arkanoid-like game from scratch. I have no (formal or informal) education of any kind in game-development, so I kinda ma...
No comments:
Post a Comment