First time here? First time here? Newsletter Signup Newsletter
Search tutorials

Step 1: How should we make the game?

Well the best way for us to go about making the game would be to lay out the method here. In real life how would we play a game of memory. We'll think of each card as a playing card. We want to customize our images and make it easy to add more at any time, correct? So lets say all the cards constatute a deck. Here's how I recommend we go about starting the game.

1) Shuffle the deck
2) Take out X cards for the deck (a real deck would have 52, and make for a very, very long game. That's why we only use X cards total. This would also make it easy for us to make levels later on, incase we want to change X dynamically.).
3) Photocopy the retreived cards so we have perfect duplication (2 of each card).
4) Shuffle the duplicates (we can't have them be in the same order as our first set).
5) Lastly, deal the cards out from both decks at the same time.

LOGIC MONSTER! Logic monster sez that ideally you'd want to deal them out randomly because otherwise someone could realize that if the decks were delt at the same time, there is no way N can match N + 2K, thus cutting possibles in HALF! But we'd like to think no one would notice this without knowing how it's programmed. It's not like they actually watched the cards get delt from both decks.

So does that sound like a reasonable form of getting cards and dealing them out? How can we make it more fun?

Now anyone can eventually get all the cards figured out, but it's our job to make the game fun. In that case, we'll keep track of the number of tries and time that occurs during play. This will allow us to get a scoring system, and then the game becomes more competative/interactive.

» Level Intermediate

Added: 2005-04-06
Rating: 4.43 Votes: 44
» Author
I'm the admin for BEF
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.