4.6, new attack, enemy spawning, shaders, bunch of stuff
This commit is contained in:
parent
e08e3ebb13
commit
19517a3176
84 changed files with 13348 additions and 91399 deletions
|
|
@ -1,54 +1,55 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://dvlr5hamruqrd"]
|
||||
[gd_scene format=3 uid="uid://dvlr5hamruqrd"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b1t0k6dfubsmk" path="res://scripts/enemy.gd" id="1_fr7lv"]
|
||||
[ext_resource type="Resource" uid="uid://cf7x0uuj6wnil" path="res://resources/scythe.tres" id="2_j1ss0"]
|
||||
[ext_resource type="Script" uid="uid://synocbtvgrf4" path="res://scripts/shadow.gd" id="2_vv3x1"]
|
||||
[ext_resource type="PackedScene" uid="uid://c8l24d01bm2sg" path="res://scenes/enemy_explosion.tscn" id="3_esqeu"]
|
||||
[ext_resource type="Texture2D" uid="uid://cyftyrf36mm0r" path="res://assets/enemies/cosa_1.png" id="5_xuskm"]
|
||||
[ext_resource type="Texture2D" uid="uid://cyigyhudonahf" path="res://assets/enemies/cosa_2.png" id="6_3ysdf"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_sw0xa"]
|
||||
radius = 21.151093
|
||||
|
||||
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_sw0xa"]
|
||||
load_path = "res://.godot/imported/cosa_1.png-c80e15db2359bc0dd5374be118756ef5.ctex"
|
||||
|
||||
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_j1ss0"]
|
||||
load_path = "res://.godot/imported/cosa_2.png-5f6c1032dbcaad97f713d20bd287fe34.ctex"
|
||||
radius = 15.0
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_lxe82"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("CompressedTexture2D_sw0xa")
|
||||
"texture": ExtResource("5_xuskm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("CompressedTexture2D_j1ss0")
|
||||
"texture": ExtResource("6_3ysdf")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="EnemyBase" type="CharacterBody2D" groups=["enemy"]]
|
||||
[node name="EnemyBase" type="CharacterBody2D" unique_id=105822266 node_paths=PackedStringArray("main_visual") groups=["enemy"]]
|
||||
collision_layer = 2
|
||||
collision_mask = 3
|
||||
motion_mode = 1
|
||||
script = ExtResource("1_fr7lv")
|
||||
attack_charge_time = 0.1
|
||||
flee_range = 0.0
|
||||
approach_range = 60.0
|
||||
current_mask_data = ExtResource("2_j1ss0")
|
||||
move_speed = 80.0
|
||||
main_visual = NodePath("Anim")
|
||||
death_scene = ExtResource("3_esqeu")
|
||||
|
||||
[node name="Shadow" type="Node2D" parent="."]
|
||||
[node name="Shadow" type="Node2D" parent="." unique_id=1662034478]
|
||||
position = Vector2(0, 15)
|
||||
script = ExtResource("2_vv3x1")
|
||||
metadata/_custom_type_script = "uid://synocbtvgrf4"
|
||||
|
||||
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
|
||||
avoidance_enabled = true
|
||||
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="." unique_id=1850652218]
|
||||
radius = 40.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1367309587]
|
||||
rotation = 2.4698958e-05
|
||||
shape = SubResource("CircleShape2D_sw0xa")
|
||||
|
||||
[node name="Anim" type="AnimatedSprite2D" parent="."]
|
||||
[node name="Anim" type="AnimatedSprite2D" parent="." unique_id=1536371166]
|
||||
sprite_frames = SubResource("SpriteFrames_lxe82")
|
||||
autoplay = "default"
|
||||
frame_progress = 0.52776843
|
||||
frame_progress = 0.71773696
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://c8tpykprvk02l"]
|
||||
[gd_scene format=3 uid="uid://c8tpykprvk02l"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://kyh2wu0jwdwd" path="res://scripts/enemy_spawn.gd" id="1_8pwvm"]
|
||||
[ext_resource type="PackedScene" uid="uid://dvlr5hamruqrd" path="res://scenes/enemy_base.tscn" id="2_vav55"]
|
||||
[ext_resource type="PackedScene" uid="uid://ya6jfltqnl1b" path="res://scenes/ranged_enemy.tscn" id="3_4ll2w"]
|
||||
[ext_resource type="PackedScene" uid="uid://ya6jfltqnl1b" path="res://scenes/star_enemy.tscn" id="3_4ll2w"]
|
||||
[ext_resource type="PackedScene" uid="uid://dbgsb7uyh2e5k" path="res://scenes/spit_dragon.tscn" id="4_muh2a"]
|
||||
|
||||
[node name="EnemySpawn" type="Node2D"]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=11 format=3 uid="uid://0n57icfpulmc"]
|
||||
[gd_scene format=3 uid="uid://0n57icfpulmc"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://beefpuq6vu475" path="res://assets/vfx/heart.png" id="1_hugpe"]
|
||||
[ext_resource type="Script" uid="uid://dyyqm52cwjimy" path="res://scripts/hearts.gd" id="2_q6mno"]
|
||||
|
|
@ -40,7 +40,7 @@ hue_variation_min = -0.07
|
|||
hue_variation_max = 0.01
|
||||
hue_variation_curve = SubResource("CurveTexture_hugpe")
|
||||
|
||||
[node name="Hearts" type="CPUParticles2D"]
|
||||
[node name="Hearts" type="CPUParticles2D" unique_id=664421978]
|
||||
z_index = 1
|
||||
amount = 32
|
||||
texture = SubResource("CanvasTexture_7sc4i")
|
||||
|
|
@ -57,10 +57,10 @@ hue_variation_curve = SubResource("Curve_215e1")
|
|||
script = ExtResource("2_q6mno")
|
||||
speed = 350.0
|
||||
|
||||
[node name="Hitbox" parent="." instance=ExtResource("3_hugpe")]
|
||||
[node name="Hitbox" parent="." unique_id=735192092 instance=ExtResource("3_hugpe")]
|
||||
scale = Vector2(0.63729316, 0.63729316)
|
||||
|
||||
[node name="Explosion" type="GPUParticles2D" parent="."]
|
||||
[node name="Explosion" type="GPUParticles2D" parent="." unique_id=832599826]
|
||||
z_index = 1
|
||||
emitting = false
|
||||
amount = 128
|
||||
|
|
@ -72,8 +72,8 @@ fixed_fps = 0
|
|||
draw_order = 0
|
||||
process_material = SubResource("ParticleProcessMaterial_q6mno")
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
[node name="Timer" type="Timer" parent="." unique_id=1651057289]
|
||||
wait_time = 10.0
|
||||
|
||||
[connection signal="onhit" from="Hitbox" to="." method="_on_hitbox_onhit"]
|
||||
[connection signal="collided" from="Hitbox" to="." method="_on_hitbox_collided"]
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://dv8l318cesr8e"]
|
||||
[gd_scene format=3 uid="uid://dv8l318cesr8e"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b5wg73yvuksot" path="res://scripts/camera.gd" id="1_7gwtr"]
|
||||
[ext_resource type="Shader" uid="uid://bmhvm6dgin2au" path="res://shaders/pixelate_screen.gdshader" id="2_ujfja"]
|
||||
|
|
@ -8,10 +8,13 @@ shader = ExtResource("2_ujfja")
|
|||
shader_parameter/cam_pos = Vector2(0, 0)
|
||||
shader_parameter/scaling = Vector2(1, 1)
|
||||
|
||||
[node name="MainCam" type="Camera2D"]
|
||||
[node name="MainCam" type="Camera2D" unique_id=1501429496]
|
||||
script = ExtResource("1_7gwtr")
|
||||
|
||||
[node name="Pixelator" type="ColorRect" parent="."]
|
||||
[node name="BackBufferCopy" type="BackBufferCopy" parent="." unique_id=586260857]
|
||||
copy_mode = 2
|
||||
|
||||
[node name="Pixelator" type="ColorRect" parent="." unique_id=776565327]
|
||||
material = SubResource("ShaderMaterial_7gwtr")
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
[gd_scene load_steps=16 format=3 uid="uid://ncgwx0yjn2gt"]
|
||||
[gd_scene format=3 uid="uid://ncgwx0yjn2gt"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://sbseykg05177" path="res://scripts/player.gd" id="1_ur7pv"]
|
||||
[ext_resource type="Resource" uid="uid://cf7x0uuj6wnil" path="res://resources/scythe.tres" id="2_ur7pv"]
|
||||
[ext_resource type="Resource" uid="uid://cf7x0uuj6wnil" path="res://resources/scythe.tres" id="2_3v2ag"]
|
||||
[ext_resource type="PackedScene" uid="uid://bp45yth1y3ia5" path="res://scenes/player_explosion.tscn" id="3_3v2ag"]
|
||||
[ext_resource type="Script" uid="uid://synocbtvgrf4" path="res://scripts/shadow.gd" id="4_3v2ag"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3abeekjumqyb" path="res://assets/player/maske1.png" id="5_jej6c"]
|
||||
[ext_resource type="Texture2D" uid="uid://dgd8u7jrpy1v5" path="res://assets/player/maske2.png" id="6_f1ej7"]
|
||||
[ext_resource type="Texture2D" uid="uid://ftfnn5v1swc1" path="res://ui/arrow.png" id="7_fjrip"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3h6wl5cnf8ba" path="res://assets/player/maske3.png" id="7_oprun"]
|
||||
[ext_resource type="Script" uid="uid://c0e4uacrlcrk8" path="res://scripts/AnimSprite.gd" id="8_a8ls1"]
|
||||
[ext_resource type="Script" uid="uid://c0e4uacrlcrk8" path="res://scripts/float.gd" id="8_a8ls1"]
|
||||
[ext_resource type="Script" uid="uid://dn6ro2vef1qps" path="res://scripts/arrow.gd" id="8_smehm"]
|
||||
[ext_resource type="PackedScene" uid="uid://bq8ig7s8gxia4" path="res://ui/ui_layer.tscn" id="10_y4r1p"]
|
||||
[ext_resource type="PackedScene" uid="uid://dv8l318cesr8e" path="res://scenes/main_cam.tscn" id="11_d2wvv"]
|
||||
|
|
@ -39,26 +39,27 @@ animations = [{
|
|||
}]
|
||||
|
||||
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_f1jbl"]
|
||||
load_path = "res://.godot/imported/maske_melee.png-683f1c3cec32a2b5aa545d35da87a46b.ctex"
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_215e1"]
|
||||
radius = 10.049875
|
||||
|
||||
[node name="Player" type="CharacterBody2D" groups=["player"]]
|
||||
[node name="Player" type="CharacterBody2D" unique_id=1743724931 node_paths=PackedStringArray("main_visual") groups=["player"]]
|
||||
y_sort_enabled = true
|
||||
collision_layer = 2
|
||||
motion_mode = 1
|
||||
script = ExtResource("1_ur7pv")
|
||||
current_mask_data = ExtResource("2_ur7pv")
|
||||
current_mask_data = ExtResource("2_3v2ag")
|
||||
move_speed = 70.0
|
||||
main_visual = NodePath("PlayerSprite")
|
||||
death_scene = ExtResource("3_3v2ag")
|
||||
|
||||
[node name="UILayer" parent="." instance=ExtResource("10_y4r1p")]
|
||||
[node name="UILayer" parent="." unique_id=1349593982 instance=ExtResource("10_y4r1p")]
|
||||
|
||||
[node name="Shadow" type="Node2D" parent="."]
|
||||
[node name="Shadow" type="Node2D" parent="." unique_id=1220110125]
|
||||
position = Vector2(0, 19)
|
||||
script = ExtResource("4_3v2ag")
|
||||
|
||||
[node name="PlayerSprite" type="AnimatedSprite2D" parent="."]
|
||||
[node name="PlayerSprite" type="AnimatedSprite2D" parent="." unique_id=1363626832]
|
||||
position = Vector2(0, -30)
|
||||
sprite_frames = SubResource("SpriteFrames_e36ub")
|
||||
animation = &"idle"
|
||||
|
|
@ -67,21 +68,21 @@ script = ExtResource("8_a8ls1")
|
|||
float_str = 3.0
|
||||
float_time = 3.0
|
||||
|
||||
[node name="MaskSprite" type="Sprite2D" parent="PlayerSprite"]
|
||||
[node name="MaskSprite" type="Sprite2D" parent="PlayerSprite" unique_id=257186629]
|
||||
position = Vector2(0, 1)
|
||||
texture = SubResource("CompressedTexture2D_f1jbl")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=908201873]
|
||||
position = Vector2(0, 12)
|
||||
shape = SubResource("CircleShape2D_215e1")
|
||||
|
||||
[node name="Arrow" type="Sprite2D" parent="."]
|
||||
[node name="Arrow" type="Sprite2D" parent="." unique_id=217782533]
|
||||
scale = Vector2(2.468657, 2.468657)
|
||||
texture = ExtResource("7_fjrip")
|
||||
offset = Vector2(28.12, 0)
|
||||
script = ExtResource("8_smehm")
|
||||
|
||||
[node name="MainCam" parent="." node_paths=PackedStringArray("ui_layer") instance=ExtResource("11_d2wvv")]
|
||||
[node name="MainCam" parent="." unique_id=1367061205 node_paths=PackedStringArray("ui_layer") instance=ExtResource("11_d2wvv")]
|
||||
process_mode = 3
|
||||
z_index = 10
|
||||
target_res = Vector2(640, 360)
|
||||
|
|
|
|||
|
|
@ -1,16 +1,28 @@
|
|||
[gd_scene load_steps=10 format=3 uid="uid://bmwgnwqj3scm5"]
|
||||
[gd_scene format=3 uid="uid://bmwgnwqj3scm5"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c1anp8np0aw0" path="res://scripts/scythe_attack.gd" id="1_p6kik"]
|
||||
[ext_resource type="Shader" uid="uid://bwcmfh6twfdpi" path="res://shaders/fade_in.gdshader" id="2_aw0er"]
|
||||
[ext_resource type="Texture2D" uid="uid://cskpxmrlwc0gg" path="res://assets/masks/lavender_scythe.png" id="3_5mjrn"]
|
||||
[ext_resource type="PackedScene" uid="uid://crptu0w0l57dd" path="res://scenes/hitbox.tscn" id="4_ek4qm"]
|
||||
[ext_resource type="Script" uid="uid://bxqbkdomwqbtc" path="res://scripts/trail.gd" id="5_aw0er"]
|
||||
|
||||
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_2r5ap"]
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_aw0er"]
|
||||
noise_type = 5
|
||||
frequency = 0.0087
|
||||
fractal_type = 0
|
||||
|
||||
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_5mjrn"]
|
||||
noise = SubResource("FastNoiseLite_aw0er")
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_5b14r"]
|
||||
shader = ExtResource("2_aw0er")
|
||||
shader_parameter/mask = SubResource("CompressedTexture2D_2r5ap")
|
||||
shader_parameter/progress = 1.0
|
||||
shader_parameter/noise_texture = SubResource("NoiseTexture2D_5mjrn")
|
||||
shader_parameter/progress = 0.0
|
||||
shader_parameter/edge_softness = 0.0
|
||||
|
||||
[sub_resource type="Curve" id="Curve_aw0er"]
|
||||
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="Animation" id="Animation_lx8lr"]
|
||||
length = 0.001
|
||||
|
|
@ -38,10 +50,22 @@ tracks/1/keys = {
|
|||
"update": 0,
|
||||
"values": [0.0]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath(".:material:shader_parameter/progress")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [0.0]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_0m7gt"]
|
||||
resource_name = "swing"
|
||||
length = 0.5
|
||||
length = 0.53333336
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
|
|
@ -66,6 +90,18 @@ tracks/1/keys = {
|
|||
"update": 0,
|
||||
"values": [1.5707963267948966, 1.5707963267948966, -7.853981633974483]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath(".:material:shader_parameter/progress")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 0.2),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [0.0, 1.0]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_8jfvf"]
|
||||
_data = {
|
||||
|
|
@ -73,27 +109,36 @@ _data = {
|
|||
&"swing": SubResource("Animation_0m7gt")
|
||||
}
|
||||
|
||||
[node name="ScitheAttack" type="Node2D"]
|
||||
[node name="ScitheAttack" type="Node2D" unique_id=622535335]
|
||||
script = ExtResource("1_p6kik")
|
||||
|
||||
[node name="Anchor" type="Node2D" parent="."]
|
||||
[node name="Anchor" type="Node2D" parent="." unique_id=330712092]
|
||||
|
||||
[node name="Scithe" type="Sprite2D" parent="Anchor"]
|
||||
[node name="Scithe" type="Sprite2D" parent="Anchor" unique_id=1611161092]
|
||||
material = SubResource("ShaderMaterial_5b14r")
|
||||
scale = Vector2(0.904629, 0.904629)
|
||||
texture = ExtResource("3_5mjrn")
|
||||
flip_h = true
|
||||
|
||||
[node name="Hitbox" parent="Anchor/Scithe" instance=ExtResource("4_ek4qm")]
|
||||
[node name="Hitbox" parent="Anchor/Scithe" unique_id=2078242519 instance=ExtResource("4_ek4qm")]
|
||||
position = Vector2(-17.68681, -3.3162766)
|
||||
rotation = 0.79253083
|
||||
scale = Vector2(0.77211297, 3.2192266)
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
[node name="Trail" type="Line2D" parent="Anchor/Scithe" unique_id=462665408]
|
||||
show_behind_parent = true
|
||||
position = Vector2(28.741066, -14.370532)
|
||||
rotation = 1.5707961
|
||||
scale = Vector2(1.1054256, 1.1054256)
|
||||
points = PackedVector2Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
|
||||
width = 16.285
|
||||
width_curve = SubResource("Curve_aw0er")
|
||||
script = ExtResource("5_aw0er")
|
||||
metadata/_custom_type_script = "uid://bxqbkdomwqbtc"
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=824911322]
|
||||
root_node = NodePath("../Anchor/Scithe")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_8jfvf")
|
||||
}
|
||||
autoplay = "swing"
|
||||
libraries/ = SubResource("AnimationLibrary_8jfvf")
|
||||
autoplay = &"swing"
|
||||
|
||||
[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_animation_player_animation_finished"]
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
45267
scenes/stage2.tscn
45267
scenes/stage2.tscn
File diff suppressed because it is too large
Load diff
45268
scenes/stage3.tscn
45268
scenes/stage3.tscn
File diff suppressed because it is too large
Load diff
37
scenes/star.tscn
Normal file
37
scenes/star.tscn
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
[gd_scene format=3 uid="uid://dkik6vdjvfl3h"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cemrdyqfubw7h" path="res://scripts/star.gd" id="1_mcqwg"]
|
||||
[ext_resource type="AudioStream" uid="uid://dbmjok4h3yqgc" path="res://assets/sfx/star.wav" id="2_ef0hr"]
|
||||
[ext_resource type="Texture2D" uid="uid://dsak25b3jrn2r" path="res://assets/masks/star.png" id="2_j6vao"]
|
||||
[ext_resource type="Script" uid="uid://ejd25ul4j5pp" path="res://scripts/hitbox.gd" id="4_8d8bx"]
|
||||
[ext_resource type="Script" uid="uid://bxqbkdomwqbtc" path="res://scripts/trail.gd" id="5_8lrp4"]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_sxbdi"]
|
||||
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_8lrp4"]
|
||||
radius = 7.0
|
||||
|
||||
[node name="Star" type="Node2D" unique_id=1800196398]
|
||||
script = ExtResource("1_mcqwg")
|
||||
spawn_sfx = ExtResource("2_ef0hr")
|
||||
|
||||
[node name="Trail" type="Line2D" parent="." unique_id=1712481129]
|
||||
points = PackedVector2Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
|
||||
width = 2.5
|
||||
width_curve = SubResource("Curve_sxbdi")
|
||||
script = ExtResource("5_8lrp4")
|
||||
metadata/_custom_type_script = "uid://bxqbkdomwqbtc"
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=257593575]
|
||||
texture = ExtResource("2_j6vao")
|
||||
|
||||
[node name="Hitbox" type="Area2D" parent="." unique_id=1381928788]
|
||||
script = ExtResource("4_8d8bx")
|
||||
metadata/_custom_type_script = "uid://ejd25ul4j5pp"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox" unique_id=263019627]
|
||||
shape = SubResource("CircleShape2D_8lrp4")
|
||||
|
||||
[connection signal="collided" from="Hitbox" to="." method="_on_hitbox_collided"]
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
[gd_scene load_steps=10 format=3 uid="uid://ya6jfltqnl1b"]
|
||||
[gd_scene format=3 uid="uid://ya6jfltqnl1b"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://buamdls133c2e" path="res://scripts/ranged_enemy.gd" id="1_rs3ab"]
|
||||
[ext_resource type="Resource" uid="uid://jar2mye8do0c" path="res://resources/hearts.tres" id="2_nqoy7"]
|
||||
[ext_resource type="Script" uid="uid://buamdls133c2e" path="res://scripts/star_enemy.gd" id="1_rs3ab"]
|
||||
[ext_resource type="Resource" uid="uid://0mtm64s4jthn" path="res://resources/stars.tres" id="2_2mruc"]
|
||||
[ext_resource type="Script" uid="uid://synocbtvgrf4" path="res://scripts/shadow.gd" id="2_v0fr6"]
|
||||
[ext_resource type="PackedScene" uid="uid://c8l24d01bm2sg" path="res://scenes/enemy_explosion.tscn" id="3_g3aa2"]
|
||||
[ext_resource type="Texture2D" uid="uid://c0e666ifvdck6" path="res://assets/enemies/cerdipulpo_1.png" id="3_v0fr6"]
|
||||
|
|
@ -9,6 +9,7 @@
|
|||
[ext_resource type="Texture2D" uid="uid://cy034lyy4w74p" path="res://assets/enemies/cerdipulpo_3.png" id="5_2ls4a"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_rs3ab"]
|
||||
radius = 16.0
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_w150n"]
|
||||
animations = [{
|
||||
|
|
@ -27,25 +28,30 @@ animations = [{
|
|||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="RangedEnemy" type="CharacterBody2D" groups=["enemy"]]
|
||||
[node name="RangedEnemy" type="CharacterBody2D" unique_id=93153910 node_paths=PackedStringArray("main_visual") groups=["enemy"]]
|
||||
collision_layer = 2
|
||||
collision_mask = 3
|
||||
script = ExtResource("1_rs3ab")
|
||||
current_mask_data = ExtResource("2_nqoy7")
|
||||
attack_charge_time = 0.5
|
||||
flee_range = 130.0
|
||||
approach_range = 220.0
|
||||
current_mask_data = ExtResource("2_2mruc")
|
||||
move_speed = 40.0
|
||||
main_visual = NodePath("Anim")
|
||||
death_scene = ExtResource("3_g3aa2")
|
||||
|
||||
[node name="Shadow" type="Node2D" parent="."]
|
||||
[node name="Shadow" type="Node2D" parent="." unique_id=1651361569]
|
||||
position = Vector2(0, 16)
|
||||
script = ExtResource("2_v0fr6")
|
||||
metadata/_custom_type_script = "uid://synocbtvgrf4"
|
||||
|
||||
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
|
||||
avoidance_enabled = true
|
||||
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="." unique_id=1882108293]
|
||||
radius = 40.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1216246343]
|
||||
shape = SubResource("CircleShape2D_rs3ab")
|
||||
|
||||
[node name="Anim" type="AnimatedSprite2D" parent="."]
|
||||
[node name="Anim" type="AnimatedSprite2D" parent="." unique_id=1041580697]
|
||||
modulate = Color(0.94509804, 0.94509804, 0.94509804, 1)
|
||||
sprite_frames = SubResource("SpriteFrames_w150n")
|
||||
autoplay = "default"
|
||||
26
scenes/stars.tscn
Normal file
26
scenes/stars.tscn
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
[gd_scene format=3 uid="uid://jc1w2i3wmmc8"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ct4pupgvmtpgg" path="res://scripts/stars.gd" id="1_ucpii"]
|
||||
[ext_resource type="PackedScene" uid="uid://dkik6vdjvfl3h" path="res://scenes/star.tscn" id="2_rs5ub"]
|
||||
|
||||
[node name="Stars" type="Node2D" unique_id=2004740658]
|
||||
script = ExtResource("1_ucpii")
|
||||
star_scene = ExtResource("2_rs5ub")
|
||||
|
||||
[node name="Marker2D" type="Marker2D" parent="." unique_id=1228012261]
|
||||
position = Vector2(-29, -28)
|
||||
|
||||
[node name="Marker2D2" type="Marker2D" parent="." unique_id=1218802296]
|
||||
position = Vector2(0, -44)
|
||||
|
||||
[node name="Marker2D3" type="Marker2D" parent="." unique_id=623647614]
|
||||
position = Vector2(28, -28)
|
||||
|
||||
[node name="Marker2D4" type="Marker2D" parent="." unique_id=658325280]
|
||||
position = Vector2(-29, 6)
|
||||
|
||||
[node name="Marker2D5" type="Marker2D" parent="." unique_id=113536853]
|
||||
position = Vector2(0, 24)
|
||||
|
||||
[node name="Marker2D6" type="Marker2D" parent="." unique_id=244712203]
|
||||
position = Vector2(28, 6)
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
[gd_scene load_steps=14 format=3 uid="uid://crecxacda45j3"]
|
||||
[gd_scene format=3 uid="uid://crecxacda45j3"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://nf16c5x6khy6" path="res://scripts/start_menu.gd" id="1_ia0g5"]
|
||||
[ext_resource type="PackedScene" uid="uid://bvp37ljy8eaba" path="res://ui/texture_container.tscn" id="1_jwbto"]
|
||||
[ext_resource type="Texture2D" uid="uid://ddvyrpgjh4o3c" path="res://ui/title.png" id="3_ppfnh"]
|
||||
[ext_resource type="Theme" uid="uid://d3iyu7ukwsn1p" path="res://ui/default_theme.tres" id="3_v2mkm"]
|
||||
[ext_resource type="Script" uid="uid://c62xd44e27oki" path="res://scripts/settings_menu.gd" id="4_ctwoq"]
|
||||
[ext_resource type="PackedScene" uid="uid://dv8l318cesr8e" path="res://scenes/main_cam.tscn" id="5_ctwoq"]
|
||||
[ext_resource type="Script" uid="uid://llka3aa044jo" path="res://scripts/click.gd" id="6_acoh7"]
|
||||
[ext_resource type="Texture2D" uid="uid://di3mn2tr6dnac" path="res://ui/button.png" id="6_pgi0o"]
|
||||
|
|
@ -13,21 +11,22 @@
|
|||
[ext_resource type="Texture2D" uid="uid://d0ydt84235pua" path="res://ui/button-4.png" id="9_gfl6h"]
|
||||
[ext_resource type="Texture2D" uid="uid://c7mdtwpckl7nr" path="res://ui/button-5.png" id="10_kefd2"]
|
||||
[ext_resource type="Texture2D" uid="uid://bt6r7jlshl680" path="res://ui/button-6.png" id="11_acoh7"]
|
||||
[ext_resource type="PackedScene" uid="uid://c6f7s7bsitw13" path="res://ui/settings_menu.tscn" id="11_vnuwp"]
|
||||
|
||||
[node name="StartMenu" type="Node2D" node_paths=PackedStringArray("settings")]
|
||||
[node name="StartMenu" type="Node2D" unique_id=777527274 node_paths=PackedStringArray("settings")]
|
||||
script = ExtResource("1_ia0g5")
|
||||
settings = NodePath("CanvasLayer/Control/SettingsMenu")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1547201282]
|
||||
process_mode = 3
|
||||
|
||||
[node name="Control" type="TextureRect" parent="CanvasLayer"]
|
||||
[node name="Control" type="TextureRect" parent="CanvasLayer" unique_id=1951239017]
|
||||
offset_right = 480.0
|
||||
offset_bottom = 270.0
|
||||
theme = ExtResource("3_v2mkm")
|
||||
texture = ExtResource("3_ppfnh")
|
||||
|
||||
[node name="StartButton" type="TextureButton" parent="CanvasLayer/Control"]
|
||||
[node name="StartButton" type="TextureButton" parent="CanvasLayer/Control" unique_id=304846452]
|
||||
layout_mode = 0
|
||||
offset_left = 16.0
|
||||
offset_top = 72.0
|
||||
|
|
@ -38,7 +37,7 @@ texture_pressed = ExtResource("6_pgi0o")
|
|||
texture_hover = ExtResource("7_73a2t")
|
||||
script = ExtResource("6_acoh7")
|
||||
|
||||
[node name="Label" type="Label" parent="CanvasLayer/Control/StartButton"]
|
||||
[node name="Label" type="Label" parent="CanvasLayer/Control/StartButton" unique_id=1472852849]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
|
|
@ -53,7 +52,7 @@ grow_horizontal = 2
|
|||
grow_vertical = 2
|
||||
text = "Start Game"
|
||||
|
||||
[node name="Settings" type="TextureButton" parent="CanvasLayer/Control"]
|
||||
[node name="Settings" type="TextureButton" parent="CanvasLayer/Control" unique_id=1714311456]
|
||||
layout_mode = 0
|
||||
offset_left = 136.0
|
||||
offset_top = 116.0
|
||||
|
|
@ -64,7 +63,7 @@ texture_pressed = ExtResource("8_xsckg")
|
|||
texture_hover = ExtResource("9_gfl6h")
|
||||
script = ExtResource("6_acoh7")
|
||||
|
||||
[node name="Label" type="Label" parent="CanvasLayer/Control/Settings"]
|
||||
[node name="Label" type="Label" parent="CanvasLayer/Control/Settings" unique_id=1534187192]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
|
|
@ -79,7 +78,7 @@ grow_horizontal = 2
|
|||
grow_vertical = 2
|
||||
text = "Settings"
|
||||
|
||||
[node name="Exit" type="TextureButton" parent="CanvasLayer/Control"]
|
||||
[node name="Exit" type="TextureButton" parent="CanvasLayer/Control" unique_id=685030824]
|
||||
layout_mode = 0
|
||||
offset_left = 91.0
|
||||
offset_top = 20.0
|
||||
|
|
@ -90,7 +89,7 @@ texture_pressed = ExtResource("10_kefd2")
|
|||
texture_hover = ExtResource("11_acoh7")
|
||||
script = ExtResource("6_acoh7")
|
||||
|
||||
[node name="Exit" type="Label" parent="CanvasLayer/Control/Exit"]
|
||||
[node name="Exit" type="Label" parent="CanvasLayer/Control/Exit" unique_id=41843911]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
|
|
@ -105,103 +104,10 @@ grow_horizontal = 2
|
|||
grow_vertical = 2
|
||||
text = "Exit"
|
||||
|
||||
[node name="SettingsMenu" parent="CanvasLayer/Control" node_paths=PackedStringArray("volume_slider", "fullscreen_check", "vsync_check") instance=ExtResource("1_jwbto")]
|
||||
visible = false
|
||||
[node name="SettingsMenu" parent="CanvasLayer/Control" unique_id=546978037 instance=ExtResource("11_vnuwp")]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -100.5625
|
||||
offset_top = -100.5625
|
||||
offset_right = 100.5625
|
||||
offset_bottom = 100.5625
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("3_v2mkm")
|
||||
axis_stretch_horizontal = 1
|
||||
axis_stretch_vertical = 1
|
||||
script = ExtResource("4_ctwoq")
|
||||
volume_slider = NodePath("MarginContainer/VBoxContainer/HBoxContainer/Volume")
|
||||
fullscreen_check = NodePath("MarginContainer/VBoxContainer/Fullscreen/CheckBox")
|
||||
vsync_check = NodePath("MarginContainer/VBoxContainer/Vsync/CheckBox")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="CanvasLayer/Control/SettingsMenu"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("3_v2mkm")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/Control/SettingsMenu/MarginContainer"]
|
||||
layout_mode = 2
|
||||
theme = ExtResource("3_v2mkm")
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Volume"
|
||||
|
||||
[node name="Volume" type="HSlider" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme = ExtResource("3_v2mkm")
|
||||
max_value = 1.0
|
||||
step = 0.01
|
||||
tick_count = 5
|
||||
ticks_on_borders = true
|
||||
ticks_position = 3
|
||||
|
||||
[node name="Fullscreen" type="HBoxContainer" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Label" type="Label" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Fullscreen"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
text = "Fullscreen"
|
||||
|
||||
[node name="CheckBox" type="CheckBox" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Fullscreen"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 10
|
||||
|
||||
[node name="Vsync" type="HBoxContainer" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Label" type="Label" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Vsync"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
text = "Vsync"
|
||||
|
||||
[node name="CheckBox" type="CheckBox" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Vsync"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 10
|
||||
|
||||
[node name="Buttons" type="MarginContainer" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 10
|
||||
|
||||
[node name="HBoxContainer2" type="HBoxContainer" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Buttons"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 10
|
||||
|
||||
[node name="ExitButton" type="Button" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Buttons/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
text = "Exit"
|
||||
|
||||
[node name="ContinueButton" type="Button" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Buttons/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 10
|
||||
text = "Continue"
|
||||
|
||||
[node name="MainCam2" parent="." node_paths=PackedStringArray("ui_layer") instance=ExtResource("5_ctwoq")]
|
||||
[node name="MainCam2" parent="." unique_id=217317670 node_paths=PackedStringArray("ui_layer") instance=ExtResource("5_ctwoq")]
|
||||
process_mode = 3
|
||||
z_index = 10
|
||||
ui_layer = NodePath("../CanvasLayer")
|
||||
|
|
@ -209,8 +115,3 @@ ui_layer = NodePath("../CanvasLayer")
|
|||
[connection signal="pressed" from="CanvasLayer/Control/StartButton" to="." method="_on_start_button_pressed"]
|
||||
[connection signal="pressed" from="CanvasLayer/Control/Settings" to="." method="_on_settings_pressed"]
|
||||
[connection signal="pressed" from="CanvasLayer/Control/Exit" to="." method="_on_exit_pressed"]
|
||||
[connection signal="value_changed" from="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/HBoxContainer/Volume" to="CanvasLayer/Control/SettingsMenu" method="_on_volume_changed"]
|
||||
[connection signal="toggled" from="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Fullscreen/CheckBox" to="CanvasLayer/Control/SettingsMenu" method="_on_fullscreen_toggled"]
|
||||
[connection signal="toggled" from="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Vsync/CheckBox" to="CanvasLayer/Control/SettingsMenu" method="_on_vsync_toggled"]
|
||||
[connection signal="pressed" from="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Buttons/HBoxContainer2/ExitButton" to="CanvasLayer/Control/SettingsMenu" method="_on_exit_button_pressed"]
|
||||
[connection signal="pressed" from="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Buttons/HBoxContainer2/ContinueButton" to="CanvasLayer/Control/SettingsMenu" method="_on_continue_button_pressed"]
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
12188
scenes/world_1.tscn
Normal file
12188
scenes/world_1.tscn
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1,9 +1,10 @@
|
|||
extends WorldEnvironment
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
EventBus.change_glow.connect(_change_glow)
|
||||
environment.glow_enabled = Settings.glow
|
||||
|
||||
|
||||
func _change_glow(new : bool):
|
||||
environment.glow_enabled = new
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue