Written on 22 December 2017
Dungeon Master Javascript
Could this be the height of my retro 80′s/90′s gaming obsession I hear you ask?
Well quite possibly..probably not though.
Try my Dungeon Master Javascript version of the 80′s classic Dungeon Master By FTL Games.
The entire ‘game’ is written in javascript and CSS, it should be CSS2 compliant but I have used a few CSS3 methods..
You can control where you are in the maze by using the Arrow keys on your keyboard, or by clicking on the arrow icons in the interface.
The logistics of the game are quite complicated. The main premise of its functionality revolves around a 2-dimensional array of javascript objects, which divide the ‘squares’ into 5 (North, East, South, West and Center) and these have a various properties too..
The visualization takes place by scanning upon movement the present location of the player/view-port in relation to the map, creating walls where it sees fit. The same goes for the doors.
This game will not work in obsolete browsers, and if it does it may be buggy..
There is no pre-loading of data at present. This means it may appear to be malfunctioning when its just loading data/graphics.
In time I hope to develop it further, however with the advent of HTML5 the methods I’m using may seem rather redundant to the modern gamer. Especially with 3d/GL developments.
I cannot take credit for the Dungeon Graphics.. they were taken from the example module of Return to Chaos…and other various old pseudo 3d games.
The source code is freely available, if you do use it though please credit/comment me Joe Shaw.