Results 1 to 2 of 2
Thread: Making a puzzle game, need help!
- 12-29-2010, 10:10 PM #1
Member
- Join Date
- Sep 2009
- Posts
- 41
- Rep Power
- 0
Making a puzzle game, need help!
Hey guys, Im creating a Bejeweled-like game where the player matches up 3 or more of the same color squares and it clears those squares.
Im having trouble setting it up though.
Right now Its gotten to the point where the main panel class has just a bunch of static variables and methods. I have a "block" class that contains info for each individual block, and I have an array of those in the main class. Its gotten messy fast.
How would one set up a game like bejeweled as far as classes and structure?
Nothing specific I guess, just basic structure.
Also, i cant figure out a way to have it detect when the blocks are in a row of three or more. Any suggestions of a basic detection strategy?
Again nothing specific, if you have any suggestions, let me know!
Thanks for the help
- 12-30-2010, 12:55 AM #2
Senior Member
- Join Date
- Nov 2010
- Location
- Delhi
- Posts
- 135
- Blog Entries
- 1
- Rep Power
- 0
You are going in the right direction.
In addition to its own information, your block class should have following information as well:
1. List of all blocks, which touch this block (e.g Arraylist<Block> neighbours).
2. This list should be populated as soon as a block hits/touches other blocks.
3. Once a block hits other blocks, perform a check on the color of blocks of all neighbours.
Similar Threads
-
Making hangman game
By Snow_Fox in forum New To JavaReplies: 0Last Post: 11-29-2010, 09:42 PM -
starting my game making career
By cejay in forum New To JavaReplies: 6Last Post: 11-28-2010, 09:10 AM -
Game making help
By Mrkantaloupe in forum New To JavaReplies: 2Last Post: 07-13-2010, 10:15 PM -
need help making a game board
By Don k in forum New To JavaReplies: 2Last Post: 04-30-2010, 12:09 AM -
need help with a simple game im making
By frallan in forum AWT / SwingReplies: 2Last Post: 11-30-2009, 10:36 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks