Page 1 of 1

Mahjong Dreamland

PostPosted: Tue Nov 24, 2009 2:58 am
by DST
I have always been a fan of Mahjong, so I decided to make a version with Game Editor.

This version features: Sound player, multiple tilesets, layouts, movesleft check, and only winnable layouts.

For those of you who are interested in looking into the code, most of it is contained inside functions. It is all thoroughly documented.

There is still a tileset to be added...(hint, hint, bee-ant!).

Enjoy!

http://www.dreade.org/games/MahjongDreamlandv09.zip
Ged+Data 21 mb

masnap01.jpg

masnap03.jpg


masnap02.jpg

Re: Mahjong Dreamland

PostPosted: Tue Nov 24, 2009 4:57 pm
by Camper1995
Hey man! Great work! ;) Fantastic... Its great that you can choice a skin..

Very nice ! :)

Re: Mahjong Dreamland

PostPosted: Tue Nov 24, 2009 5:04 pm
by zygoth
Nice job! Just out of curiosity, what kind of data structure did you use to store the stacks of tiles? I guess this is one of the times you could justify using a 3d array, but it would take less memory to use a 2d array mapped to a 1d array...I think. Anyway, nice job, your games always seem to have a lot of effort put into them. It looks nice!

Zygo

Re: Mahjong Dreamland

PostPosted: Tue Nov 24, 2009 5:07 pm
by DST
The layers are stored in a 2d array, with the 1st d being the layer number, and the 2nd d being the actual tiles. I left a 1 space buffer all around the map so as to avoid buffer underrruns.

so the top center piece in a pyramid 4 high would be layer[3][72].

The maps for making the levels is similiar, only its a 3d, with the 1st d being the map number, 2nd being the layer, and 3rd holding the actual pieces.

Re: Mahjong Dreamland

PostPosted: Tue Nov 24, 2009 8:23 pm
by makslane
Great job :-)

Re: Mahjong Dreamland

PostPosted: Wed Nov 25, 2009 1:02 am
by superman123
looks great :D

Re: Mahjong Dreamland

PostPosted: Fri Nov 27, 2009 11:14 am
by Bee-Ant
Just as expected...
I saw this game at regame.us, then now in game-editor... :D