farmlands/assets/scenes/Game.scene

71 lines
1.9 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<Scene cellWidth="16"
cellHeight="16">
<!-- Main camera -->
<GameObject name="Main Camera">
<Transform />
<Camera scale="4" mainCamera="true" />
<GameTime />
<Weather />
</GameObject>
<!-- Background object -->
<GameObject name="Map">
<Map src="maps/Farm.map" />
<MapRenderer />
</GameObject>
<GameObject name="Object Layer">
<Transform />
<Grid w="380" h="250" />
</GameObject>
<!-- Player object -->
<GameObject name="Player">
<Transform x="120" y="100" />
<Sprite src="sprites/Player.sprite" />
<SpriteRenderer />
<Collider x="0.2" y="0.75"
w="0.6" h="0.25"
solid="true" />
<Inventory capacity="30" />
<Player hp="100" maxHp="100"
energy="100" maxEnergy="100"
money="50" />
</GameObject>
<GameObject name="Pickables">
<Transform />
</GameObject>
<!-- Debug object -->
<GameObject name="Debug">
<DebugController />
</GameObject>
<GameObject name="enemyTest">
<Transform x="125" y="110" />
<Sprite src="sprites/Player.sprite" />
<SpriteRenderer />
<Collider x="0" y="0.5"
w="1" h="0.5"
solid="true" />
<MovingNpcController />
</GameObject>
<GameObject name="something">
<Transform x="130.5" y="100.3" />
<Sprite w="5" h="3"
anchorX="0" anchorY="0">
<State name="Normal">
<Frame tileSet="tilesets/Ground.png" cell="15" duration="1" />
</State>
</Sprite>
<SpriteRenderer />
<Collider solid="true"
x="0" y="0.5"
w="1" h="0.5" />
</GameObject>
</Scene>