A collection of all my PNP mods!
original pnp: https://www.lexaloffle.com/bbs/?tid=42715
carts:
[hidden]








DISCRIPTION
Simple Timing based racing game.
Stop the white bar on correct color to gain speed.
Different colors have different effects:
-BLUE: nothing
-YELLOW: small boost
-GREEN: big boost
-RED: slow down
Beat opponent to win.
CONTROLS:
Press X to select difficulty and to stop white bar.
Have fun!!
P.S: First game published so feedback would be appreciated :D

I think rotation would be a nice addition, even if it is only in 4 directions. Possible syntax:
-- draw sprite 1 at (60, 60), rotated 90 degrees clockwise spr(1, 60, 60, 1) -- draw sprite 1 at (60, 60), rotated 180 degrees (effectively equivalent to flipping is both directions) spr(1, 60, 60, 2) -- draw a 2x2 sprite starting from sprite 1 at (60, 60), rotated 90 degrees counterclockwise spr(1, 60, 60, 2, 2, 3) |
Syntax with rotation mode as the last argument could work similar to 'print' in the way that print reads the second argument as the color if not enough arguments are given

Hello all...
I have a maths problem.
I have two points, t1 & t2 that I want to find the centre of.
t1 & t2 are two point on the x axis.
Another object's x approaches this middle point.
I have this so far:
if flr(self.x+3) == abs(self.t1-self.t2)/2+abs(self.t1)
t1 minus t2 divided by 2 giving half the distance between the two, added on to t1.
This works if t1 is smaller than t2.
But it doesn't work if t2 is smaller than t1, because the the 'middle point' is off to the right of t2!!
Can anyone suggest a better formula for getting the middle of two points regardless of which one is smaller?
I'm stumped.
Many thanks for your time and I hope this makes sense....
Peej


