Mahjong Dreamland

Post here your demos and examples with the source files.
Forum rules
Always post the games with a screenshot.
The file must have the ged and data files (complete game source)
Use the forum attachment to post the files.
It is always better to use the first post to put the game files

Mahjong Dreamland

Postby DST » Tue Nov 24, 2009 2:58 am

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
Attachments
MahjongDreamland.zip
(20.51 MiB) Downloaded 117 times
masnap00.jpg
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: Mahjong Dreamland

Postby Camper1995 » Tue Nov 24, 2009 4:57 pm

Hey man! Great work! ;) Fantastic... Its great that you can choice a skin..

Very nice ! :)
Say hello to my little friend.
User avatar
Camper1995
 
Posts: 707
Joined: Tue Dec 30, 2008 7:20 pm
Location: Lost in the past.
Score: 44 Give a positive score

Re: Mahjong Dreamland

Postby zygoth » Tue Nov 24, 2009 5:04 pm

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
Nova: 100% Vertigo/Mazeman: 100%
Visit my website to download them both! http://www.ketonegames.com
User avatar
zygoth
 
Posts: 140
Joined: Mon Jun 11, 2007 6:37 pm
Score: 5 Give a positive score

Re: Mahjong Dreamland

Postby DST » Tue Nov 24, 2009 5:07 pm

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.
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: Mahjong Dreamland

Postby makslane » Tue Nov 24, 2009 8:23 pm

Great job :-)
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: Mahjong Dreamland

Postby superman123 » Wed Nov 25, 2009 1:02 am

looks great :D
look at my flash ball gamehttp://game-editor.com/forum/viewtopic.php?f=6&t=7285
aerogame websitehttp://www.aeroman.webs.com

(new avitar made with GIMP and it is awesome)
User avatar
superman123
 
Posts: 79
Joined: Tue Jul 28, 2009 7:20 pm
Score: 1 Give a positive score

Re: Mahjong Dreamland

Postby Bee-Ant » Fri Nov 27, 2009 11:14 am

Just as expected...
I saw this game at regame.us, then now in game-editor... :D
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score


Return to Game Demos

Who is online

Users browsing this forum: No registered users and 1 guest