-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.fs
47 lines (40 loc) · 806 Bytes
/
game.fs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
title: FortBoy
makercode: TJ
require ./src/textmachine-font.fs
require ./src/tiles.fs
require term.fs
require random.fs
require input.fs
require gbhw.fs
: reseed ( -- )
seed @ 8 lshift
rDIV c@ or
seed ! ;
: wait-a/b
begin key [ k-a k-b or ]L and until ;
require ./src/emit-bytes.fs
require ./src/string-list.fs
require ./src/palette-fade.fs
require ./src/stars.fs
require ./src/partial-page.fs
require ./src/wrap.fs
require ./src/divider.fs
require ./src/maze.fs
require ./src/play.fs
require ./src/screens.fs
require ./src/startup.fs
require ./src/intro.fs
require ./src/outro.fs
require ./src/menu.fs
: init
install-font
install-2bit-tiles
init-term
init-input
$7DFB seed ! ;
: main
to-white 200 ms
init
scroll-down-animation
0 menu-selection !
begin show-menu again ;