Skip to content

Commit

Permalink
fix strike again
Browse files Browse the repository at this point in the history
  • Loading branch information
EliasSchaut committed Apr 16, 2024
1 parent 81e8168 commit 9ab931a
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/scenes/enemies/firedevil.tscn
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[gd_scene load_steps=15 format=3 uid="uid://b5f5lmrpjngrp"]

[ext_resource type="PackedScene" uid="uid://cbej72vi5osrq" path="res://scenes/enemies/enemy.tscn" id="1_ylqlj"]
[ext_resource type="Texture2D" uid="uid://beiqouigaecec" path="res://assets/fire-demon.png" id="2_cna0v"]
[ext_resource type="Texture2D" uid="uid://cb7pd2huloiib" path="res://assets/fire-demon.png" id="2_cna0v"]
[ext_resource type="Script" path="res://scripts/enemies/firedevil.gd" id="2_mcpaa"]

[sub_resource type="AtlasTexture" id="AtlasTexture_useh6"]
Expand Down Expand Up @@ -88,7 +88,6 @@ MOVEMENT_SPEED = 20.0
position = Vector2(-1, 0)
scale = Vector2(-1, 1)
sprite_frames = SubResource("SpriteFrames_le66y")
autoplay = "default"
frame = 1

[node name="CollisionShape2D" parent="HitCollider" index="0"]
Expand Down
1 change: 1 addition & 0 deletions src/scenes/rooms/room-illuminati.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ position = Vector2(510, 34)

[node name="Bookworm" parent="." index="3" instance=ExtResource("2_8vdua")]
position = Vector2(234, 218)
ATTACK_DAMAGE = 10

[node name="PlayerMarker" parent="." index="4"]
position = Vector2(98, 51)
1 change: 1 addition & 0 deletions src/scenes/rooms/room-wheel.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ position = Vector2(121, 147)

[node name="Bookworm" parent="." index="4" instance=ExtResource("2_k1tg7")]
position = Vector2(5, -21)
ATTACK_DAMAGE = 10

[node name="Bat" parent="." index="5" instance=ExtResource("3_sn00y")]
position = Vector2(171, 38)
3 changes: 3 additions & 0 deletions src/scenes/rooms/room1.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@ position = Vector2(-1, -222)

[node name="Bookworm" parent="." index="6" instance=ExtResource("4_ae0jt")]
position = Vector2(-17, -119)
ATTACK_DAMAGE = 10

[node name="Unicorn3" parent="." index="7" instance=ExtResource("3_oi2kq")]
position = Vector2(-21, -63)

[node name="Bookworm2" parent="." index="8" instance=ExtResource("4_ae0jt")]
position = Vector2(-41, 9)
ATTACK_DAMAGE = 10

[node name="Bookworm3" parent="." index="9" instance=ExtResource("4_ae0jt")]
position = Vector2(66, -23)
ATTACK_DAMAGE = 10
1 change: 1 addition & 0 deletions src/scenes/rooms/room3.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ position = Vector2(313, -78)

[node name="Bookworm" parent="." index="6" instance=ExtResource("3_s0cjm")]
position = Vector2(200, -23)
ATTACK_DAMAGE = 10

[node name="Firedevil" parent="." index="7" instance=ExtResource("4_a0t8x")]
position = Vector2(418, -23)
Expand Down
2 changes: 2 additions & 0 deletions src/scenes/rooms/room_4.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ position = Vector2(89, 145)

[node name="Bookworm" parent="." index="5" instance=ExtResource("3_tlvvn")]
position = Vector2(170, 72)
ATTACK_DAMAGE = 10

[node name="Bookworm2" parent="." index="6" instance=ExtResource("3_tlvvn")]
position = Vector2(74, -7)
ATTACK_DAMAGE = 10

[node name="Bat" parent="." index="7" instance=ExtResource("4_6f3u0")]
position = Vector2(240, 118)
Expand Down
1 change: 1 addition & 0 deletions src/scenes/rooms/room_debug.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ spell = 11

[node name="Bookworm" parent="." index="16" instance=ExtResource("4_bf5w7")]
position = Vector2(170, 38)
ATTACK_DAMAGE = 10

[node name="Firedevil" parent="." index="17" instance=ExtResource("5_fqody")]
position = Vector2(-147, 41)
Expand Down
4 changes: 3 additions & 1 deletion src/scripts/world.gd
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ func check_room_cleared():
room.room_cleared()

func get_next_spell() -> Spell:
if next_spell_idx == -1 or next_spell_idx >= spell_order.size() or next_spell_idx == Spell.STRIKE:
if next_spell_idx == -1 or next_spell_idx >= spell_order.size():
return Spell.PLACEHOLDER
if spell_order[next_spell_idx] == Spell.STRIKE:
next_spell_idx += 1
var spell = spell_order[next_spell_idx]
next_spell_idx += 1
return spell

0 comments on commit 9ab931a

Please sign in to comment.