Can Anyone Tell Whats Up With This Code?


biomood

Still Fresh
Joined
Feb 2, 2005
Messages
19
Age
35
Website
biomood.googlepages.com
Ok here's the problem when i try and run the code it plays fine for a few minutes and then if it's using the interpreter on the pc it just closes. If I try and run it on the gp32 (haven't tried it on the GP2X) it again plays fine for a few minutes but then just restarts the gp32. Might be something simple but it's kinda annoying, so if anyone has any ideas.

Here's the link to the code, in txt format: bioshoot1.1.txt
 
i think it's the ebullet2 process




PROCESS ebullet2(x,y)
BEGIN
graph=7;
fireball_wav = LOAD_WAV("bomb2.wav");
PLAY_WAV(fireball_wav,0);
LOOP
x-=8;//moves 8 pixels across per frame
IF(COLLISION(TYPE ship))
energy-=5;
bulletcount--;
UNLOAD_WAV(fireball_wav);
return;end//if collision with ship energy-5 and bulletcount-1, then destroy it

IF(x<-10)bulletcount--;
UNLOAD_WAV(fireball_wav);
return;end// if it goes off the left side of the screen destroy it
FRAME;
END
END

everytime you use it, you load the bomb2.wav again, so after a while you'll go out of memory

doesn't fenix give a "sin memoria" error before rebooting your gp32/2x?
 
Back
Top