Mahjong Manse (Templates)

  • Mahjong Manse — Now for sale in the Scirra Store!

    https://www.scirra.com/store/royalty-free-game-templates/mahjong-manse-419

    <p>Have you always wanted to create your own Mahjong themed game, or perhaps a Shanghai game (solitaire version of Mahjong)? Well, you can now do so with Mahjong Manse, a well thought out template with only 73 lines of code. </p><p>1. Mahjong Manse is a bare-bones template for a Shanghai style solitaire game, traditional Mahjong game or variant. Currently, Shanghai levels are designed on individual layouts; there are 4 example layouts provided in the template - ly_GameBoard1, ly_GameBoard2, ly_GameBoard3, and ly_GameBoard4. The game starts up using the first layout.</p><p>2. Each game board can have a maximum of up to 7 layers, and all 144 tiles of a Mahjong set are in use. Refer to the following Wikipedia entry to take a look at a complete set of Mahjong tiles: en.wikipedia.org/wiki/Mahjong_tiles%3C/p%3E%3Cp%3E3. You design a game board by going to the Layer Bar and turning on/off Layers 1 to 7 in turn. The grid should be turned on (with X = 32 and Y = 40) to facilitate easy placement of tiles. You should place empty slots (spr_Slot) on the game board until you have placed 144 of them. You can easily debug the game and watch the array ar_TileCountPerLayer to see whether the sum of all entries in the array equals 144.</p><p>4. To obtain a 3D effect, you must adjust the Z-order of each slot (spr_Slot) manually. Alternatively, you could implement code to do this yourself - we suggest parsing the entire game grid from the upper right to bottom left corners.</p><p>IMPORTANT: Although gameplay is not implemented, you could easily implement it yourself by reading the comments and understanding how the template works. We recommend adding another instance variable to spr_Tile to indicate a tile has been chosen for matching.</p><p>For more information, download the template today... and see how to implement a Mahjong themed game, how to fool users into thinking your game is a 3D game, and look at the advanced techniques used in Mahjong Manse!</p>

    Use this topic to leave comments, ask questions and talk about Mahjong Manse

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Do you have a link where I can play the game?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)