forked from TheLX5/Powerups
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpowerup_gfx.asm
69 lines (58 loc) · 1.47 KB
/
powerup_gfx.asm
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
incsrc powerup_defs.asm
if !i_read_the_readme == 0
print "Custom Powerups patch - GFX Installer."
print "Version 1.0.2"
print ""
print "Nothing was inserted."
print "Please read the Readme file included in the zip file."
else
if !SA1 = 1
sa1rom
endif
org $00A38B|!base3
if read2($00D067|!base3) == $DEAD
autoclean dl powerup_items
else
dl powerup_items
endif
org $00A316|!base3
PowerupGFX:
org $00F63A|!base3
ExtraTilesGFX:
!i = 0
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; GFX Files
if !gfx_compression == 0
freedata cleaned
powerup_items:
incbin powerups_files/graphics/powerup_items.bin
%insert_gfx(small_mario,0)
%insert_gfx(big_mario,1)
%insert_gfx(hammer_mario,2)
%insert_gfx(boomerang_mario,3)
%insert_gfx(raccoon_mario,4)
%insert_gfx(tanooki_mario,5)
%insert_gfx(frog_mario,6)
%insert_gfx(mini_mario,7)
%insert_gfx(penguin_mario,8)
%insert_gfx(propeller_mario,9)
%insert_gfx(shell_mario,A)
%insert_gfx(cat_mario,B)
%insert_extra_gfx(cape_tiles,0)
%insert_extra_gfx(tail_tiles,1)
%insert_extra_gfx(propeller_tiles,2)
%insert_extra_gfx(cloud_tiles,3)
%insert_extra_gfx(cat_tiles,4)
endif
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; GFX install word
if read2($00D067|!base3) != $DEAD
org $00D067|!base3
install_byte:
dw $DEAD
endif
print "Custom powerups patch - GFX Installer."
print "Version 1.0.2"
print ""
print "Inserted ", freespaceuse, " bytes among ", dec(!i)," files."
endif