Q: Demos or examples of array usage for puzzle games

Game Editor comments and discussion.

Q: Demos or examples of array usage for puzzle games

Postby zupernoc » Fri Jun 16, 2006 12:55 am

Greetings,

I have searched the forums, and read the relative posts to the subject - however I am still seeking more general clarification.

Apologies in advance for the vague question - but if one were to make a puzzle game in which there is a constant new generation of pieces (tetris, puyo pop, columns, klax, etc).......... is the best practice method to use an array to track the pieces / actors?

I understand 2 actors colliding. However, in order to say "make 3 matching pieces disappear" - would one have to write a function to check all array combinations row by row or column by column to check for matching pieces?

Thank you in advance.
zupernoc
 
Posts: 17
Joined: Thu Jun 01, 2006 9:12 pm
Score: 0 Give a positive score

Postby Fuzzy » Fri Jun 16, 2006 8:12 am

I asked this very question once. Another member was kind enough to provide me with an answer! Let me did the link up for you... here it is.

http://game-editor.com/forum/viewtopic. ... highlight=
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Postby zupernoc » Sat Jun 17, 2006 12:30 am

Thank you. This is exactly what I was seeking.
:D
zupernoc
 
Posts: 17
Joined: Thu Jun 01, 2006 9:12 pm
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron