adding new ennemies

This commit is contained in:
Clément Le Bihan
2020-05-01 15:28:07 +02:00
parent bcf76d083e
commit 4e5f5f1872
14 changed files with 101 additions and 1 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

+5
View File
@@ -17,6 +17,11 @@
<sprite name="slot_4" src="assets/sprites/inventory/shield_upgrade.png" /> <sprite name="slot_4" src="assets/sprites/inventory/shield_upgrade.png" />
<sprite name="bee" src="assets/sprites/bee.png" /> <sprite name="bee" src="assets/sprites/bee.png" />
<sprite name="mushroom_ennemy" src="assets/sprites/mushroom_ennemy.png" />
<sprite name="turnipor" src="assets/sprites/Turnipor.png" />
<sprite name="shrump" src="assets/sprites/Shrump.png" />
<sprite name="evil_seed" src="assets/sprites/Evil_seed.png" />
<sprite name="flower_ennemy" src="assets/sprites/Flower_ennemy.png" />
</data> </data>
<gc_entities> <gc_entities>
<gc_entity> <gc_entity>
+17
View File
@@ -0,0 +1,17 @@
<gc_entities>
<gc_entity>
<transform_component>
<Position x="0" y="0" />
<Size x="180" y="200" />
</transform_component>
<renderer src="evil_seed">
<Rect height="auto" width="auto" top="0" left="0" />
</renderer>
<fixed_to_cam x="75%" y="20%" />
<combat_holder name="evil seed" />
<attack_component>
<attack name="Hypnosis"/>
</attack_component>
<health_component max_health="20"/>
</gc_entity>
</gc_entities>
+17
View File
@@ -0,0 +1,17 @@
<gc_entities>
<gc_entity>
<transform_component>
<Position x="0" y="0" />
<Size x="180" y="200" />
</transform_component>
<renderer src="flower_ennemy">
<Rect height="auto" width="auto" top="0" left="0" />
</renderer>
<fixed_to_cam x="75%" y="20%" />
<combat_holder name="flower" />
<attack_component>
<attack name="Water gun"/>
</attack_component>
<health_component max_health="5"/>
</gc_entity>
</gc_entities>
+17
View File
@@ -0,0 +1,17 @@
<gc_entities>
<gc_entity>
<transform_component>
<Position x="0" y="0" />
<Size x="180" y="200" />
</transform_component>
<renderer src="mushroom_ennemy">
<Rect height="auto" width="auto" top="0" left="0" />
</renderer>
<fixed_to_cam x="75%" y="20%" />
<combat_holder name="mushroom" />
<attack_component>
<attack name="Spore attack"/>
</attack_component>
<health_component max_health="13"/>
</gc_entity>
</gc_entities>
+17
View File
@@ -0,0 +1,17 @@
<gc_entities>
<gc_entity>
<transform_component>
<Position x="0" y="0" />
<Size x="200" y="200" />
</transform_component>
<renderer src="shrump">
<Rect height="auto" width="auto" top="0" left="0" />
</renderer>
<fixed_to_cam x="75%" y="20%" />
<combat_holder name="shrump" />
<attack_component>
<attack name="Spinning roots"/>
</attack_component>
<health_component max_health="7"/>
</gc_entity>
</gc_entities>
+17
View File
@@ -0,0 +1,17 @@
<gc_entities>
<gc_entity>
<transform_component>
<Position x="0" y="0" />
<Size x="180" y="200" />
</transform_component>
<renderer src="turnipor">
<Rect height="auto" width="auto" top="0" left="0" />
</renderer>
<fixed_to_cam x="75%" y="20%" />
<combat_holder name="turnipor" />
<attack_component>
<attack name="Sharp leaves"/>
</attack_component>
<health_component max_health="10"/>
</gc_entity>
</gc_entities>
+5
View File
@@ -147,6 +147,11 @@
<enemies> <enemies>
<enemy name="bee" src="prefabs/enemies/bee.gcprefab" /> <enemy name="bee" src="prefabs/enemies/bee.gcprefab" />
<enemy name="mushroom" src="prefabs/enemies/mushroom.gcprefab" />
<enemy name="turnipor" src="prefabs/enemies/turnipor.gcprefab" />
<enemy name="shrump" src="prefabs/enemies/shrump.gcprefab" />
<enemy name="evil seed" src="prefabs/enemies/evil_seed.gcprefab" />
<enemy name="flower" src="prefabs/enemies/flower.gcprefab" />
</enemies> </enemies>
</data> </data>
+5
View File
@@ -69,6 +69,11 @@ const struct gc_data attacks[] = {
{"attack", "Water jet", &water_jet, NULL}, {"attack", "Water jet", &water_jet, NULL},
{"attack", "Shield", &shield, NULL}, {"attack", "Shield", &shield, NULL},
{"attack", "Aerial attack", &enemy_attack, NULL}, {"attack", "Aerial attack", &enemy_attack, NULL},
{"attack", "Spore attack", &enemy_attack, NULL},
{"attack", "Sharp leaves", &enemy_attack, NULL},
{"attack", "Spinning roots", &enemy_attack, NULL},
{"attack", "Hypnosis", &enemy_attack, NULL},
{"attack", "Water gun", &enemy_attack, NULL},
{NULL, NULL, NULL, NULL} {NULL, NULL, NULL, NULL}
}; };