-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
182 lines (155 loc) · 6.23 KB
/
Makefile
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
VT_SOUND_LIB_SDCC_IY := ./ay
# ./bas2tap -a loader.bas
compile:
zcc +zx -v -m -startup=31 -clib=sdcc_iy -SO3 --max-allocs-per-node200000 @zproject.lst -pragma-include:zpragma.inc -o misifu -lay/vt_sound_6.lib
ls *.bin
zobjcopy ay/vt_sound.lib --section code_user=BANK_6 --section data_user=BANK_6 --global "VT_INIT" --global "VT_MUTE" --global "_vt_play" --global "_vt_play_isr_enabled" ay/vt_sound_6.lib
appmake +zx -b screen.scr --org 16384 --noloader --blockname screen -o screen.tap
appmake +zx -b misifu_CODE.bin --org 24500 --noloader --blockname code -o code.tap
appmake +zx -b misifu_BANK_6.bin --org 49152 --noloader --blockname bank6 -o bank6.tap
appmake +zx -b misifu_BANK_4.bin --org 49152 --noloader --blockname bank4 -o bank4.tap
appmake +zx -b misifu_BANK_3.bin --org 49152 --noloader --blockname bank3 -o bank3.tap
touch misifu.tap
rm misifu.tap
cat loader.tap screen.tap code.tap bank6.tap bank4.tap bank3.tap > misifu.tap
echo "Done!"
develop:
# -DWFRAMES=3
sudo nice -n -20 su jordism -c "zcc +zx -v -m -startup=31 -clib=sdcc_iy -SO3 --opt-code-size -zopt @zproject.lst -pragma-include:zpragma.inc -o misifu -lay/vt_sound_6.lib"
ls *.bin
zobjcopy ay/vt_sound.lib --section code_user=BANK_6 --section data_user=BANK_6 --global "VT_INIT" --global "VT_MUTE" --global "_vt_play" --global "_vt_play_isr_enabled" ay/vt_sound_6.lib
appmake +zx -b screen.scr --org 16384 --noloader --blockname screen -o screen.tap
appmake +zx -b misifu_CODE.bin --org 24500 --noloader --blockname code -o code.tap
appmake +zx -b misifu_BANK_6.bin --org 49152 --noloader --blockname bank6 -o bank6.tap
appmake +zx -b misifu_BANK_4.bin --org 49152 --noloader --blockname bank4 -o bank4.tap
appmake +zx -b misifu_BANK_3.bin --org 49152 --noloader --blockname bank3 -o bank3.tap
touch misifu.tap
rm misifu.tap
cat loader.tap screen.tap code.tap bank6.tap bank4.tap bank3.tap > misifu.tap
echo "Done"
sprites: prota dogsprites bincat clothes auxiliar protaswim
prota:
png2sp1sprite ./sprites/cat_sprites.png -m ./sprites/cat_sprites_mask.png -i sprite_protar -f 24 > ./build/protar.asm
protaswim:
png2sp1sprite ./sprites/cat_swimsprites.png --bit -i sprite_swim -f 24 > ./build/protaswim.asm
dogsprites:
png2sp1sprite ./sprites/dog_sprites.png -m ./sprites/dog_sprites_mask.png -i sprite_dog -f 24 > ./build/dogr.asm
bincat:
png2sp1sprite ./sprites/bincat_sprites.png -m ./sprites/bincat_sprites_mask.png -i sprite_bincat -f 16 > ./build/bincat.asm
birdsprite:
png2sp1sprite ./sprites/bird1.png -m ./sprites/bird1_mask.png -i sprite_bird -f 8 > ./build/bird.asm
clothes:
@png2udg ./background/udg_clothes11.png
@png2udg ./background/udg_clothes12.png
@png2udg ./background/udg_clothes21.png
@png2udg ./background/udg_clothes22.png
@png2udg ./background/udg_boot.png
@png2udg ./background/udg_boot2.png
auxiliar:
png2sp1sprite ./sprites/auxiliar.png -m ./sprites/auxiliar_mask.png -i auxiliar -f 16 > ./build/auxiliar.asm
fence:
@png2udg ./background/udg_valla1.png
@png2udg ./background/udg_valla2.png
@png2udg ./background/udg_valla3.png
@png2udg ./background/udg_valla4.png
@png2udg ./background/udg_c.png
@png2udg ./background/udg_a.png
@png2udg ./background/udg_t.png
cubo:
@png2udg ./background/cubo_down1.png
@png2udg ./background/cubo_down2.png
@png2udg ./background/cubo_down3.png
@png2udg ./background/cubo_middle1.png
@png2udg ./background/cubo_middle2.png
@png2udg ./background/cubo_middle3.png
@png2udg ./background/cubotop1.png
@png2udg ./background/cubotop2.png
@png2udg ./background/cubotop3.png
windows:
echo "Copy the vars to misifu.c code"
@png2udg ./background/udg_rope.png
@png2udg ./background/udg_win1.png
@png2udg ./background/udg_win2.png
@png2udg ./background/udg_win3.png
@png2udg ./background/q_barra_cortina.png
mouse:
@png2udg ./background/hole_empty.png
@png2udg ./background/hole_mouse.png
cheese:
@png2udg ./background/curtain.png
@png2udg ./background/cheese2.png
@png2udg ./background/queso_textura.png
@png2udg ./background/queso_diagonal.png
wall:
@png2udg ./background/wall1.png
@png2udg ./background/wall2.png
@png2udg ./background/wall3.png
@png2udg ./background/wall4.png
hearts:
@png2udg ./background/heart1.png
@png2udg ./background/heart2.png
@png2udg ./background/cupid11.png
@png2udg ./background/cupid12.png
@png2udg ./background/cupid13.png
@png2udg ./background/cupid21.png
@png2udg ./background/cupid22.png
@png2udg ./background/cupid23.png
@png2udg ./background/cupid31.png
@png2udg ./background/cupid32.png
@png2udg ./background/cupid33.png
heavencat:
@png2udg ./background/catheaven1.png
@png2udg ./background/catheaven2.png
numbers:
@png2udg ./background/udg_0.png
@png2udg ./background/udg_1.png
@png2udg ./background/udg_2.png
@png2udg ./background/udg_3.png
@png2udg ./background/udg_4.png
@png2udg ./background/udg_5.png
@png2udg ./background/udg_6.png
@png2udg ./background/udg_7.png
@png2udg ./background/udg_8.png
@png2udg ./background/udg_9.png
chair:
@png2udg ./background/udg_sillaL.png
@png2udg ./background/udg_sillaR.png
@png2udg ./background/udg_sillaLM.png
@png2udg ./background/udg_sillaRM.png
table:
@png2udg ./background/mesatop.png
@png2udg ./background/mesapata.png
@png2udg ./background/mesaside.png
@png2udg ./background/q_mesabase.png
fish:
@png2udg ./background/udg_fishtank1.png
@png2udg ./background/udg_fishtank2.png
water:
@png2udg ./background/udg_watertop.png
@png2udg ./background/udg_fish.png
@png2udg ./background/udg_fishL.png
@png2udg ./background/udg_eel.png
spider:
@png2udg ./background/udg_spiderplant11.png
@png2udg ./background/udg_spiderplant12.png
@png2udg ./background/udg_spiderplant21.png
@png2udg ./background/udg_spiderplant22.png
@png2udg ./background/udg_spidershelfleft.png
@png2udg ./background/udg_spidershelfright.png
@png2udg ./background/udg_spiderempty.png
@png2udg ./background/udg_spiderbook.png
@png2udg ./background/udg_spiderbook2.png
bird:
@png2udg ./background/udg_birdcage1.png
@png2udg ./background/udg_birdcage2.png
dog:
@png2udg ./background/udg_dog1.png
@png2udg ./background/udg_dog1m.png
@png2udg ./background/udg_dog2.png
@png2udg ./background/udg_dogmilk.png
extras:
@png2udg ./background/j_ladrillos.png
@png2udg ./background/j_piedras.png
@png2udg ./background/j_valla_rota.png
loader:
./bas2tap -a loader.bas