forked from ramenengine/RamenEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpublish.f
More file actions
39 lines (32 loc) · 1021 Bytes
/
Copy pathpublish.f
File metadata and controls
39 lines (32 loc) · 1021 Bytes
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
\ TODO: support for other systems
create default-font
/assetheader /allot al-default-font , 8 , 0 , \ note: not a registered asset
defer cold :is cold ; \ cold boot: executed once at runtime
defer warm :is warm ; \ warm boot: executed potentially multiple times
\ :is alert
\ zstring
: boot
false to allegro?
false to display
#3 to #globalscale
ALLEGRO_WINDOWED
ALLEGRO_NOFRAME or
to allegro-display-flags
+display
initaudio
['] initdata catch if s" An asset failed to load." alert then
al-default-font default-font font.fnt !
;
: runtime boot cold warm go ;
: relify srcfile dup count s" data/" search if rot place else 3drop then ;
: gather assets> relify ;
[defined] program [if]
:is bye 0 ExitProcess ;
: publish ( - <name> )
cr ." Publishing to " >in @ bl parse type >in ! ." .exe ... "
gather
['] runtime 'main !
program ;
[else]
cr .( PROGRAM not defined; PUBLISH disabled )
[then]