I have a bit of a complex question for anyone whose up to it.
I am designing a game that is based on using random number of enemies created and placed inside an 2D array.
The parameters are to create between 5 and 10 enemies of three different enemy types and place them at a random 2D point(x,y) inside a 2D Array.
For example: 2 type one enemies + 2 type two enemies + one type three enemy = 5 enemies All numbers randomly generated to equal one overall randomly generated total number.
Enemy one(x1,y1)
Enemy two(x2,y2)
Enemy three(x3,y3)
Enemy four(x4,y4)
Enemy five(x5,y5)
All while possibly avoiding creating an enemy that will spawn on top of the player.
Aucun commentaire:
Enregistrer un commentaire