gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

News > Game: Triple Triad

#39505 - krom - Sat Apr 09, 2005 8:03 pm

[Images not permitted - Click here to view it]
Hugh Lowry has sent in a cool beatem-up called Triple Triad:

Hiya - just sending in my game that I made for my final year uni project.
First game I've ever made, and I'm very pleased with how it turned out :).
Apologies if the difficulty is a bit misjudged - I've been playing it daily
since last September, so it might be a bit tricky for newcomers.


The game contains good sound effects and music, and is quite playable :)

Grab your copy of Triple Triad straight from the main site!

#39506 - cocole - Sat Apr 09, 2005 8:12 pm

Looks great. I'm gonna try that asap.

#39516 - Lord Graga - Sat Apr 09, 2005 10:12 pm

THIS is what every homebrew GBA should be like. I have only played it a little, but it's so far *very* nice. Great.

#39582 - FluBBa - Sun Apr 10, 2005 12:44 pm

A little hard to begin with but really nice.
_________________
I probably suck, my not is a programmer.

#39594 - DiscoStew - Sun Apr 10, 2005 5:12 pm

Very nicely done. I tried the version with music on the VisualBoy Advance emulator, and at some points the audio goes wacko, and everything else freezes. The no-music version seems to have no problems afaik. Bugs aside, you've done a fantastic job with it.

Again, very nicely done.
_________________
DS - It's all about DiscoStew

#39603 - caitsith2 - Sun Apr 10, 2005 6:28 pm

The crash issue in the sound version, is a rare crash bug in version 1.09 of the AAS library. whoever developed this, upgrade the library to a later version. That crash bug was something I found, because of the demo having a song that experienced the exact same crash issue after a few minutes. When I investigated the crash issue, the exact same thing is happening here, as when I traced that demo song.

#39652 - caitsith2 - Mon Apr 11, 2005 2:00 am

Alternatively, for a temp fix, for those who have the demo, search for

12FFFFEA 08509DE5 0060A0E3 0070A0E3 0080A0E3 C401A4E8 015055E2 FCFFFF1A

and replace it with

12FFFFEA 08509DE5 0060A0E3 0070A0E3 0080A0E3 C401A4E8 015055E2 FCFFFF5A.

This was the original sound engine bug, fixed in version 1.10 or later.

Code:

03000DD8 0A000002 beq     3000DE8h                                ;3  155
03000DDC E24110A0 sub     r1,r1,0A0h                              ;1  156
03000DE0 E58D4000 str     r4,[r13]                                ;2  158
03000DE4 EAFFFF12 b       3000A34h                                ;3  161
03000DE8 E59D5008 ldr     r5,[r13,8h]                             ;3  164 - If a zero is loaded to
                                                                  ;         R5 here, the lockup
                                                                  ;         happens.
03000DEC E3A06000 mov     r6,0h                                   ;1  165
03000DF0 E3A07000 mov     r7,0h                                   ;1  166
03000DF4 E3A08000 mov     r8,0h                                   ;1  167
03000DF8 E8A401C4 stmia   [r4]!,r2,r6-r8                          ;25 192
03000DFC E2555001 subs    r5,r5,1h                                ;1  193 - because 0 - 1 =
                                                                  ;         0xFFFFFFFF, which clears
                                                                  ;         the z flag.
03000E00 1AFFFFFC bne     3000DF8h                                ;3  196 - The temp fix changes this
                                                                  ;         to bpl 3000DF8.
03000E04 EAFFFFEF b       3000DC8h                                ;3  199
03000E08 E5115004 ldr     r5,[r1,-4h]                             ;8  207
03000E0C E3550000 cmp     r5,0h                                   ;1  208
03000E10 E3A00001 mov     r0,1h                                   ;1  209

#39743 - mr_square - Mon Apr 11, 2005 11:39 pm

Hi all - its my game - glad you all like it :) Been working on this for what seem like forever, so its very nice to get positive feedback now its finished :)

Thanks for the tip caitsith2 - I wish I'd found you earlier - I've been trying to fix that for aaaages! I'll give JD an email and get the latest version.