/
fase.bat
155 lines (113 loc) · 4.14 KB
/
fase.bat
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
rem compiling options
@echo off
rem if not exist z88dkenv.bat (
rem echo.
rem echo Error: z88dkenv.bat doesn't exist. Please copy it into this folder.
rem exit /b 1
rem )
echo #########################
echo #### remove old TAP ####
echo #########################
del game.tap
echo #########################
echo ## compile with ##
echo ## FASE GFX ##
echo #########################
echo #########################
echo #### setting paths ####
echo #########################
rem /////////////////////////////////////////////////
SET PATH=%PATH%;C:\z88dk10
SET Z80_OZFILES=C:\z88dk10\lib
SET ZCCCFG=C:\z88dk10\lib\config
SET PATH=C:\z88dk10\bin;%PATH%
SET Z88DK_ENV_id074741=true
rem /////////////////////////////////////////////////
echo #########################
echo ## done setting paths ##
echo #########################
rem pause
if "%1"=="gfx" (
bin\Png2Rcs gfx\loading.png build\loading.rcs build\loading.atr
bin\zx7b build\loading.rcs build\loading.rcs.zx7b
bin\zx7b build\loading.atr build\loading.atr.zx7b
rem <-------------------------------------
rem copy mus\music.asm build\music.asm
bin\png2rcs gfx\menu.png build\menu.rcs build\menu.atr
bin\zx7b build\menu.rcs build\menu.rcs.zx7b
bin\zx7b build\menu.atr build\menu.atr.zx7b
bin\Png2Rcs gfx\control.png build\control.rcs build\control.atr
bin\zx7b build\control.rcs build\control.rcs.zx7b
bin\zx7b build\control.atr build\control.atr.zx7b
rem bin\GenTmx 3 3 10 10 gfx\map.tmx
bin\TmxCompress gfx\map.tmx build\map_compressed.bin > build\defmap.asm
echo #########################
echo ## MUSIC ##
echo #########################
rem 128k only music
rem bin\sjasmplus asm\player.asm > nul
rem bin\zx7b build\player.bin build\player.zx7b
rem push music data (notes) to the build directory
rem bin\xm2tritone mus\music.xm build\music.asm
copy mus\music.asm build\music.asm
bin\step1
rem compiling the player file
rem bin\sjasmplus asm\music.asm > nul
rem compressing and moving the compiled player
rem if exist mus/music.xm bin\zx7b
rem build\music.bin build\music.zx7b
rem bin\zx7b build\music.bin build\music.zx7b
echo #########################
echo ## MUSIC ##
echo #########################
goto cont
)
rem pause
echo ######################
echo ##graphics and sound##
echo ######################
if "%1"=="config" (
:cont
bin\sjasmplus asm\engine0.asm > nul
bin\sjasmplus asm\engine1.asm > nul
bin\sjasmplus asm\engine2.asm > nul
bin\step2
bin\zx7b build\block1.bin build\block1.zx7b
bin\zx7b build\block2.bin build\block2.zx7b
)
echo.
rem call z88dkenv.bat
rem zcc +zx -zorg=32772 -O3 -vn main.c -o build\main.bin -lndos
rem zcc +zx -zorg=32772 -O3 -vn -m main.c mus\anteat.asm -o build\main.bin -lndos
rem --c-code-in-asm -a
zcc +zx -zorg=32772 -O3 -vn -m main.c mus\anteat.asm -o build\main.bin -lndos
rem zcc +zx -zorg=32772 -O3 -vn -m main.c mus\anteat.asm -o build\main.bin -lndos
echo File main.bin compiled from main.c
bin\zx7b build\main.bin build\main.zx7b
bin\step3
bin\sjasmplus asm\loader.asm
bin\gentape game.tap ^
basic game 0 build\loader.bin ^
data build\engine.zx7b ^
data build\player.zx7b
rem if exist build\player.zx7b (
rem bin\gentape game.tap ^
rem basic game 0 build\loader.bin ^
rem data build\engine.zx7b ^
rem data build\player.zx7b
rem ) else (
rem bin\gentape game.tap ^
rem basic game 0 build\loader.bin ^
rem data build\engine.zx7b
rem )
rem if exist build\player.zx7b (
rem bin\gentape game.tzx ^
rem basic game 0 build\loader.bin ^
rem data build\engine.zx7b ^
rem stop48 ^
rem data build\player.zx7b
rem ) else (
rem bin\gentape game.tzx ^
rem basic game 0 build\loader.bin ^
rem data build\engine.zx7b
rem )