feat: integrated some assets and made a hitbox and damage reaction system
This commit is contained in:
53
main.tscn
53
main.tscn
@ -5,25 +5,25 @@
|
||||
[ext_resource type="TileSet" uid="uid://bh31agl8bhwux" path="res://world_assets/oak_woods/ground.tres" id="2_0xm2m"]
|
||||
[ext_resource type="TileSet" uid="uid://dd5m4np46tpwj" path="res://world_assets/stringstar fields/starfields.tres" id="2_1bvp3"]
|
||||
[ext_resource type="PackedScene" uid="uid://bmng6wjt0paof" path="res://dialogues/dialogue_manager.tscn" id="2_efxa6"]
|
||||
[ext_resource type="Texture2D" uid="uid://dbruj2bdtjfmd" path="res://player/assets/char_blue.png" id="3_dg77c"]
|
||||
[ext_resource type="Texture2D" uid="uid://3g48672b8541" path="res://ennemy/IdleMechant.png" id="3_dg77c"]
|
||||
[ext_resource type="TileSet" uid="uid://y8veqkfywccf" path="res://world_assets/Cave/cave.tres" id="3_lquwl"]
|
||||
[ext_resource type="PackedScene" uid="uid://cwxv8xl0hi31i" path="res://camera/camera.tscn" id="4_lquwl"]
|
||||
[ext_resource type="Texture2D" uid="uid://dsxvqsh3umw01" path="res://player/assets/RunCycle.png" id="4_ycdy4"]
|
||||
[ext_resource type="TileSet" uid="uid://tyrwsjeq31vu" path="res://world_assets/bubbles.tres" id="6_7mycd"]
|
||||
[ext_resource type="Texture2D" uid="uid://bvhu1nv5ftm5m" path="res://player/assets/red hood.png" id="8_5vw27"]
|
||||
[ext_resource type="PackedScene" uid="uid://c5ruphrd8ebuu" path="res://ennemy/armored_ennemy.tscn" id="9_kek77"]
|
||||
[ext_resource type="Texture2D" uid="uid://deu2palri4pji" path="res://ui/kenney_1-bit-input-prompts-pixel-16/tilemap_white.png" id="10_efxa6"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ycdy4"]
|
||||
atlas = ExtResource("3_dg77c")
|
||||
region = Rect2(22, 24, 11, 12)
|
||||
region = Rect2(12, 5, 14, 13)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_w48qg"]
|
||||
atlas = ExtResource("8_5vw27")
|
||||
region = Rect2(50, 66, 13, 13)
|
||||
atlas = ExtResource("4_ycdy4")
|
||||
region = Rect2(14, 9, 6, 6)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kek77"]
|
||||
atlas = ExtResource("8_5vw27")
|
||||
region = Rect2(50, 66, 13, 13)
|
||||
atlas = ExtResource("4_ycdy4")
|
||||
region = Rect2(14, 9, 6, 5)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_dg77c"]
|
||||
atlas = ExtResource("10_efxa6")
|
||||
@ -58,7 +58,7 @@ tracks/1/keys = {
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("ColorRect:color")
|
||||
tracks/2/path = NodePath("OpeningFadeToBlack:color")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
@ -78,10 +78,10 @@ tracks/0/path = NodePath("ArmoredEnnemy:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(11.0333, 13.0333),
|
||||
"times": PackedFloat32Array(11.0333, 17),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector2(-400, 0), Vector2(-271, 0)]
|
||||
"values": [Vector2(-400, 0), Vector2(-100, 0)]
|
||||
}
|
||||
tracks/1/type = "method"
|
||||
tracks/1/imported = false
|
||||
@ -90,7 +90,7 @@ tracks/1/path = NodePath("ArmoredEnnemy")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(11.0333, 13.0333),
|
||||
"times": PackedFloat32Array(11.0333, 17),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"values": [{
|
||||
"args": [],
|
||||
@ -161,11 +161,11 @@ tracks/4/keys = {
|
||||
tracks/5/type = "method"
|
||||
tracks/5/imported = false
|
||||
tracks/5/enabled = true
|
||||
tracks/5/path = NodePath("DialogueManager")
|
||||
tracks/5/path = NodePath("OpeningDialogue")
|
||||
tracks/5/interp = 1
|
||||
tracks/5/loop_wrap = true
|
||||
tracks/5/keys = {
|
||||
"times": PackedFloat32Array(14.0333),
|
||||
"times": PackedFloat32Array(16),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"values": [{
|
||||
"args": [],
|
||||
@ -175,7 +175,7 @@ tracks/5/keys = {
|
||||
tracks/6/type = "value"
|
||||
tracks/6/imported = false
|
||||
tracks/6/enabled = true
|
||||
tracks/6/path = NodePath("ColorRect:color")
|
||||
tracks/6/path = NodePath("OpeningFadeToBlack:color")
|
||||
tracks/6/interp = 1
|
||||
tracks/6/loop_wrap = true
|
||||
tracks/6/keys = {
|
||||
@ -194,20 +194,11 @@ _data = {
|
||||
[node name="Main" type="Node2D"]
|
||||
script = ExtResource("1_272bh")
|
||||
|
||||
[node name="DialogueManager" parent="." instance=ExtResource("2_efxa6")]
|
||||
[node name="OpeningDialogue" parent="." instance=ExtResource("2_efxa6")]
|
||||
dialogue = "Who are you ?
|
||||
---
|
||||
...
|
||||
---
|
||||
What are you doing here ? What do you want from me ?
|
||||
---
|
||||
...
|
||||
---
|
||||
Hello ?
|
||||
---
|
||||
Kill... Oppression... Destroy...
|
||||
---
|
||||
WHAT ??? HELP !!!"
|
||||
"
|
||||
left_picture = SubResource("AtlasTexture_ycdy4")
|
||||
right_picture = SubResource("AtlasTexture_w48qg")
|
||||
|
||||
@ -253,6 +244,9 @@ maximum_location = 850
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("1_ig7tw")]
|
||||
|
||||
[node name="ArmoredEnnemy" parent="." instance=ExtResource("9_kek77")]
|
||||
position = Vector2(-348, 0)
|
||||
|
||||
[node name="BubblesBack" type="TileMapLayer" parent="."]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
@ -306,6 +300,7 @@ layout_mode = 2
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
texture = SubResource("AtlasTexture_kek77")
|
||||
flip_h = true
|
||||
|
||||
[node name="NextDialogue" type="MarginContainer" parent="."]
|
||||
unique_name_in_owner = true
|
||||
@ -331,10 +326,8 @@ size_flags_horizontal = 3
|
||||
texture = SubResource("AtlasTexture_dg77c")
|
||||
stretch_mode = 3
|
||||
|
||||
[node name="ArmoredEnnemy" parent="." instance=ExtResource("9_kek77")]
|
||||
position = Vector2(-348, 0)
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
[node name="OpeningFadeToBlack" type="ColorRect" parent="."]
|
||||
visible = false
|
||||
offset_left = -322.0
|
||||
offset_top = -224.0
|
||||
offset_right = 318.0
|
||||
@ -346,4 +339,4 @@ libraries = {
|
||||
&"": SubResource("AnimationLibrary_efxa6")
|
||||
}
|
||||
|
||||
[connection signal="dialogue_ended" from="DialogueManager" to="Player" method="_on_dialogue_manager_dialogue_ended"]
|
||||
[connection signal="dialogue_ended" from="OpeningDialogue" to="Player" method="_on_dialogue_manager_dialogue_ended"]
|
||||
|
Reference in New Issue
Block a user