Testing some enemies
This commit is contained in:
15
assets/games/rose/prefabs/Crab.xml
Normal file
15
assets/games/rose/prefabs/Crab.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<prefab name="Crab" type="">
|
||||
<MeshRenderer />
|
||||
<CapsuleMeshHost />
|
||||
<SimpleTexturedMaterial ref="material" />
|
||||
<CharacterController2D />
|
||||
<BoxCollider />
|
||||
<EntityHealth />
|
||||
<EntityRandomWalk />
|
||||
|
||||
<child position="0, 0, -0.6">
|
||||
<MeshRenderer />
|
||||
<CubeMeshHost size="0.2, 0.2, 0.2" />
|
||||
<SimpleTexturedMaterial color="COLOR_RED" />
|
||||
</child>
|
||||
</prefab>
|
@ -3,7 +3,8 @@
|
||||
<CapsuleMeshHost />
|
||||
<SimpleTexturedMaterial ref="material" />
|
||||
<CharacterController2D />
|
||||
<BoxCollider min="-1, -1" max="1, 1" />
|
||||
<BoxCollider />
|
||||
<EntityHealth />
|
||||
<PlayerController ref="player" />
|
||||
|
||||
<child position="0, 0, -0.7">
|
||||
|
9
assets/games/rose/prefabs/Urchin.xml
Normal file
9
assets/games/rose/prefabs/Urchin.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<prefab name="Urchin" type="">
|
||||
<MeshRenderer />
|
||||
<CapsuleMeshHost />
|
||||
<SimpleTexturedMaterial ref="material" />
|
||||
<CharacterController2D />
|
||||
<BoxCollider />
|
||||
<EntityHealth />
|
||||
<HurtHazard />
|
||||
</prefab>
|
Reference in New Issue
Block a user