Welcome, Guest. Please login or register.
Did you miss your activation email?
Pages: [1]   Go Down
  Print  
Author Topic: Coding a game board  (Read 965 times)
0 Members and 1 Guest are viewing this topic.
kimski24
Junior Member
*

Reputation: 0
Offline Offline
Posts: 9
Referrals: 0

Awards
« on: July 21, 2008, 03:40:34 PM »

hello people,
   
 I am trying to design a 6 by 2 board, whic basically would representa a game board, this board on it default state would have 4 standard peas in it, i would like to use java 2d or 3d, but i dont have  a clue to get started , pls can anyone help???


Kimberly
Logged
Depress
Junior Member
*

Reputation: 0
Offline Offline
Gender: Female
Posts: 4
Referrals: 0

Awards
« Reply #1 on: August 05, 2008, 01:44:37 PM »

Hi,

First of all, you need to create an abstract vision of your gameboard. Determine what objects will be on the board and how you store them on the board.

For example:
You have an GameBoard Class, and this Class has got an 2D Array of GameBoardObjects. GameBoardObjects are different type of pieces that extend the base GameBoardObjects.

When you have this all, then start thinking of displaying it on screen, this also will speed up your development because this is more rewarding then trying to show something on screen for weeks with none or barely a result.

Greetings


Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Your Ad Here