
-----------------------------------
jakey140
Wed Dec 20, 2006 11:48 pm

Block Game
-----------------------------------
Hi. I am trying to create a game that iwll test a students ability to put 5 blocks in order from smallest to largest. 5 blocks in random order are displayed horizontally across the top of the screen, and there will be 5 empty spaces below them. Using the mouse, the user will select each block and drag it to the space below... any ideas on what global variables to use???

-----------------------------------
Tony
Wed Dec 20, 2006 11:53 pm

Re: Block Game
-----------------------------------
any ideas on what global variables to use???
Don't, it's bad practice

-----------------------------------
jakey140
Wed Dec 20, 2006 11:54 pm


-----------------------------------
well, it helps me out... im still quite a newb.. any ideas?

-----------------------------------
Tony
Thu Dec 21, 2006 12:06 am


-----------------------------------
well in such a case just add new ones as you need them

5 blocks? Make an array.
Using mouse? x_position, y_position, button_state
something else? well we'll see about that later... maybe time and score.
