-
-
When you know are.
I've played a few mahjong games on iPhone and thought a bit about how to make a Mahjong game. Thinking about it, it seemed kind of complicated but it is probably easy once you go about it step by step.
To get started, it'll probably be easier to just make predefined layouts just to get the game up and running. Once you have it working, it shouldn't be hard to shuffle it dynamically.
The first step would be to generate an array of 2 of each type of tile. Then lay them out in the stage.
If you're confused about the math, try making a solitaire game. It's a similar concept, just a lot simpler. You can try searching this forum for a solitaire game or shuffling a deck of cards and you'll be able to get an idea of what you need to do.
-
ism
build the scene in reverse; start with two matching tiles. then add another two matching tiles and so on until you have the desired number of tiles.
Graphics Attract, Motion Engages, Gameplay Addicts
XP Pro | P4 2.8Ghz | 2Gb | 80Gb,40Gb | 128Mb DDR ATI Radeon 9800 Pro
-
Thanks for your suggestions. Would post back if get stuck anywhere.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|