Yeah that's what it was. Thanks a bunch.
On May 9, 7:34 am, John Harrison <
john.harri...@wichita.edu> wrote:
> I played your game on a GameBoy color and what I witnessed is that at
> first there might be a random jump or random shot and then it seems to
> "settle down" and work correctly after 5 seconds or so. Is this an
> accurate read of what isn't working? If so, I suspect that the problem
> is that you are not initializing your flags before your game loop.
>
> Be default, the emulator automatically loads uninitialized memory
> locations with 0 but a real GameBoy loads them with random values. So if
> you don't initialize all of your variables, their values are
> unpredictable. ProjectileFlags, for example, could be anything so your
> game might think it is already shooting a bullet etc. intially.
>
> Here's what I would do:
>
> * in the emulator under options -> debugger setup change the setting
> "Initialize RAM" from "Zero Filled" to "Random Filled (as in reality).
> * run your program in the emulator and see if you see the same weird
> behavior you saw on a real Game Boy.
> * If you do see the same behavior, try setting all your variables to
> 0 in your initialization.
>
> Let us know.
>
> -John
>
> Adam W wrote:
> > My game is finished and runs great, but when I loaded it onto the
> > gameboy the jump and shoot don't work correctly. It's weird because
> > sometimes it is and sometimes it isn't I don't know what's wrong!
>
> >
http://wsu-assembly-engrs.googlegroups.com/web/Final%20Project-Adam%2...
>
> --
> John Harrisonhttp://
alumni.media.mit.edu/~harrison