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.

OffTopic > stuck with a game

#5516 - antysix - Wed Apr 30, 2003 1:39 pm

I'm really, really stuck with a game and need some advice what to
do. Not to fix the game but just some general advice.
So what should I do, delete the project and never think about it again,
learn more to maybe obtain knowledge on how to fix it, leave it for
a few months and pick it up later?

Has somebody experianced this before?

#5520 - lordmetroid - Wed Apr 30, 2003 3:17 pm

stuck, well that could mean alot...
Perhaps some more details would be nice... however if you are just like me, actually never wrote a game just a bunch of API and engines to use by the game... I would proabably end as I always do...
However this Game for GBA seems so more fun and the API isn't huge, except for the tile couting system in 2D, that's a slow darn function with alots of muls... more then it should really be... perhaps a big counting function with no muls what so ever but alot of ifs is to prefer then the 4 for loops looking something like this (not finished with the calculations yet)
Code:

 direction = -1*!(rows&0x80) + 1*(rows&0x80);  //Decide which direction the iteration should go to, counting either from back to front ot front to back
 for(i = ((mge2d_camera_text_logical_x[background]&0xFF)>>4)+!(rows&0x80)*30;i != (mge2d_camera_text_physical_x[background]&0xFF)>>4);i += direction) //start counting where the new tile row is and stop where the old.
    for(y = (mge2d_camera_text_physical_y[background]&0xFF)>>4)+columns+!(columns&0x7F)*20;y < (mge2d_camera_text_physical_y[background]&0xFF)>>4)+columns+!(columns&0x7F)*20+20;y++) //cell in the active column

Plus alot more to uncount tiles... hmm it's really messy indeed...
What am I saying... Well I'm saying try to do something else but code for a while (not too long because then you would loose your attention to your code, as I always do) just go around thinking about the bit your stuck at and start codeing in a week again or something and you'll see that it will be much easier as your brain has been doing alot of work with the problem meanwhile without you evcen thinking on it!
_________________
*Spam*
Open Solutions for an open mind, www.areta.org

Areta is an organization of coders codeing mostly open source project, but there is alot of sections like GBA dev, Language learning communities, RPG communities, etc...

#5523 - antysix - Wed Apr 30, 2003 5:25 pm

Thanks for your reply.

With stuck I mean that I don't know how to go further with the game and
how to remove all those compile errors.

So if I leave the project for a week and try again then maybe I can fix it?
Okay, I'll try that.