46 lines
904 B
Plaintext
Executable file
46 lines
904 B
Plaintext
Executable file
: blah ' seremit task-emit ! ;
|
|
blah
|
|
|
|
1 const DEV
|
|
|
|
: devon 1 ' DEV redefine ;
|
|
|
|
s" game.log" open seekend fdeactivate const LOGFILE
|
|
: emit-log ' fputc LOGFILE withfp ;
|
|
: atexit LOGFILE factivate close ;
|
|
|
|
: start-repl activate blah ' emit-log task-echo !
|
|
s" .:: J O R T H ( jean forth) ::." type cr
|
|
begin receive loadstring s" ok" type cr again ;
|
|
task const REPL
|
|
REPL start-repl
|
|
|
|
defer tick
|
|
defer draw
|
|
defer loadlevel
|
|
|
|
:noname
|
|
s" input.jor" loadfile
|
|
s" timer.jor" loadfile
|
|
s" entity.jor" loadfile
|
|
s" footer.jor" loadfile
|
|
s" map.jor" loadfile
|
|
s" state.jor" loadfile
|
|
s" jiles.jor" loadfile
|
|
s" job.jor" loadfile
|
|
s" game.jor" loadfile
|
|
; execute
|
|
|
|
intern lev00001.jor
|
|
intern lev00002.jor
|
|
intern lev00003.jor
|
|
intern lev00004.jor
|
|
intern lev00005.jor
|
|
intern end.jor
|
|
|
|
:noname loadfile ; checkpoint _loadlevel
|
|
' _loadlevel ' loadlevel redefine
|
|
|
|
lev00005.jor loadlevel
|
|
|