-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.cmd
207 lines (150 loc) · 10.3 KB
/
build.cmd
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
@echo off
cls
echo %time%
cd assets
tilemizer_nopack.py -b4 -m=16e00 -o=pixies -t="pixies.png"
tilemizer.py -b4 -m=1a640 -o=level_indicator -t="level_marker.png"
tilemizer.py -b4 -m=1b900 -o=unicorn_background -t="unicorn_background.png"
tilemizer.py -b4 -m=40000 -o=background -t="background.png"
tilemizer_nopack.py -b4 -m=3a800 -o=game_over_logo -t="game_over_logo.png"
copy /b pixies.chrs+level_indicator.chrs+unicorn_background.chrs tileset.chrs
tilemizer.py -b8 -m=30000 -o=unicorn_title_plain -t="unicorn_title_plain.png"
tilemizer.py -b8 -m=30000 -o=unicorn_title_credits -t="unicorn_title_credits.png"
split unicorn_title_plain.chrs 32768
split unicorn_title_credits.chrs 32768
REM split background.chrs 32768
split game_over_2.raw 32768
cd ..
cc6502 -O 2 --list-file build/main.lst --assembly-source build/main.s --core 45gs02 --target MEGA65 src/main.c
cc6502 -o build/main.o -O 2 --list-file build/main.lst --core 45gs02 --target MEGA65 src/main.c
cc6502 -O 2 --list-file build/setup.lst --assembly-source build/setup.s --core 45gs02 --target MEGA65 src/setup.c
cc6502 -o build/setup.o -O 2 --list-file build/setup.lst --core 45gs02 --target MEGA65 src/setup.c
cc6502 -O 2 --list-file build/dma.lst --assembly-source build/dma.s --core 45gs02 --target MEGA65 src/dma.c
cc6502 -o build/dma.o -O 2 --list-file build/dma.lst --core 45gs02 --target MEGA65 src/dma.c
cc6502 -O 2 --list-file build/dma_jobs.lst --assembly-source build/dma_jobs.s --core 45gs02 --target MEGA65 src/dma_jobs.c
cc6502 -o build/dma_jobs.o -O 2 --list-file build/dma_jobs.lst --core 45gs02 --target MEGA65 src/dma_jobs.c
cc6502 -O 2 --list-file build/gameloop.lst --assembly-source build/gameloop.s --core 45gs02 --target MEGA65 src/gameloop.c
cc6502 -o build/gameloop.o -O 2 --list-file build/gameloop.lst --core 45gs02 --target MEGA65 src/gameloop.c
cc6502 -O 2 --list-file build/maps.lst --assembly-source build/maps.s --core 45gs02 --target MEGA65 src/maps.c
cc6502 -o build/maps.o -O 2 --list-file build/maps.lst --core 45gs02 --target MEGA65 src/maps.c
cc6502 -O 2 --list-file build/pixies.lst --assembly-source build/pixies.s --core 45gs02 --target MEGA65 src/pixies.c
cc6502 -o build/pixies.o -O 2 --list-file build/pixies.lst --core 45gs02 --target MEGA65 src/pixies.c
cc6502 -O 2 --list-file build/input.lst --assembly-source build/input.s --core 45gs02 --target MEGA65 src/input.c
cc6502 -o build/input.o -O 2 --list-file build/input.lst --core 45gs02 --target MEGA65 src/input.c
cc6502 -O 2 --list-file build/player.lst --assembly-source build/player.s --core 45gs02 --target MEGA65 src/player.c
cc6502 -o build/player.o -O 2 --list-file build/player.lst --core 45gs02 --target MEGA65 src/player.c
cc6502 -O 2 --list-file build/unicorn.lst --assembly-source build/unicorn.s --core 45gs02 --target MEGA65 src/unicorn.c
cc6502 -o build/unicorn.o -O 2 --list-file build/unicorn.lst --core 45gs02 --target MEGA65 src/unicorn.c
cc6502 -O 2 --list-file build/icecream.lst --assembly-source build/icecream.s --core 45gs02 --target MEGA65 src/icecream.c
cc6502 -o build/icecream.o -O 2 --list-file build/icecream.lst --core 45gs02 --target MEGA65 src/icecream.c
cc6502 -O 2 --list-file build/swing.lst --assembly-source build/swing.s --core 45gs02 --target MEGA65 src/swing.c
cc6502 -o build/swing.o -O 2 --list-file build/swing.lst --core 45gs02 --target MEGA65 src/swing.c
cc6502 -O 2 --list-file build/difficulty.lst --assembly-source build/difficulty.s --core 45gs02 --target MEGA65 src/difficulty.c
cc6502 -o build/difficulty.o -O 2 --list-file build/difficulty.lst --core 45gs02 --target MEGA65 src/difficulty.c
cc6502 --list-file build/audio.lst --assembly-source build/audio.s --core 45gs02 --target MEGA65 src/audio.c
cc6502 -o build/audio.o --list-file build/audio.lst --core 45gs02 --target MEGA65 src/audio.c
cc6502 --list-file build/titleloop.lst --assembly-source build/titleloop.s --core 45gs02 --target MEGA65 src/titleloop.c
cc6502 -o build/titleloop.o --list-file build/titleloop.lst --core 45gs02 --target MEGA65 src/titleloop.c
cc6502 --list-file build/gameoverloop.lst --assembly-source build/gameoverloop.s --core 45gs02 --target MEGA65 src/gameoverloop.c
cc6502 -o build/gameoverloop.o --list-file build/gameoverloop.lst --core 45gs02 --target MEGA65 src/gameoverloop.c
as6502 -o build/irqload.o --list-file build/irqload.lst --core 45gs02 --target MEGA65 src/iffl/irqload.s
as6502 -o build/decruncher.o --list-file build/decruncher.lst --core 45gs02 --target MEGA65 src/iffl/decruncher.s
as6502 -o build/iffl.o --list-file build/iffl.lst --core 45gs02 --target MEGA65 src/iffl/iffl.s
as6502 -o build/rng.o --list-file build/rng.lst --core 45gs02 --target MEGA65 src/rng.s
ln6502 -o build/unicone_full.prg --list-file build/unicone.lst --verbose --output-format prg --core 45gs02 --target mega65 build/main.o build/setup.o build/dma.o build/dma_jobs.o build/irqload.o build/decruncher.o build/iffl.o build/interrupt.o build/gameloop.o build/maps.o build/pixies.o build/input.o build/player.o build/unicorn.o build/rng.o build/icecream.o build/swing.o build/difficulty.o build/audio.o build/titleloop.o build/gameoverloop.o ./mega65-unicone.scm
echo %time%
pause
exomizer sfx basic -t 65 -o build/unicone.prg build/unicone_full.prg
acme src\music_swap_stub.asm
acme src\tilemap.asm
acme src\attrmap.asm
acme src\flavors.asm
REM Loading Screen Data
megatool -a assets/pixies.clut 00025000
megatool -a assets/unicorn_title_plain_0.chrs 00030000
megatool -a assets/unicorn_title_plain_1.chrs 00010000
megatool -a assets/unicorn_title_plain_2.chrs 00040000
megatool -a assets/unicorn_title_plain_3.chrs 00010000
megatool -a assets/unicorn_title_plain_4.chrs 00050000
megatool -a assets/unicorn_title_plain.map 00059200
megatool -a assets/unicorn_title_plain.atr 0005b800
REM Title Screen Data
megatool -a build/music_swap_stub.bin 0000c000
megatool -a assets/megakitty_theme_1.prg 00010000
megatool -a assets/unicorn_title_credits_0.chrs 00010000
megatool -a assets/unicorn_title_credits_1.chrs 00010000
megatool -a assets/unicorn_title_credits_2.chrs 00010000
megatool -a assets/unicorn_title_credits_3.chrs 00010000
megatool -a assets/unicorn_title_credits_4.chrs 00010000
megatool -a assets/unicorn_title_credits_5.chrs 00018000
megatool -a assets/unicorn_title_credits.map 00019400
megatool -a assets/unicorn_title_credits.atr 0001ba00
REM In Game Data
megatool -a assets/sentimental_thing.prg 00010000
megatool -a assets/tileset.chrs 00016e00
megatool -a build/tilemap.bin 0001c600
megatool -a build/flavors.bin 0001f100
megatool -a assets/game_start.raw 00012b00
megatool -a assets/trot.raw 00019100
megatool -a assets/splat_1.raw 0001ac00
megatool -a assets/falling.raw 00010000
megatool -a assets/splat_2.raw 0001b700
megatool -a assets/background.chrs 00010000
REM megatool -a assets/background_0.chrs 00010000
REM megatool -a assets/background_1.chrs 00010000
REM megatool -a assets/background_2.chrs 00010000
megatool -a assets/splat_3.raw 00017c00
REM Game Over Data
megatool -a assets/game_over_1.raw 00012b00
megatool -a build/attrmap.bin 0001b200
megatool -a assets/game_over_2.raw 00010000
megatool -a assets/game_over_logo.chrs 0001a800
REM Level Complete Data
megatool -a assets/level_end.raw 00010000
REM Loading Screen Data
megatool -c assets/pixies.clut.addr
megatool -c assets/unicorn_title_plain_0.chrs.addr
megatool -c assets/unicorn_title_plain_1.chrs.addr
megatool -c assets/unicorn_title_plain_2.chrs.addr
megatool -c assets/unicorn_title_plain_3.chrs.addr
megatool -c assets/unicorn_title_plain_4.chrs.addr
megatool -c assets/unicorn_title_plain.map.addr
megatool -c assets/unicorn_title_plain.atr.addr
REM Title Screen Data
megatool -c build/music_swap_stub.bin.addr
megatool -c assets/megakitty_theme_1.prg.addr
megatool -c assets/unicorn_title_credits_0.chrs.addr
megatool -c assets/unicorn_title_credits_1.chrs.addr
megatool -c assets/unicorn_title_credits_2.chrs.addr
megatool -c assets/unicorn_title_credits_3.chrs.addr
megatool -c assets/unicorn_title_credits_4.chrs.addr
megatool -c assets/unicorn_title_credits_5.chrs.addr
megatool -c assets/unicorn_title_credits.map.addr
megatool -c assets/unicorn_title_credits.atr.addr
REM In Game Data
megatool -c assets/sentimental_thing.prg.addr
megatool -c assets/tileset.chrs.addr
megatool -c build/tilemap.bin.addr
megatool -c build/flavors.bin.addr
megatool -c assets/game_start.raw.addr
megatool -c assets/trot.raw.addr
megatool -c assets/splat_1.raw.addr
megatool -c assets/falling.raw.addr
megatool -c assets/splat_2.raw.addr
megatool -c assets/background.chrs.addr
REM megatool -c assets/background_0.chrs.addr
REM megatool -c assets/background_1.chrs.addr
REM megatool -c assets/background_2.chrs.addr
megatool -c assets/splat_3.raw.addr
REM Game Over Data
megatool -c assets/game_over_1.raw.addr
megatool -c build/attrmap.bin.addr
megatool -c assets/game_over_2.raw.addr
megatool -c assets/game_over_logo.chrs.addr
REM Level Complete Data
megatool -c assets/level_end.raw.addr
megatool -i assets/pixies.clut.addr.mc assets/unicorn_title_plain_0.chrs.addr.mc assets/unicorn_title_plain_1.chrs.addr.mc assets/unicorn_title_plain_2.chrs.addr.mc assets/unicorn_title_plain_3.chrs.addr.mc assets/unicorn_title_plain_4.chrs.addr.mc assets/unicorn_title_plain.map.addr.mc assets/unicorn_title_plain.atr.addr.mc build/music_swap_stub.bin.addr.mc assets/megakitty_theme_1.prg.addr.mc assets/unicorn_title_credits_0.chrs.addr.mc assets/unicorn_title_credits_1.chrs.addr.mc assets/unicorn_title_credits_2.chrs.addr.mc assets/unicorn_title_credits_3.chrs.addr.mc assets/unicorn_title_credits_4.chrs.addr.mc assets/unicorn_title_credits_5.chrs.addr.mc assets/unicorn_title_credits.map.addr.mc assets/unicorn_title_credits.atr.addr.mc assets/level_end.raw.addr.mc assets/unicone0
megatool -i assets/sentimental_thing.prg.addr.mc assets/tileset.chrs.addr.mc build/tilemap.bin.addr.mc build/flavors.bin.addr.mc assets/game_start.raw.addr.mc assets/trot.raw.addr.mc assets/splat_1.raw.addr.mc assets/falling.raw.addr.mc assets/splat_2.raw.addr.mc assets/background.chrs.addr.mc assets/splat_3.raw.addr.mc assets/game_over_1.raw.addr.mc build/attrmap.bin.addr.mc assets/game_over_2.raw.addr.mc assets/game_over_logo.chrs.addr.mc assets/unicone1
c1541 -attach build/unicone.d81 -delete "unicone /bas" -delete "+unicone0" -delete "+unicone1" -write "build/unicone.prg" "unicone /bas" -write "assets/unicone0" "+unicone0" -write "assets/unicone1" "+unicone1" -list
pause
run