Log In  

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

P#95899 2021-08-11 22:54 ( Edited 2021-08-11 22:57)

You can check this post https://www.lexaloffle.com/bbs/?tid=38548 for the tline implementation I'm using in all my carts and a link to @freds72 alternative

P#95913 2021-08-12 12:00

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-20 01:37:52 | 0.013s | Q:9