A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Mahjong Game

  1. #1
    Junior Member
    Join Date
    May 2011

    Smile Mahjong Game

    I have recently started working with Mahjong game. But being not so experienced developer. I am just confuse about many aspects of it. So if anyone could throw some light on it. It would be of great help.

    I have to build the game where there could be different number of tiles on screen.
    32, 48, 64 , 80, 96, 112 and so on

    Now I have questions regarding the levels of blocks in this game. I mean the layouts of the game should be predefined or they should be dynamically created? Also I wanted to know how the surface of enable and disable symbols are created?

    I am very confused with the math of this game. So any help or suggestions would be appreciated.

  2. #2
    When you know are. Son of Bryce's Avatar
    Join Date
    Aug 2002
    Los Angeles
    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.

  3. #3
    ism BlinkOk's Avatar
    Join Date
    Aug 2001
    , location, location
    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

  4. #4
    Junior Member
    Join Date
    May 2011
    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

Click Here to Expand Forum to Full Width

HTML5 Development Center