Problem with mixing P2D and keyboard events
in
Programming Questions
•
6 months ago
hello,
a friend and I we want to create a game. You start the programm, you enter a login and a password, and you select you level of difficulty, then you can play (and image is divided into 16 parts, and each part is discovered one by one and you have to guess what represents the image) and after you can leave the game and compare your score with other players.
Well, the problem is : we divided the work in 2 part.
She did the division of the image, and i did all the rest (ahah). So we juste have to put our work together now.
Her work runs with something which looks like " size(x,y,P2D) ", and mine runs with " size(x,y) "
apparently, the two types don't work together, so i changed mine and put " size (x,y,P2D) ".
I created vairous buttons to click on, to select the level of difficulty or to quit the game. And all these keybord events don't work no more with using " size (x,y,P2D) ".
So.. could you help me ?
What do have to change to make it work ?
(i'm new in using processing, and i absolutely don't know what i can do !)
Thank you in advance !
1