2020-02-02 23:33:07 +00:00
|
|
|
: blah ' seremit task-emit ! ;
|
|
|
|
blah
|
|
|
|
|
2020-02-22 03:38:32 +00:00
|
|
|
0 const DEV
|
|
|
|
|
|
|
|
: devon 1 ' DEV redefine ;
|
2020-02-02 23:30:22 +00:00
|
|
|
|
2020-02-02 23:33:07 +00:00
|
|
|
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
|
2020-02-02 23:30:11 +00:00
|
|
|
intern lev00002.jor
|
2020-02-17 02:36:02 +00:00
|
|
|
intern lev00003.jor
|
2020-02-02 23:30:11 +00:00
|
|
|
intern end.jor
|
2020-02-02 23:33:07 +00:00
|
|
|
|
|
|
|
:noname loadfile ; checkpoint _loadlevel
|
|
|
|
' _loadlevel ' loadlevel redefine
|
|
|
|
|
2020-02-17 02:36:02 +00:00
|
|
|
lev00003.jor loadlevel
|
2020-02-02 23:30:11 +00:00
|
|
|
|