-
Notifications
You must be signed in to change notification settings - Fork 3
Screen2
There are some words to deal with Screen2 (TODO write about this)
Running this example:
OPEN T-SC2.BLK
OK
-- this will load/compile everything. It could take some time to finish and you get a ready prompt...
test
-- will run the graphic test: a simple tiled image in Screen2
sc2tile anyname followedBy8bytesWithC,
This word will create a new word capable of setting a tile into tileset with its own graphics.
It should be used followed by bytes separated with C,
. Example:
HEX sc2tile tile1 00 c, c0 c, e0 c, 00 c, 00 c, b6 c, fe c, fe c,
This will define a new word called tile1, after, you can use it:
5 tile1
This will define sixth tile (tile number 5) with graphics contained into the word
sc2palette anyname followedBy8bytesWithC,
This word will create a new word capable of setting a palette entry with its own data.
It should be used with C,
. Example:
HEX sc2palette pal0 62 c, 62 c, 62 c, 62 c, 62 c, 62 c, 62 c, 62 c,
This will define a new word called pal0, after, you can use it:
3 pal0
, this will define fourth palette entry with data defined into the word
PUTTILE ( tile row col -- )
Puts a tile previously loaded with a word created by sc2tile
into row and col specified.