Chapter 4. The Game Editor

Getting Started with the Editor

Creating a Game

Before you create or edit a KGoldrunner level, you must create a game in which to save it. Use the EditorCreate Game... menu item. If you forget, you will be reminded.

The most important decisions to make when creating a game are to choose the rules you are going to follow (Traditional or KGoldrunner, see Choice of Rules) and to choose a unique 1-5 character file name prefix for your game and levels. You also need a name and description for your game, but those can easily be changed later.

The prefix is used internally by KGoldrunner to identify level files, high score files and saved games. You can use your initials as a prefix provided they are not the same as a KGoldrunner prefix. So far, the prefixes level, plws, wad, plwv, sot, cnt, CM, tute and tutea have been used.

The four-letter tute prefix is reserved for tutorial games, which show the hint on each level as you play it. If you compose your own Tutorial game you could use the prefix tutex, to make it run as a tutorial but not get its files confused with those of the basic Tutorial or Advanced Tutorial (prefixes tute and tutea).

Creating a Level

When you have a game set up, use the EditorCreate Level menu item to start creating a level. It provides you with a blank playing area of 28x20 squares, with the hero at the top left. You can put the hero somewhere else if you prefer and you do not have to use the whole 28x20 area. Lots of interesting levels use smaller areas.

The minimum requirement for a level to be playable is to have a hero who is standing on something at the top of the playing area, but that is a trivial case. More realistically, you could have a maze to solve and some visible ladders leading to the top of the playing area, but no gold. You do not have to have enemies, gold, bars, hidden ladders or even bricks. There are many challenging levels that have no enemies or no bricks, however most levels have at least one gold, some enemies and some hidden ladders that appear when the last gold is collected.