:If getKey({K+2}) // K is the pointer to the appvar. : ... :End
Here is my source, the getKey is changed back to getKey(41), to make the game work. Please don't ask questions about the rest of the code, it isn't really good code, I know that... WHOA, that's BIG, BIIIIIIIIIIIIIIIIIIIG, did I make that in 4 days
Ok, dying works, ((((almost)))) The problem was the place in the game loop where I checked it (as an elseIf behind some almost always true others... I only need to make the game somewhat harder.
Still to do: Function to remap keys Orientation switch Making you lose the game And also making you lose this game Put some things in Settings Add the scoresaver (not much work) Make the menuscreen more attractive
Argh, the being able to die bit is hard, without negative numbers. But... collision checking works really good, and I made a dissappearing block, and one that makes you jump higher.
Ok, generator is working (a little bit) but you still can't die... Suddenly it crashed and ihadtopullabattery.
Todo: Orientation switch Be able to die Fix generator to make the game harder Smoother graphics Trace the random crash Add dissapearing blocks/bars (how should I call those?) Maybe other keys
Ok, no, because of the way I did it, that won't be possible. I will try something like it, though. Gravity, menu, and initial generator are working. I'm currently making the in-game generator.
What do you mean with fractional movements? I cant draw sprites on half of a pixel ofc...
And no, I won't rewrite it again, adding functions will be easy after this rewrite. The rewriting goes faster than I thought. I think it will be ready soon.
I'm thinking of storing all the data in an array like this X-pos (not sideways) 8-bit, thing (power-up, black hole, bar) 8-bit, and 8 bits of data (bar is moving to the left, and such) If I want to do collision checking, I only need to check 8 fields.
Whoa, rewriting the entire game is booooooooooooooooooooring... I'm currently creating the menu, it hadn't got one, so this is an improvement. How do I flip the whole screen? Maybe copying the buffer in to the backbuffer in reverse order?
was for using a powerup, but it doesn't work anymore, doesn't matter, I didn't like it.
Oh, last thing, won't Mohammed be angry at me bacause, with a menu and more, it starts looking like his one?