diff options
author | Treeki <treeki@gmail.com> | 2011-04-07 20:56:12 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2011-04-07 20:56:12 +0200 |
commit | 8cf3128f9538998ca16e522237e0db7b45ff507d (patch) | |
tree | 20bd6703c4f9ac685dcb9097828a3442f3942ed0 /src | |
parent | d7ba651a30060eee646f720df06079ee6e562966 (diff) | |
download | kamek-8cf3128f9538998ca16e522237e0db7b45ff507d.tar.gz kamek-8cf3128f9538998ca16e522237e0db7b45ff507d.zip |
merged sprite texture updates into level-select
Diffstat (limited to 'src')
-rw-r--r-- | src/spritetex.S | 143 |
1 files changed, 136 insertions, 7 deletions
diff --git a/src/spritetex.S b/src/spritetex.S index 681f763..65aeefc 100644 --- a/src/spritetex.S +++ b/src/spritetex.S @@ -20,25 +20,25 @@ GetTexFilenameForR5: # obj number should be put into r5
# returned filename is in r5
# this makes it easy to use with dRes_c::GetResource
-
+
stwu sp, -0x10(sp)
mflr r0
stw r0, 0x14(sp)
stw r3, 0xC(sp)
stw r4, 0x8(sp)
-
+
lis r3, TexFilenameBuffer@h
ori r3, r3, TexFilenameBuffer@l
-
+
lis r4, TexFormatString@h
ori r4, r4, TexFormatString@l
-
+
crclr 4*cr1+eq
bl sprintf
-
+
lis r5, TexFilenameBuffer@h
ori r5, r5, TexFilenameBuffer@l
-
+
lwz r0, 0x14(sp)
lwz r3, 0xC(sp)
lwz r4, 0x8(sp)
@@ -63,6 +63,135 @@ TEX_Bush: b GetTexFilenameForR5
+# The below was added by Tempus
+
+
+.global TEX_Goomba
+TEX_Goomba:
+ lwz r5, 4(r3)
+ srwi r5, r5, 24
+ andi. r5, r5, 0xF
+ b GetTexFilenameForR5
+
+
+.global TEX_Barrel
+TEX_Barrel:
+ lwz r5, 4(r30)
+ srwi r5, r5, 24
+ andi. r5, r5, 0xF
+ b GetTexFilenameForR5
+
+
+.global TEX_Blooper
+TEX_Blooper:
+ lwz r5, 4(r30)
+ srwi r5, r5, 24
+ andi. r5, r5, 0xF
+ b GetTexFilenameForR5
+
+
+.global TEX_BigBlock
+TEX_BigBlock:
+ lwz r5, 4(r30)
+ srwi r5, r5, 24
+ andi. r5, r5, 0xF
+ b GetTexFilenameForR5
+
+
+.global TEX_Thwomp
+TEX_Thwomp:
+ lwz r5, 4(r30)
+ srwi r5, r5, 24
+ andi. r5, r5, 0xF
+ b GetTexFilenameForR5
+
+
+.global TEX_GiantBuzzy
+TEX_GiantBuzzy:
+ lwz r5, 4(r30)
+ srwi r5, r5, 24
+ andi. r5, r5, 0xF
+ b GetTexFilenameForR5
+
+
+.global TEX_Buzzy
+TEX_Buzzy:
+ lwz r5, 4(r30)
+ srwi r5, r5, 24
+ andi. r5, r5, 0xF
+ b GetTexFilenameForR5
+
+
+.global TEX_SpikeTop
+TEX_SpikeTop:
+ lwz r5, 4(r30)
+ srwi r5, r5, 24
+ andi. r5, r5, 0xF
+ b GetTexFilenameForR5
+
+
+.global TEX_Spiny
+TEX_Spiny:
+ lwz r5, 4(r31)
+ srwi r5, r5, 24
+ andi. r5, r5, 0xF
+ b GetTexFilenameForR5
+
+
+.global TEX_SpringBlock
+TEX_SpringBlock:
+ lwz r5, 4(r31)
+ srwi r5, r5, 24
+ andi. r5, r5, 0xF
+ b GetTexFilenameForR5
+
+
+.global TEX_Coaster
+TEX_Coaster:
+ lwz r5, 4(r5)
+ srwi r5, r5, 24
+ andi. r5, r5, 0xF
+ b GetTexFilenameForR5
+
+
+.global TEX_Koopa
+TEX_Koopa:
+ lwz r5, 4(r30)
+ andi. r5, r5, 0xF
+ b GetTexFilenameForR5
+
+
+.global TEX_Gabon
+TEX_Gabon:
+ lwz r5, 4(r30)
+ srwi r5, r5, 24
+ andi. r5, r5, 0xF
+ b GetTexFilenameForR5
+
+
+.global TEX_Podoboo
+TEX_Podoboo:
+ lwz r5, 4(r27)
+ srwi r5, r5, 24
+ andi. r5, r5, 0xF
+ b GetTexFilenameForR5
+
+
+.global TEX_Switch
+TEX_Switch:
+ lwz r5, 4(r30)
+ srwi r5, r5, 16
+ andi. r5, r5, 0xF
+ b GetTexFilenameForR5
+
+
+.global TEX_WiggleShroom
+TEX_WiggleShroom:
+ lwz r5, 4(r31)
+ srwi r5, r5, 24
+ andi. r5, r5, 0xF
+ b GetTexFilenameForR5
+
@@ -71,5 +200,5 @@ TexFilenameBuffer: .long 0,0,0,0
TexFormatString:
- .string "g3d/t%02d.brres"
+ .string "g3d/t02d.brres"
|