How to make enemies?
Posted
by Meko
on Stack Overflow
See other posts from Stack Overflow
or by Meko
Published on 2010-03-20T10:35:29Z
Indexed on
2010/03/20
10:41 UTC
Read the original article
Hit count: 374
Hi..I made shoot em up like game.But I have only one ememy which fallows me on screen.But I want to make lots of enemys like each 10 second they will across on screen together 5 or 10 enemys.
ArrayList<Enemies> enemy = new ArrayList<Enemies>();
for (Enemies e : enemy) {
e.draw(g);
}
is it good creating array list and then showing on screen? And Do I have to make some planing movements thoose enemies in my code ? I want that they vill appear not on same pozition.Like First 5 enemies will come top of screen then the other 5 or 10 enemies will come from left side.. so on.What is best solution for this?
© Stack Overflow or respective owner