11 |
by Mot
This game is a little demo of a 2D transformation library I put together.
I chose a simple Asteroids clone because it is a good example of rotation and scaling.
The first tab contains the game. The second tab contains the library.
The library adds commands that affect 2D drawing commands, allowing you to rotate, scale and translate output, similar to the transformation commands in HTML Canvas or the old OpenGL 1.1 matrix stack.
It affects the following Pico-8 drawing commands:
- pset
- line
- rect/rectfill
- circ/circfill
- map
Note: spr and sspr are not affected.
The transformation commands are:
P#116309 2022-08-26 04:30 ( Edited 2022-08-26 04:39)
This looks great. Like having Processing available inside the Pico-8.
P#116510 2022-08-29 17:30
[Please log in to post a comment]