Sephiroth
Active Member
Hi everybody,
a week ago, i started developing with python/pygame.
after reading a bunch of tutorials, i started my first "game" for the gp2x.
The game is a 2player game. Every Player controlls a square(a blue or a red one). And both have to "eat" little bit smaller green squares. The goal is to eat as much as you can in 60seconds.
It works very good, but i have a problem with the controls.
After a few optimizations, it is still tricky..
About the game:
The squares should move as long as the button's are pressed. That works, but if i change while the left button is pressed to the up button, there are complications.
Sourcecode
(in the def handleEventgp2x2 in the main class is the problem)
(I know, there are some german expressions in the code. If anything isn't clear, please post it in the thread.)
I hope somebody could give me an advice, what's my fault and how to fix it.
btw: Sorry for my bad english..
greetings from germany
a week ago, i started developing with python/pygame.
after reading a bunch of tutorials, i started my first "game" for the gp2x.
The game is a 2player game. Every Player controlls a square(a blue or a red one). And both have to "eat" little bit smaller green squares. The goal is to eat as much as you can in 60seconds.
It works very good, but i have a problem with the controls.
After a few optimizations, it is still tricky..
About the game:
The squares should move as long as the button's are pressed. That works, but if i change while the left button is pressed to the up button, there are complications.
Sourcecode
(in the def handleEventgp2x2 in the main class is the problem)
(I know, there are some german expressions in the code. If anything isn't clear, please post it in the thread.)
I hope somebody could give me an advice, what's my fault and how to fix it.
btw: Sorry for my bad english..
greetings from germany