Rotating Sprites

https://opengameart.org/content/top-down-arcade-racing-game

Looking at the sprite sheet you can see the cars only have three frames.

  • Forwards

  • Turning right

  • Turning left

If we tried to make a game with these we could make some sort of endless driving game where the aim is to continually go forwards up the screen avoiding things.

However we can also use just these three sprites to also have enough patterns to make an 8-way top-down racer. If we get clever with how they’re drawn.

With games of this era it was quite acceptable to reuse sprites by manipulating them. The Next can do the following things with its sprites

  • Rotate 90 degrees clockwise

  • Mirror horizontally

  • Mirror vertically

https://github.com/ncot-technology/specnext-sprites-example/blob/master/src/rotation.c#L242