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...
-
As in many game libraries such as LWJGL, you can check mouse/keyboard events with Mouse.isButtonDown or Keyboard.IsKeyDown. I want to check ...
-
Will all the three sentences express this idea naturally? Section two roughly symmetrical pieces of your hair at the front. (Used by an Amer...
-
I am looking for a way to calculate surface area of a 3D mesh object and found this code from a Unity forum : public float Area(Mesh m) {...
No comments:
Post a Comment