Hi Guys,
does anyone know a way to lay out enemy sprites proportionally on the screen along X?
I meant this:
1. I'm picking up number of enemies at random(1,10)
2. They should appear along one line (the same Y)
3. Now if there is one enemy it should appear in the middle of the screen
If two enemies than in 1/4 and 3/4 of the screen width (X).
And the same way up to 10 enemies.
Well I figure it out using X,Y,Z array storing position but I'm wondering if there is easier way using some algorithm ??
How would you approach the problem ?
Thanks
E