Log In  


Here's a thread to tutorialize how to do the most common Pico-8 commands in Picotron. Show how they are the same, or how they may be slightly different.

So:

--spr
--sspr
--sfx
--music
--rects, circs, lines
--pset, pget?
--mset, mget?
--fget, fset?
--math stuffs
--etc.

Please note if a) the command is part of the list of Picotron commands and b) if it currently works (or may just not be implemented yet).

Picotron API functions: https://www.lexaloffle.com/bbs/?pid=143245#p

Please no questions, only answers here. Thanks!

5


spr() and sspr() are present, but work slightly differently, as each sprite in Picotron is a somewhat separate entity, and can be of varying resolution.

spr() uses mostly the same parameters, namely sprite number, onscreen x-coord, onscreen y-coord, and x and y flip (booleans). width and height parameters no longer seem to make any difference, however, with the drawn sprite always being its full set size.

sspr() seems to work identically to its Pico-8 implementation, with the exception that the sprite number must now be specified as the first parameter.


from the pico-8 manual:

There are 9 bitwise functions available in PICO-8:

BAND(X, Y) -- BOTH BITS ARE SET
BOR(X, Y)  -- EITHER BIT IS SET
BXOR(X, Y) -- EITHER BIT IS SET, BUT NOT BOTH OF THEM
BNOT(X)    -- EACH BIT IS NOT SET
SHL(X, N)  -- SHIFT LEFT N BITS (ZEROS COME IN FROM THE RIGHT)
SHR(X, N)  -- ARITHMETIC RIGHT SHIFT (THE LEFT-MOST BIT STATE IS DUPLICATED)
LSHR(X, N) -- LOGICAL RIGHT SHIFT (ZEROS COMES IN FROM THE LEFT)
ROTL(X, N) -- ROTATE ALL BITS IN X LEFT BY N PLACES
ROTR(X, N) -- ROTATE ALL BITS IN X RIGHT BY N PLACES

they doesn't seem to be available in picotron



[Please log in to post a comment]