A Fantasy Computer using Forth as its system language.
Lambda/8
Jupiter ACE
256x192 screen
16-colour palettes
Forth is both the programming and the command language for
Retro-40. You can type commands or even new definitions on the
console.
TBD
Sprite editor
Snake
Retro-40 software is written in Ficl, the Forth-Inspired Command Language.
Vocabularies
<init>
<update>
<draw>
INSTALL
P!
P@
SP!
SP@
M!
M@
SPR
MAP
pressed?
just-pressed?
was-pressed?
MOUSEX
MOUSEY
MOUSEB
17 FICL-VOCABULARY myprog-voc
ALSO myprog-voc DEFINITIONS
\ your code goes here
: ?exit ( -- ) SCANCODE_Q pressed? IF retro-40 THEN ;
\ these are the hooks that R40 expects to find
: <init> ( -- ) S" myprog.spr" load-sprites s" myprog.map" load-map ( ... ) ;
: <update> ( -- ) ?exit ( ... ) ;
: <draw> ( -- ) ( ... ) ;
\ install the software ()
PREVIOUS DEFINITIONS
ALSO myprog-voc
INSTALL myprog
PREVIOUS