diff --git a/actors/enemies/enemy_character.gd b/actors/enemies/enemy_character.gd new file mode 100644 index 0000000..1851ead --- /dev/null +++ b/actors/enemies/enemy_character.gd @@ -0,0 +1,3 @@ + +class_name EnemyCharacter +extends Node2D \ No newline at end of file diff --git a/actors/player chars/alex/alex.tscn b/actors/player chars/alex/alex.tscn index dd159cb..282b890 100644 --- a/actors/player chars/alex/alex.tscn +++ b/actors/player chars/alex/alex.tscn @@ -3,10 +3,6 @@ [ext_resource type="Script" path="res://actors/player chars/player_character.gd" id="1_l60p5"] [ext_resource type="Texture2D" uid="uid://cs6uqgpyvwy7r" path="res://assets/art/character sprites/alex.png" id="2_2yoh5"] -[sub_resource type="AtlasTexture" id="AtlasTexture_fdxoe"] -atlas = ExtResource("2_2yoh5") -region = Rect2(48, 48, 48, 48) - [sub_resource type="AtlasTexture" id="AtlasTexture_u1hru"] atlas = ExtResource("2_2yoh5") region = Rect2(48, 144, 48, 48) @@ -15,18 +11,10 @@ region = Rect2(48, 144, 48, 48) atlas = ExtResource("2_2yoh5") region = Rect2(48, 0, 48, 48) -[sub_resource type="AtlasTexture" id="AtlasTexture_6y8f1"] -atlas = ExtResource("2_2yoh5") -region = Rect2(0, 48, 48, 48) - -[sub_resource type="AtlasTexture" id="AtlasTexture_fkjvm"] +[sub_resource type="AtlasTexture" id="AtlasTexture_fdxoe"] atlas = ExtResource("2_2yoh5") region = Rect2(48, 48, 48, 48) -[sub_resource type="AtlasTexture" id="AtlasTexture_xbpqv"] -atlas = ExtResource("2_2yoh5") -region = Rect2(96, 48, 48, 48) - [sub_resource type="AtlasTexture" id="AtlasTexture_mya52"] atlas = ExtResource("2_2yoh5") region = Rect2(0, 144, 48, 48) @@ -51,18 +39,22 @@ region = Rect2(48, 0, 48, 48) atlas = ExtResource("2_2yoh5") region = Rect2(96, 0, 48, 48) +[sub_resource type="AtlasTexture" id="AtlasTexture_igt71"] +atlas = ExtResource("2_2yoh5") +region = Rect2(0, 48, 48, 48) + +[sub_resource type="AtlasTexture" id="AtlasTexture_bf443"] +atlas = ExtResource("2_2yoh5") +region = Rect2(48, 48, 48, 48) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ucyt6"] +atlas = ExtResource("2_2yoh5") +region = Rect2(96, 48, 48, 48) + [sub_resource type="SpriteFrames" id="SpriteFrames_vu5b1"] animations = [{ "frames": [{ "duration": 1.0, -"texture": SubResource("AtlasTexture_fdxoe") -}], -"loop": true, -"name": &"Idle_East", -"speed": 5.0 -}, { -"frames": [{ -"duration": 1.0, "texture": SubResource("AtlasTexture_u1hru") }], "loop": true, @@ -79,19 +71,10 @@ animations = [{ }, { "frames": [{ "duration": 1.0, -"texture": SubResource("AtlasTexture_6y8f1") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_fkjvm") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_xbpqv") -}, { -"duration": 1.0, -"texture": SubResource("AtlasTexture_fkjvm") +"texture": SubResource("AtlasTexture_fdxoe") }], "loop": true, -"name": &"Walk_East", +"name": &"Idle_West", "speed": 5.0 }, { "frames": [{ @@ -127,12 +110,30 @@ animations = [{ "loop": true, "name": &"Walk_South", "speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_igt71") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_bf443") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ucyt6") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_bf443") +}], +"loop": true, +"name": &"Walk_West", +"speed": 5.0 }] [node name="Alex" type="Node2D" node_paths=PackedStringArray("sprite")] script = ExtResource("1_l60p5") +char_name = "Alex" sprite = NodePath("AnimatedSprite2D") [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] sprite_frames = SubResource("SpriteFrames_vu5b1") -animation = &"Walk_East" +animation = &"Idle_West" diff --git a/actors/player chars/player_character.gd b/actors/player chars/player_character.gd index da07a39..c798149 100644 --- a/actors/player chars/player_character.gd +++ b/actors/player chars/player_character.gd @@ -36,10 +36,10 @@ func _validate_animations(): var expected_animations = [ "Idle_North", "Idle_South", - "Idle_East", + "Idle_West", "Walk_North", "Walk_South", - "Walk_East", + "Walk_West", ] for anim in expected_animations: @@ -62,15 +62,15 @@ func _process_input(): if Input.is_action_just_pressed("Move_Left"): _is_moving = true _was_moving = true - facing_direction = FacingDirection.EAST - sprite.play("Walk_East") + facing_direction = FacingDirection.WEST + sprite.play("Walk_West") sprite.flip_h = false if Input.is_action_just_pressed("Move_Right"): _is_moving = true _was_moving = true - facing_direction = FacingDirection.WEST - sprite.play("Walk_East") + facing_direction = FacingDirection.EAST + sprite.play("Walk_West") sprite.flip_h = true if Input.is_action_just_released("Move_Down") \ @@ -89,10 +89,11 @@ func _process_input(): if facing_direction == FacingDirection.SOUTH: sprite.play("Idle_South") - if facing_direction == FacingDirection.EAST: - sprite.play("Idle_East") - sprite.flip_h = false - if facing_direction == FacingDirection.WEST: - sprite.play("Idle_East") + sprite.play("Idle_West") + sprite.flip_h = false + + if facing_direction == FacingDirection.EAST: + sprite.play("Idle_West") sprite.flip_h = true + diff --git a/assets/art/character sprites/Szadi NPCs/Female1.png b/assets/art/character sprites/Szadi NPCs/Female1.png new file mode 100644 index 0000000..768e584 --- /dev/null +++ b/assets/art/character sprites/Szadi NPCs/Female1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:356774c3c04d1555ddcc8eed08de7387d49f1347887d98734e14cc86ec16c5ab +size 27570 diff --git a/assets/art/character sprites/Szadi NPCs/Female1.png.import b/assets/art/character sprites/Szadi NPCs/Female1.png.import new file mode 100644 index 0000000..1e32c2b --- /dev/null +++ b/assets/art/character sprites/Szadi NPCs/Female1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://uvm83t4gchb7" +path="res://.godot/imported/Female1.png-751b04120ba1352265921310378ca8c2.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/art/character sprites/Szadi NPCs/Female1.png" +dest_files=["res://.godot/imported/Female1.png-751b04120ba1352265921310378ca8c2.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/art/character sprites/Szadi NPCs/Female2.png b/assets/art/character sprites/Szadi NPCs/Female2.png new file mode 100644 index 0000000..0fa72c2 --- /dev/null +++ b/assets/art/character sprites/Szadi NPCs/Female2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9dbbfc7fabf9c35c5e4d2a027fe1c437fd4cb84f5d3937284ee5338ad298e7b7 +size 26922 diff --git a/assets/art/character sprites/Szadi NPCs/Female2.png.import b/assets/art/character sprites/Szadi NPCs/Female2.png.import new file mode 100644 index 0000000..77ee4c9 --- /dev/null +++ b/assets/art/character sprites/Szadi NPCs/Female2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cgc15eklb3nu" +path="res://.godot/imported/Female2.png-c21c085d5b87f05b39035afefe476932.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/art/character sprites/Szadi NPCs/Female2.png" +dest_files=["res://.godot/imported/Female2.png-c21c085d5b87f05b39035afefe476932.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/art/character sprites/Szadi NPCs/Male1.png b/assets/art/character sprites/Szadi NPCs/Male1.png new file mode 100644 index 0000000..ed1cde1 --- /dev/null +++ b/assets/art/character sprites/Szadi NPCs/Male1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ddf562e4ebfcb0ab428f60bd35cdbd7afdbca580b2a0985283c47e6e65df5e0e +size 27348 diff --git a/assets/art/character sprites/Szadi NPCs/Male1.png.import b/assets/art/character sprites/Szadi NPCs/Male1.png.import new file mode 100644 index 0000000..7107a72 --- /dev/null +++ b/assets/art/character sprites/Szadi NPCs/Male1.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://4h8n71pv0rte" +path="res://.godot/imported/Male1.png-7e24926694ba397cd822ce2fe47dd922.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/art/character sprites/Szadi NPCs/Male1.png" +dest_files=["res://.godot/imported/Male1.png-7e24926694ba397cd822ce2fe47dd922.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/art/character sprites/Szadi NPCs/Male2.png b/assets/art/character sprites/Szadi NPCs/Male2.png new file mode 100644 index 0000000..d48c9b6 --- /dev/null +++ b/assets/art/character sprites/Szadi NPCs/Male2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6333f13728032d0b3e58739907215085cebd099e8d07a268d38c9a03eda0a0e0 +size 27959 diff --git a/assets/art/character sprites/Szadi NPCs/Male2.png.import b/assets/art/character sprites/Szadi NPCs/Male2.png.import new file mode 100644 index 0000000..a55f0cd --- /dev/null +++ b/assets/art/character sprites/Szadi NPCs/Male2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://daq5hi7v0qbys" +path="res://.godot/imported/Male2.png-383cd63349d8e1441ed489d992446ce6.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/art/character sprites/Szadi NPCs/Male2.png" +dest_files=["res://.godot/imported/Male2.png-383cd63349d8e1441ed489d992446ce6.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/art/character sprites/Szadi NPCs/Male3.png b/assets/art/character sprites/Szadi NPCs/Male3.png new file mode 100644 index 0000000..5a88d3e --- /dev/null +++ b/assets/art/character sprites/Szadi NPCs/Male3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:657d48cf828ece5769fa65b1d8a0309e0006abbc9bccd3496dec72cb0c9b8ab1 +size 28463 diff --git a/assets/art/character sprites/Szadi NPCs/Male3.png.import b/assets/art/character sprites/Szadi NPCs/Male3.png.import new file mode 100644 index 0000000..2531998 --- /dev/null +++ b/assets/art/character sprites/Szadi NPCs/Male3.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cj13x130gdhv3" +path="res://.godot/imported/Male3.png-30f6f69b4fbf36e0cd2cc492c4dbe0f2.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/art/character sprites/Szadi NPCs/Male3.png" +dest_files=["res://.godot/imported/Male3.png-30f6f69b4fbf36e0cd2cc492c4dbe0f2.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/art/character sprites/Szadi NPCs/Male4.png b/assets/art/character sprites/Szadi NPCs/Male4.png new file mode 100644 index 0000000..b5ea2db --- /dev/null +++ b/assets/art/character sprites/Szadi NPCs/Male4.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05c67c4734e25f33a1aa6bd4747c92ac7268770f74faf083005e0ac01e4f0239 +size 25170 diff --git a/assets/art/character sprites/Szadi NPCs/Male4.png.import b/assets/art/character sprites/Szadi NPCs/Male4.png.import new file mode 100644 index 0000000..62a4902 --- /dev/null +++ b/assets/art/character sprites/Szadi NPCs/Male4.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://biv828180br3o" +path="res://.godot/imported/Male4.png-4f84124cbebb5fd4c9ec637846a7c80c.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/art/character sprites/Szadi NPCs/Male4.png" +dest_files=["res://.godot/imported/Male4.png-4f84124cbebb5fd4c9ec637846a7c80c.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/binary files/NPC_Characters_v1.0/Female1.png b/assets/binary files/NPC_Characters_v1.0/Female1.png new file mode 100644 index 0000000..768e584 --- /dev/null +++ b/assets/binary files/NPC_Characters_v1.0/Female1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:356774c3c04d1555ddcc8eed08de7387d49f1347887d98734e14cc86ec16c5ab +size 27570 diff --git a/assets/binary files/NPC_Characters_v1.0/Female2.png b/assets/binary files/NPC_Characters_v1.0/Female2.png new file mode 100644 index 0000000..0fa72c2 --- /dev/null +++ b/assets/binary files/NPC_Characters_v1.0/Female2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9dbbfc7fabf9c35c5e4d2a027fe1c437fd4cb84f5d3937284ee5338ad298e7b7 +size 26922 diff --git a/assets/binary files/NPC_Characters_v1.0/Male1.png b/assets/binary files/NPC_Characters_v1.0/Male1.png new file mode 100644 index 0000000..ed1cde1 --- /dev/null +++ b/assets/binary files/NPC_Characters_v1.0/Male1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ddf562e4ebfcb0ab428f60bd35cdbd7afdbca580b2a0985283c47e6e65df5e0e +size 27348 diff --git a/assets/binary files/NPC_Characters_v1.0/Male2.png b/assets/binary files/NPC_Characters_v1.0/Male2.png new file mode 100644 index 0000000..d48c9b6 --- /dev/null +++ b/assets/binary files/NPC_Characters_v1.0/Male2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6333f13728032d0b3e58739907215085cebd099e8d07a268d38c9a03eda0a0e0 +size 27959 diff --git a/assets/binary files/NPC_Characters_v1.0/Male3.png b/assets/binary files/NPC_Characters_v1.0/Male3.png new file mode 100644 index 0000000..5a88d3e --- /dev/null +++ b/assets/binary files/NPC_Characters_v1.0/Male3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:657d48cf828ece5769fa65b1d8a0309e0006abbc9bccd3496dec72cb0c9b8ab1 +size 28463 diff --git a/assets/binary files/NPC_Characters_v1.0/Male4.png b/assets/binary files/NPC_Characters_v1.0/Male4.png new file mode 100644 index 0000000..b5ea2db --- /dev/null +++ b/assets/binary files/NPC_Characters_v1.0/Male4.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05c67c4734e25f33a1aa6bd4747c92ac7268770f74faf083005e0ac01e4f0239 +size 25170 diff --git a/assets/binary files/NPC_Characters_v1.0/_INFO.txt b/assets/binary files/NPC_Characters_v1.0/_INFO.txt new file mode 100644 index 0000000..008956e --- /dev/null +++ b/assets/binary files/NPC_Characters_v1.0/_INFO.txt @@ -0,0 +1,3 @@ +The first four frames are idle, the next four walk. + +Each block is in the size 32x48. \ No newline at end of file diff --git a/assets/binary files/NPC_Characters_v1.0/_PSD/Female1.psd b/assets/binary files/NPC_Characters_v1.0/_PSD/Female1.psd new file mode 100644 index 0000000..76fa7c3 Binary files /dev/null and b/assets/binary files/NPC_Characters_v1.0/_PSD/Female1.psd differ diff --git a/assets/binary files/NPC_Characters_v1.0/_PSD/Female2.psd b/assets/binary files/NPC_Characters_v1.0/_PSD/Female2.psd new file mode 100644 index 0000000..8449257 Binary files /dev/null and b/assets/binary files/NPC_Characters_v1.0/_PSD/Female2.psd differ diff --git a/assets/binary files/NPC_Characters_v1.0/_PSD/Male1.psd b/assets/binary files/NPC_Characters_v1.0/_PSD/Male1.psd new file mode 100644 index 0000000..36dbd8f Binary files /dev/null and b/assets/binary files/NPC_Characters_v1.0/_PSD/Male1.psd differ diff --git a/assets/binary files/NPC_Characters_v1.0/_PSD/Male2.psd b/assets/binary files/NPC_Characters_v1.0/_PSD/Male2.psd new file mode 100644 index 0000000..b103519 Binary files /dev/null and b/assets/binary files/NPC_Characters_v1.0/_PSD/Male2.psd differ diff --git a/assets/binary files/NPC_Characters_v1.0/_PSD/Male3.psd b/assets/binary files/NPC_Characters_v1.0/_PSD/Male3.psd new file mode 100644 index 0000000..246619b Binary files /dev/null and b/assets/binary files/NPC_Characters_v1.0/_PSD/Male3.psd differ diff --git a/assets/binary files/NPC_Characters_v1.0/_PSD/Male4.psd b/assets/binary files/NPC_Characters_v1.0/_PSD/Male4.psd new file mode 100644 index 0000000..b1aed69 Binary files /dev/null and b/assets/binary files/NPC_Characters_v1.0/_PSD/Male4.psd differ diff --git a/assets/binary files/NPC_Characters_v1.0/_license.txt b/assets/binary files/NPC_Characters_v1.0/_license.txt new file mode 100644 index 0000000..6150840 --- /dev/null +++ b/assets/binary files/NPC_Characters_v1.0/_license.txt @@ -0,0 +1,14 @@ +>>> License for Everyone. + +You can use the Licensed Asset to create Public domain and free to use, personal or commercial. + +You can use the Licensed Asset: +(a) edit and modify, cut and change the asset used for commercial purposes; +(b) sell works created with the assets; +(c) publish on websites related to graphics, games and similar. + +>>> A Licence does not allow the Purchaser to: +(d) Use the Licensed Asset or Derivative Works in a logo, trademark or service mark +(e) Resell it, original or modified; Credit is not required but appreciated. + +Credit is not required but appreciated. \ No newline at end of file diff --git a/systems/combat/combat_action.gd b/systems/combat/combat_action.gd new file mode 100644 index 0000000..429e7e0 --- /dev/null +++ b/systems/combat/combat_action.gd @@ -0,0 +1,3 @@ + +class_name CombatAction +extends Resource \ No newline at end of file diff --git a/systems/combat/combat_team.gd b/systems/combat/combat_team.gd index 3528a39..ab7cfbe 100644 --- a/systems/combat/combat_team.gd +++ b/systems/combat/combat_team.gd @@ -2,6 +2,8 @@ class_name CombatTeam extends Node ## Manages a team of combatants +## +## var team: Array[Combatant] = [] diff --git a/systems/combat/combatant.gd b/systems/combat/combatant.gd index 3084443..5ca489b 100644 --- a/systems/combat/combatant.gd +++ b/systems/combat/combatant.gd @@ -2,7 +2,15 @@ class_name Combatant extends Node +## This class/component represents anything that can particpate in combat +## +## This class is responsible for things like combat animations, +## tracking combat stats, executing combat actions, etc. +## Anything that can take a turn in combat needs to use this component: +## Player characters, enemys, allies, neutral units, etc. + @export var combat_stats: CombatStats +@export var actions: Array[CombatAction] = [] # current state var hp: int = 0 # Health Points diff --git a/testing/sandbox.gd b/testing/sandbox.gd index 4dac7ed..b92af52 100644 --- a/testing/sandbox.gd +++ b/testing/sandbox.gd @@ -2,12 +2,17 @@ extends Node2D +@export var player_team: Array[PlayerCharacter] = [] +@export var enemy_team: Array[EnemyCharacter] = [] + @onready var game_state: GameState = $CombatState + + # Called when the node enters the scene tree for the first time. func _ready(): - pass # Replace with function body. + game_state.state_enter({}) # Called every frame. 'delta' is the elapsed time since the previous frame.