Report as inappropriate.
Left and Right arrows to move. Up arrow to shoot.
I created an actor called 'Row' to track (by using 'getIntersectingObjects') the invaders on each row and had the world tell each row object when and in which direction to move the invaders in that row. The row object, in turn, moves each invader in that row, getting back the state of each one being on the edge or not. That state is then returned back to the world, which will then, if necessary, shift all invaders down and change the direction AFTER all rows have completed that sequence of moves.
4352 views / 32 in the last 7 days
2 votes | 0 in the last 7 days
This scenario is a member of: Demos by danpost
Want to leave a comment? You must first log in.