Making Peices start on a board game
Author |
Message |
JonnyBigBoi
|
Posted: Sun Jan 09, 2005 10:32 pm Post subject: Making Peices start on a board game |
|
|
sorry about the last one ill not do that again. k, I'm not too sure on how to make my pieces to my board game start right when i click run, whats the best thing i can do? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Hikaru79
|
Posted: Sun Jan 09, 2005 11:54 pm Post subject: (No subject) |
|
|
Well, a better job on having a descriptive topic But I'm still not quite clear about your question. So, you have a game board, and you want the pieces to start in your default positions?
Well, one approach would be to have a 2-dimensional array that logically represents the board, and the value of the index represents whether that square is black/white/blank. Then simply go through the array and draw each square. This approach has the added benefit that, when you move a piece, you can re-assign and re-draw only two elements of the array.
I hope I ineterpreted your question correctly |
|
|
|
|
|
|
|