Building a pseudo-3d game using SilverTile

27. juli 2010

I needed a break from my Zelda remake and decided to try something completely different. Being a fan of the Dungeon Master and Eye of the Beholder games I decided to build a 3d-engine for that kind of game.


A scene from Dungeon Master - tasty monsters!

The principle is simple - you only allow the player to turn 90 degrees and the entire world is built up of square blocks. When the player moves he always moves one square at a time. This means that we don't need 3d models of everything, 2d sprites are enough. All we need is to draw everything from all four sides and we are done! We get the 3d effect by drawing the objects furthest away before those that are closer.

Creating the effect in SilverTile

Doing this in SilverTile turned out to be quite easy. SilverTile already supports layering of sprites, it supports sprites of any size at any location and it supports transparent pixels. The major job was to decide where to place each sprite. We have three images for walls on each z-level supported by the game - front facing, left and right.


Wall tiles: Left, front facing, right

The screenshot below shows a screenshot from the game engine. The wall on the left is made up by three images stiched together, the floor and roof are static pictures.

A screenshot from the game engine running in Silverlight

The figure below shows and overhead view of the rendered scene. The red squares are walls and the green are floor.

The wall layout rendered in the screen shot

I have built a prototype game that runs in both Silverlight and on Windows Phone 7. The game lets you explare a randomly generated maze and is controlled by using the arrow keys on Silverlight and touch gestures on WP7.

The game runs on Windows Phone 7 as well as on Silverlight

You can try the Silverlight verison here. Contact me if you are interested in the source code. The game uses an unreleased version of Silvertile and the source code is quite messy (a real prototype!), so I won't post it here. :-)


Update (27. september 2010):

I decided to use my code and build a simple dungeon exploration game and submit it to the Norwegian Windows Phone 7 developer contest. I got a designer buddy (@hiemil) to make a pretty user interface, and I borrowed Ralf Hinrichsens custom DMJava graphics to draw the dungeon and the monsters. The end result was a much prettier game than what you can see on the screens here. Watch a short gameplay video here:



.NET, Silverlight, WP7 , , ,


22.03.2011 13:52:21 #

I'm making an open source clone of Eye of the Beholder II. You can have more informations at and have a look how I made things.

10.07.2011 15:52:12 #
This is coming back to the old RPG games, 90 degress rulez Smile
29.10.2013 05:27:48 #
Thank you for sharing this very nice information. I always want and love reading quality contents. Keep sharing. Best wishes for your further efforts
03.06.2017 06:35:18 #
You know exactly how much money you have available to spend on agullsmed1 gold bracelet, and it's going to help you narrow down your options without ever feel tempted to "break into the piggy bank" and go over what you are willing to use just because you stumbled across something that caught the eye.
25.09.2017 13:49:00 #
Wonderful, just what a blog it is! This blog has provided the helpful data to us continue the good work.
18.10.2017 18:31:58 #
I continuously continue coming to your website once more simply in case you have posted new contents.
20.10.2017 09:07:09 #
Track your stats and see how many leads and sales you can get! Our dashboards will show you how many people are joining your lists, which click funnels review they are buying products through and more! Our dashboards will show you how many people are joining your lists, which funnels they are buying products through and more!
21.10.2017 12:48:45 #
While writing the body of the paper, keep the following guidelines in mind. Establish a flow between the paragraphs, and place them in a logical sequence.
24.10.2017 09:11:58 #
I'd be trampled if all sites gave articles like these awesome articles.
26.10.2017 09:32:50 #
Through paid advertising, Ritewik implemented a multi-channel effort targeting potential checking account customers, launching geo-targeted campaigns aligning with the bank’s mass media efforts to more effectively capitalize on advertising spend. We also launched remarking and display ads as a way to encourage more application completes
18.11.2017 07:31:27 #
It’s my first time to visit this site & I’m really surprised to see such impressive stuff out there.
27.11.2017 11:06:34 #
I’m trampled by your contents carry on the wonderful work.
20.12.2017 05:42:27 #
I want more and more articles and blogs please post soon such informative information.
<a href=">
20.12.2017 06:02:32 #
I know this is quality based blogs along with other stuff.
20.12.2017 10:44:43 #
A great job you have already done. I’m really delighted to see your amazing work.
20.12.2017 12:29:09 #
I'm also visiting this site regularly, this web site is really nice and the users are genuinely sharing good thoughts.
02.01.2018 09:24:55 #
This written piece gives fastidious understanding yet.
30.01.2018 05:28:16 #
This article has some vast and valuable information about this subject.
27.02.2018 06:26:58 #
Cool blog site friend I'm about to suggest this to all my listing contacts.
28.02.2018 07:33:10 #
This info you provided in the blog that was really unique I love it!!!
28.02.2018 11:57:48 #
Hey enormous stuff or pleasant information you are offering here.
01.03.2018 07:01:01 #
Great blog you people have made here on this blog site, I will absolutely appreciate your work.
01.03.2018 11:03:24 #
I will prefer this blog because it has much more informative stuff.
17.05.2018 11:50:03 #
Cool blog site friend I'm about to suggest this to all my listing contacts.

Add comment

  Country flag

The number (5) not with letters. This is to stop spammers.

  • Comment
  • Preview