Tag Archive for 'mahjong'

Mahjong: making progression

This week I made some designs for my Mahjong game (read more) and the game is gonna be just great! Here is a little preview of the tiles and the style of the game (I’ll upload more designs later on):

Mahjong tiles

Besides the designs I also needed a nice transition between the background and a map that will be shown somewhere during the game (as some sort of level selection). Because the style is kind of “old” I thought it would be a good idea to make some sort of dissolve transition.
Whaddayaknow; I managed to get a decent result in just a couple of hours.

Despite the fact that I used a perlinNoise and a copyChannel the  result runs pretty smooth. Check it out:
http://labs.justgreat.nl/exp080201.htm

To accomplish the dissolve effect I used an alpha mask on the top image (in this case the “map”-image). The mask itself is created by combining a perlinNoise and copyChannel. The perlinNoise creates the randomness and the copyChannel transforms the randomness into a transparent layer.
The size of the mask is half the size of the image and stretched to match the size of the image. This way only a small perlin noise has to be created which increases performance.

Tiling my Mahjong engine

Just great; a new week and I have only one spare evening do a little experimenting :|
Since my goal was to put up at least one decent experiment a week and since I have little time this week, I decided to upload an experiment that’s almost a year old. It’s an engine for a Mahjong game:

http://labs.justgreat.nl/exp061203.htm

At the time I made the engine I didn’t feel like creating nice graphics so the experiment still looks a bit boring.
Because the engine works fine I thought it would be a wast not to use it, so tonight I created some graphics for the tiles (check them here).
The symbols are taken from a photo of real Mahjong stones. so they should be quite accurate.
The tileset is not 100% complete yet and the current tiles still need a little work on the coloring as well, but I’m sure I’ll finish it somewhere next year :D