Akalabeth Main Game File

31 thoughts
last posted April 5, 2014, 6 a.m.

20 earlier thoughts

0

What we learnt from the command handling routines above:

  • TER%() contains the terrain type at an outside location
  • DNG%() contains what is at a particular location in a dungeon
  • TX and TY are the player's location outside
  • PX and PY are the player's location inside
  • DX and DY are how PX and PY will change if the player steps forward (i.e. they give the direction the player is facing in the dungeon)

Values of TER%() are:

  • 1 = MOUNTAINS
  • 3 = TOWN (SHOP)
  • 4 = DUNGEON
  • 5 = LORD BRITISH'S CASTLE

Values of DNG%() are:

  • 1 = WALL?
  • 2 = TRAP
  • 5 = CHEST
  • 7 or 9 = DOWN LADDER
  • 8 = UP LADDER

10 later thoughts