Demo
The demo shows a pistol at 2x scale, an arrow at 1x scale, and a rifle at 1.5x scale. Negative scaling is also supported, which is shown by the guns flipping vertically.
What does it do?
rsspr takes up to 12 inputs and draws a sprite around a moveable origin point.
While tline() may save a small amount of CPU usage, I fail to comprehend it. What I have here operates fine, and is a significant improvement on my last post.
- Only 165 tokens!
- An average of ~0.7% of the CPU per call
How does it work?
rsspr(dir, x, y, sx, sy, sdx, sdy, xo, yo, hs, vs, mask)
- dir - atan2(x - target_x, y - target_y)
- x/y - The screen x/y origin
- sx/sy - The sprite x/y origin
- sdx/sdy - The sprite width/height minus one
- xo/yo - How much to shift the sprite about the x/y origin
- hs/vs (optional) - The horizontal/vertical scaling
- mask (optional) - The pixel color to exclude
Controls:
- (C) Hold to turn and decelerate, release to accelerate.
- If you can see a red line in front of the player, slow down.
- (X) Press to go to the center and decelerate (costs 10 points).
This is my first game made on PICO-8!
I decided to avoid sprites for this one, with the single exception of a star sprite to mark a new high score. I will be updating this game, so look forward to it!
v1.2 - Arcade Mode!
- Upon death, press X to return to the main menu.
- Press X in the main menu to switch between Normal and Arcade mode!
- Arcade mode makes the walls teleport you to the opposite side of the screen, whereas normal mode's walls just kill you.






0 comments