24 lines
593 B
Plaintext
Executable file
24 lines
593 B
Plaintext
Executable file
0 const JEANNE-ANGRY
|
|
1 const CHUCK-GONE
|
|
2 const CHUCK-FOLLOW
|
|
3 const CHUCK-HOME
|
|
4 const CHUCK-STOLEN
|
|
5 const CHUCK-EXPLAINED
|
|
6 const NIGHT
|
|
|
|
7 const FLAG-COUNT
|
|
|
|
array flags FLAG-COUNT 8 / 1 + allot
|
|
|
|
: flagstof ( f -- v f ) dup 8 / flags + swap 8 % 1 swap << ;
|
|
: flagsf! ( b f -- ) flagstof f! ;
|
|
: flag@ ( f -- b ) flagstof f@ ;
|
|
: setflag 1 swap flagsf! ;
|
|
: clearflag 0 swap flagsf! ;
|
|
|
|
: day s" TILES.TIF" loadtiles invalidate-map NIGHT clearflag ;
|
|
: night s" NTILES.TIF" loadtiles invalidate-map NIGHT setflag ;
|
|
|
|
: {car-drive} NIGHT flag@ if {car-lit} else {car} then ;
|
|
|