Changeset 264 for trunk/game/maps


Ignore:
Timestamp:
08/28/09 15:05:39 (10 years ago)
Author:
Kaydeth_parpg
Message:

Ticket #72: Patch by Kaydeth. The separate objects file was merged back into the main map file that FIFE parses to load each Map. The Map, Engine, and World classes were all updated to allow game object creation to happen as the map file is loaded. loaders.py and xmlmap.py were copied from the FIFE code base and made local so that we can now customize how we pass the parsed map and object information to FIFE.

Location:
trunk/game/maps
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/maps/map.xml

    r204 r264  
    11181118            <i x="8" o="block" z="0.0" y="-4" r="0"></i> 
    11191119            <i x="8" o="block" z="0.0" y="-3" r="0"></i> 
     1120             
     1121            <!-- There must be one and one only PC character --> 
     1122                        <i x="0.0" o="PC" z="0.0" y="0.0" r="0" id="PC" object_type="PlayerCharacter"></i> 
     1123             
     1124            <!-- There can be any number of NPC characters --> 
     1125                        <i x="-4.0" o="npc-woman" z="0.0" y="-7.0" r="0" id="woman01" object_type="NonPlayerCharacter" 
     1126                                text="A friendly woman"></i> 
     1127             
     1128             
     1129                        <i x="-3.0" o="crate" z="0.0" y="-4.0" r="0" id="crate01" object_type="WoodenCrate" is_open="False" locked="False" text="asdf" 
     1130                desc="A crate that is covered in grime and dirt. There doesn't seem to be anything remarkable about it"></i> 
     1131  
     1132                        <!-- There can be any number of objects --> 
     1133                        <!-- Object blocking is set in the objects own xml file --> 
     1134                        <i x="-4.0" o="crate" z="0.0" y="-6.0" r="0" id="crate02" object_type="WoodenCrate" 
     1135                is_open="False" locked="False" text="A dirty old crate" 
     1136                        desc="A crate that is covered in grime and dirt. There doesn't seem to be anything remarkable about it"></i> 
     1137             
    11201138                </instances> 
    11211139        </layer> 
Note: See TracChangeset for help on using the changeset viewer.