1 # This file is part of Realism, which is Copyright FunnyMan3595 (Charlie Nolan)
2 # and licensed under the GNU GPL v3. For more details, see LICENSE in the main
5 # WARNING: All mod formats are under heavy development. They may change at any
6 # time, breaking old mods. For this reason, we DO NOT RECOMMEND making mods
9 # This file defines the maps used in the game. It has the same format as
11 # For a complete guide to modding, see MODDING, in the Realism main directory.
13 # Like all the .py files, this is Python code. Most mod makers should be able
14 # to understand and adapt it, but knowledge of Python will help, and may allow
15 # you to do neat tricks.
17 '''Defines the maps used in the game.'''
19 # This is the voodoo that processes the map files and lets them inter-link.
20 from engine
.game_map
import make_make_map
21 make_map
= make_make_map(__file__
)
23 # Map definitions are of the form:
24 # make_map("map_name")
25 # The actual map must be in map_name.map, in this directory.
27 # Optionally, you can give the map a name for use in your functions:
28 # name = make_map("map_name")
30 # Every mod must have a map called start. This is where the player starts.
32 # The engine checks for the name at left first, then for a "start" passed to
33 # make_map. If neither is available, the mod will not run.
34 start_map
= make_map("start_map")
36 start_town
= make_map("start_town")
37 beginner_woods
= make_map("beginner_woods")
38 open_plains
= make_map("open_plains")