Design idea

Game Editor comments and discussion.

Design idea

Postby Clokio » Sat Jun 04, 2011 12:36 pm

I am making a memory game. I need to store name, image, color.
All the 3 will be choosen randomly and be assosciated together.

Ex:
So I will have a list of 10 names, 10 images, and 10 colors. I guess I will create 3 array: images, name and color.
I will then choose randomly in each array something and put them together to create a person.
Ex: Alex, image xyz, yellow color.

But that process will be repeated 100 time to create 100 persons. Do I need to create 100 array to store them. Is there another way? :mrgreen:

Thanks
Clokio
 
Posts: 229
Joined: Tue May 17, 2011 2:18 pm
Score: 32 Give a positive score

Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest