Post Game jam commit
This commit is contained in:
commit
6db2131520
164 changed files with 172524 additions and 0 deletions
63
scenes/enemy_base.tscn
Normal file
63
scenes/enemy_base.tscn
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
[gd_scene load_steps=12 format=3 uid="uid://dvlr5hamruqrd"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b1t0k6dfubsmk" path="res://enemy.gd" id="1_fr7lv"]
|
||||
[ext_resource type="PackedScene" uid="uid://bgpha7wiajw6q" path="res://scenes/mask_drop.tscn" id="2_3ysdf"]
|
||||
[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="PackedScene" uid="uid://0n57icfpulmc" path="res://scenes/hearts.tscn" id="4_yt5vg"]
|
||||
[ext_resource type="PackedScene" uid="uid://bmwgnwqj3scm5" path="res://scenes/scithe_attack.tscn" id="5_7t5mr"]
|
||||
[ext_resource type="PackedScene" uid="uid://dfad6rsacpogt" path="res://scenes/spit.tscn" id="6_y8vm1"]
|
||||
|
||||
[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"
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_lxe82"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("CompressedTexture2D_sw0xa")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("CompressedTexture2D_j1ss0")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="EnemyBase" type="CharacterBody2D" groups=["enemy"]]
|
||||
collision_layer = 2
|
||||
motion_mode = 1
|
||||
script = ExtResource("1_fr7lv")
|
||||
mask_drop = ExtResource("2_3ysdf")
|
||||
death_explosion = ExtResource("3_esqeu")
|
||||
heart_attack = ExtResource("4_yt5vg")
|
||||
scithe_attack = ExtResource("5_7t5mr")
|
||||
spit_attack = ExtResource("6_y8vm1")
|
||||
charge_time = 0.6
|
||||
flee_range = 10
|
||||
movement_speed = 35.0
|
||||
|
||||
[node name="Shadow" type="Node2D" parent="."]
|
||||
position = Vector2(0, 15)
|
||||
script = ExtResource("2_vv3x1")
|
||||
metadata/_custom_type_script = "uid://synocbtvgrf4"
|
||||
|
||||
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
|
||||
avoidance_enabled = true
|
||||
radius = 40.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
rotation = 2.4698958e-05
|
||||
shape = SubResource("CircleShape2D_sw0xa")
|
||||
|
||||
[node name="Anim" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_lxe82")
|
||||
autoplay = "default"
|
||||
frame_progress = 0.52776843
|
||||
53
scenes/enemy_explosion.tscn
Normal file
53
scenes/enemy_explosion.tscn
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://c8l24d01bm2sg"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b103rhhth5yu3" path="res://assets/particles/death.png" id="1_bpht7"]
|
||||
[ext_resource type="Script" uid="uid://b6f7w4uftych8" path="res://scripts/enemy_explosion.gd" id="2_bpht7"]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_qx6bo"]
|
||||
_data = [Vector2(0.03787878, 1), 0.0, 0.0, 0, 0, Vector2(0.82575756, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_bpht7"]
|
||||
curve = SubResource("Curve_qx6bo")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_bpht7"]
|
||||
_limits = [0.0, 100.0, 0.0, 1.0]
|
||||
_data = [Vector2(0, 51.685394), 0.0, 0.0, 0, 0, Vector2(1, 75.2809), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_qgwqa"]
|
||||
curve = SubResource("Curve_bpht7")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_i2p71"]
|
||||
particle_flag_disable_z = true
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 1.0
|
||||
angle_min = -720.0
|
||||
angle_max = 720.0
|
||||
spread = 180.0
|
||||
initial_velocity_min = 116.46999
|
||||
initial_velocity_max = 253.59
|
||||
gravity = Vector3(0, 0, 0)
|
||||
damping_min = 7.3650002
|
||||
damping_max = 30.000002
|
||||
damping_curve = SubResource("CurveTexture_qgwqa")
|
||||
scale_max = 1.1999999
|
||||
color = Color(0.105882354, 0, 0.8117647, 1)
|
||||
alpha_curve = SubResource("CurveTexture_bpht7")
|
||||
|
||||
[node name="EnemyExplosion" type="GPUParticles2D"]
|
||||
modulate = Color(1.3945211, 1.3945211, 1.3945211, 1)
|
||||
z_index = -1
|
||||
emitting = false
|
||||
amount = 32
|
||||
texture = ExtResource("1_bpht7")
|
||||
lifetime = 7.0
|
||||
one_shot = true
|
||||
explosiveness = 1.0
|
||||
randomness = 0.68
|
||||
fixed_fps = 0
|
||||
draw_order = 0
|
||||
process_material = SubResource("ParticleProcessMaterial_i2p71")
|
||||
script = ExtResource("2_bpht7")
|
||||
|
||||
[connection signal="finished" from="." to="." method="_on_finished"]
|
||||
14
scenes/enemy_spawn.tscn
Normal file
14
scenes/enemy_spawn.tscn
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[gd_scene load_steps=5 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://dbgsb7uyh2e5k" path="res://spit_dragon.tscn" id="4_muh2a"]
|
||||
|
||||
[node name="EnemySpawn" type="Node2D"]
|
||||
z_index = 1
|
||||
script = ExtResource("1_8pwvm")
|
||||
enemies = Array[PackedScene]([ExtResource("2_vav55"), ExtResource("3_4ll2w"), ExtResource("4_muh2a")])
|
||||
enemies_per_circle = 3
|
||||
radius_step = 300.0
|
||||
initial_radius = 700.0
|
||||
34
scenes/grass.tscn
Normal file
34
scenes/grass.tscn
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://bsc67y33i8ud4"]
|
||||
|
||||
[ext_resource type="Shader" uid="uid://bv0mig3iliwk0" path="res://shaders/grass_shader.gdshader" id="1_3kunl"]
|
||||
[ext_resource type="Script" uid="uid://b5o4ky21bvg66" path="res://scripts/grass.gd" id="3_cvbpf"]
|
||||
|
||||
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_vaj68"]
|
||||
seamless = true
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_hb5m1"]
|
||||
shader = ExtResource("1_3kunl")
|
||||
shader_parameter/wind_speed = 1.0
|
||||
shader_parameter/wind_strength = 10.0
|
||||
shader_parameter/noise_tex = SubResource("NoiseTexture2D_vaj68")
|
||||
shader_parameter/frame_size = Vector2(16, 32)
|
||||
shader_parameter/sheet_size = Vector2(256, 32)
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_yarb5"]
|
||||
size = Vector2(16, 32)
|
||||
|
||||
[sub_resource type="MultiMesh" id="MultiMesh_x5p1p"]
|
||||
use_colors = true
|
||||
use_custom_data = true
|
||||
mesh = SubResource("QuadMesh_yarb5")
|
||||
|
||||
[node name="Grass" type="MultiMeshInstance2D"]
|
||||
material = SubResource("ShaderMaterial_hb5m1")
|
||||
rotation = 0.049343307
|
||||
multimesh = SubResource("MultiMesh_x5p1p")
|
||||
script = ExtResource("3_cvbpf")
|
||||
blade_size = Vector2(16, 32)
|
||||
texture_sheet_size = Vector2(128, 32)
|
||||
editing = true
|
||||
brush_radius = 100.0
|
||||
brush_density = 40
|
||||
79
scenes/hearts.tscn
Normal file
79
scenes/hearts.tscn
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
[gd_scene load_steps=11 format=3 uid="uid://0n57icfpulmc"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://beefpuq6vu475" path="res://assets/particles/heart.png" id="1_hugpe"]
|
||||
[ext_resource type="Script" uid="uid://dyyqm52cwjimy" path="res://scripts/hearts.gd" id="2_q6mno"]
|
||||
[ext_resource type="PackedScene" uid="uid://crptu0w0l57dd" path="res://hitbox.tscn" id="3_hugpe"]
|
||||
|
||||
[sub_resource type="CanvasTexture" id="CanvasTexture_7sc4i"]
|
||||
diffuse_texture = ExtResource("1_hugpe")
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_hugpe"]
|
||||
colors = PackedColorArray(1, 1, 1, 1, 0, 0, 0, 0)
|
||||
|
||||
[sub_resource type="Curve" id="Curve_215e1"]
|
||||
_limits = [-1.0, 1.0, 0.0, 1.0]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="Curve" id="Curve_hugpe"]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.8181818, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_q6mno"]
|
||||
curve = SubResource("Curve_hugpe")
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_hugpe"]
|
||||
curve = SubResource("Curve_215e1")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_q6mno"]
|
||||
particle_flag_disable_z = true
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 15.51
|
||||
spread = 180.0
|
||||
initial_velocity_min = 23.65
|
||||
initial_velocity_max = 116.43
|
||||
gravity = Vector3(0, -100, 0)
|
||||
scale_min = 0.5
|
||||
color = Color(1, 0.5686275, 0.61960787, 1)
|
||||
alpha_curve = SubResource("CurveTexture_q6mno")
|
||||
hue_variation_min = -0.07
|
||||
hue_variation_max = 0.01
|
||||
hue_variation_curve = SubResource("CurveTexture_hugpe")
|
||||
|
||||
[node name="Hearts" type="CPUParticles2D"]
|
||||
z_index = 1
|
||||
amount = 32
|
||||
texture = SubResource("CanvasTexture_7sc4i")
|
||||
lifetime = 0.34
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 15.51
|
||||
gravity = Vector2(0, -100)
|
||||
scale_amount_min = 0.5
|
||||
color = Color(1, 0.27999997, 0.36400008, 1)
|
||||
color_ramp = SubResource("Gradient_hugpe")
|
||||
hue_variation_min = -0.07
|
||||
hue_variation_max = 0.01
|
||||
hue_variation_curve = SubResource("Curve_215e1")
|
||||
script = ExtResource("2_q6mno")
|
||||
speed = 350.0
|
||||
|
||||
[node name="Hitbox" parent="." instance=ExtResource("3_hugpe")]
|
||||
scale = Vector2(0.63729316, 0.63729316)
|
||||
|
||||
[node name="Explosion" type="GPUParticles2D" parent="."]
|
||||
z_index = 1
|
||||
emitting = false
|
||||
amount = 128
|
||||
texture = SubResource("CanvasTexture_7sc4i")
|
||||
lifetime = 0.6
|
||||
one_shot = true
|
||||
explosiveness = 1.0
|
||||
fixed_fps = 0
|
||||
draw_order = 0
|
||||
process_material = SubResource("ParticleProcessMaterial_q6mno")
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 10.0
|
||||
|
||||
[connection signal="onhit" from="Hitbox" to="." method="_on_hitbox_onhit"]
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
||||
17
scenes/main_cam.tscn
Normal file
17
scenes/main_cam.tscn
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
[gd_scene load_steps=4 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"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_7gwtr"]
|
||||
shader = ExtResource("2_ujfja")
|
||||
shader_parameter/cam_pos = Vector2(0, 0)
|
||||
shader_parameter/scaling = Vector2(1, 1)
|
||||
|
||||
[node name="MainCam" type="Camera2D"]
|
||||
script = ExtResource("1_7gwtr")
|
||||
|
||||
[node name="Pixelator" type="ColorRect" parent="."]
|
||||
material = SubResource("ShaderMaterial_7gwtr")
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
50
scenes/mask_drop.tscn
Normal file
50
scenes/mask_drop.tscn
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://bgpha7wiajw6q"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c576b1a6s5vw" path="res://scripts/mask_drop.gd" id="2_4rvbi"]
|
||||
[ext_resource type="Script" uid="uid://synocbtvgrf4" path="res://scripts/shadow.gd" id="2_m0s44"]
|
||||
[ext_resource type="Texture2D" uid="uid://brti1euuui0tv" path="res://assets/pick_up.png" id="3_tsd5b"]
|
||||
[ext_resource type="Shader" uid="uid://bfgw43365hrv6" path="res://shaders/outline.gdshader" id="4_p81p2"]
|
||||
[ext_resource type="Texture2D" uid="uid://jdf7lep07uov" path="res://assets/maske_melee_drop.png" id="5_3mwkh"]
|
||||
[ext_resource type="Texture2D" uid="uid://kw0b4c52lx2" path="res://assets/maske_spit_drop.png" id="6_p81p2"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_601wb"]
|
||||
shader = ExtResource("4_p81p2")
|
||||
shader_parameter/color = Color(1, 1, 1, 1)
|
||||
shader_parameter/width = 1.0
|
||||
shader_parameter/pattern = 0
|
||||
shader_parameter/inside = false
|
||||
shader_parameter/add_margins = true
|
||||
|
||||
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_4rvbi"]
|
||||
load_path = "res://.godot/imported/maske_ranged_drop.png-ee4e4824ad53db596cba463459262e62.ctex"
|
||||
|
||||
[node name="Mask" type="Node2D" groups=["mask"]]
|
||||
z_index = 2
|
||||
scale = Vector2(2, 2)
|
||||
script = ExtResource("2_4rvbi")
|
||||
|
||||
[node name="Shadow" type="Node2D" parent="."]
|
||||
position = Vector2(0, 13)
|
||||
script = ExtResource("2_m0s44")
|
||||
metadata/_custom_type_script = "uid://synocbtvgrf4"
|
||||
|
||||
[node name="Popup" type="Sprite2D" parent="."]
|
||||
modulate = Color(1, 1, 1, 0)
|
||||
position = Vector2(0, -23)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
texture = ExtResource("3_tsd5b")
|
||||
|
||||
[node name="MeleeMask" type="Sprite2D" parent="."]
|
||||
material = SubResource("ShaderMaterial_601wb")
|
||||
position = Vector2(0, 5)
|
||||
texture = ExtResource("5_3mwkh")
|
||||
|
||||
[node name="RangedMask" type="Sprite2D" parent="."]
|
||||
visible = false
|
||||
texture = SubResource("CompressedTexture2D_4rvbi")
|
||||
|
||||
[node name="SpitMask" type="Sprite2D" parent="."]
|
||||
visible = false
|
||||
texture = ExtResource("6_p81p2")
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
86
scenes/player.tscn
Normal file
86
scenes/player.tscn
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
[gd_scene load_steps=13 format=3 uid="uid://ncgwx0yjn2gt"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://sbseykg05177" path="res://player.gd" id="1_ur7pv"]
|
||||
[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/maske1.png" id="5_jej6c"]
|
||||
[ext_resource type="Texture2D" uid="uid://dgd8u7jrpy1v5" path="res://assets/maske2.png" id="6_f1ej7"]
|
||||
[ext_resource type="Texture2D" uid="uid://bvknpybmvfs2r" path="res://ui/arrow.png" id="7_fjrip"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3h6wl5cnf8ba" path="res://assets/maske3.png" id="7_oprun"]
|
||||
[ext_resource type="Script" uid="uid://c0e4uacrlcrk8" path="res://scripts/AnimSprite.gd" id="8_a8ls1"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_e36ub"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_jej6c")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_jej6c")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("6_f1ej7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("7_oprun")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_vaj68"]
|
||||
load_path = "res://.godot/imported/maske_ranged.png-4c1779df049f2398346f002d8c8d7de7.ctex"
|
||||
|
||||
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_f1jbl"]
|
||||
load_path = "res://.godot/imported/maske_melee.png-683f1c3cec32a2b5aa545d35da87a46b.ctex"
|
||||
|
||||
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_xa8c5"]
|
||||
load_path = "res://.godot/imported/maske_spit.png-3ce67eb7b0fddb8e80161ab20605961e.ctex"
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_215e1"]
|
||||
radius = 10.049875
|
||||
|
||||
[node name="Player" type="CharacterBody2D"]
|
||||
y_sort_enabled = true
|
||||
collision_layer = 2
|
||||
motion_mode = 1
|
||||
script = ExtResource("1_ur7pv")
|
||||
|
||||
[node name="Shadow" type="Node2D" parent="."]
|
||||
position = Vector2(0, 19)
|
||||
script = ExtResource("4_3v2ag")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(0, -30)
|
||||
sprite_frames = SubResource("SpriteFrames_e36ub")
|
||||
animation = &"idle"
|
||||
autoplay = "walk"
|
||||
script = ExtResource("8_a8ls1")
|
||||
float_str = 3.0
|
||||
float_time = 3.0
|
||||
|
||||
[node name="RangedMask" type="Sprite2D" parent="AnimatedSprite2D"]
|
||||
visible = false
|
||||
texture = SubResource("CompressedTexture2D_vaj68")
|
||||
|
||||
[node name="MeleeMask" type="Sprite2D" parent="AnimatedSprite2D"]
|
||||
position = Vector2(0, 1)
|
||||
texture = SubResource("CompressedTexture2D_f1jbl")
|
||||
|
||||
[node name="SpitMask" type="Sprite2D" parent="AnimatedSprite2D"]
|
||||
visible = false
|
||||
texture = SubResource("CompressedTexture2D_xa8c5")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, 12)
|
||||
shape = SubResource("CircleShape2D_215e1")
|
||||
|
||||
[node name="Arrow" type="Sprite2D" parent="."]
|
||||
scale = Vector2(2.468657, 2.468657)
|
||||
texture = ExtResource("7_fjrip")
|
||||
offset = Vector2(28.12, 0)
|
||||
53
scenes/player_explosion.tscn
Normal file
53
scenes/player_explosion.tscn
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://bp45yth1y3ia5"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b103rhhth5yu3" path="res://assets/particles/death.png" id="1_dkjut"]
|
||||
[ext_resource type="Script" uid="uid://b6f7w4uftych8" path="res://scripts/enemy_explosion.gd" id="2_rf25u"]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_qx6bo"]
|
||||
_data = [Vector2(0.03787878, 1), 0.0, 0.0, 0, 0, Vector2(0.82575756, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_bpht7"]
|
||||
curve = SubResource("Curve_qx6bo")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_bpht7"]
|
||||
_limits = [0.0, 100.0, 0.0, 1.0]
|
||||
_data = [Vector2(0, 51.685394), 0.0, 0.0, 0, 0, Vector2(1, 75.2809), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_qgwqa"]
|
||||
curve = SubResource("Curve_bpht7")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_44a6l"]
|
||||
particle_flag_disable_z = true
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 1.0
|
||||
angle_min = -720.0
|
||||
angle_max = 720.0
|
||||
spread = 180.0
|
||||
initial_velocity_min = 234.12
|
||||
initial_velocity_max = 371.24
|
||||
gravity = Vector3(0, 0, 0)
|
||||
damping_min = 7.3650002
|
||||
damping_max = 30.000002
|
||||
damping_curve = SubResource("CurveTexture_qgwqa")
|
||||
scale_max = 1.1999999
|
||||
color = Color(0.74558026, 0.7455802, 0.74558014, 1)
|
||||
alpha_curve = SubResource("CurveTexture_bpht7")
|
||||
|
||||
[node name="PlayerExplosion" type="GPUParticles2D"]
|
||||
modulate = Color(1.3945211, 1.3945211, 1.3945211, 1)
|
||||
z_index = -1
|
||||
emitting = false
|
||||
amount = 256
|
||||
texture = ExtResource("1_dkjut")
|
||||
lifetime = 7.0
|
||||
one_shot = true
|
||||
explosiveness = 1.0
|
||||
randomness = 0.68
|
||||
fixed_fps = 0
|
||||
draw_order = 0
|
||||
process_material = SubResource("ParticleProcessMaterial_44a6l")
|
||||
script = ExtResource("2_rf25u")
|
||||
|
||||
[connection signal="finished" from="." to="." method="_on_finished"]
|
||||
63
scenes/ranged_enemy.tscn
Normal file
63
scenes/ranged_enemy.tscn
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
[gd_scene load_steps=13 format=3 uid="uid://ya6jfltqnl1b"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://buamdls133c2e" path="res://scripts/ranged_enemy.gd" id="1_rs3ab"]
|
||||
[ext_resource type="PackedScene" uid="uid://bgpha7wiajw6q" path="res://scenes/mask_drop.tscn" id="2_6r77u"]
|
||||
[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/cerdipulpo_1.png" id="3_v0fr6"]
|
||||
[ext_resource type="PackedScene" uid="uid://0n57icfpulmc" path="res://scenes/hearts.tscn" id="4_11j8y"]
|
||||
[ext_resource type="Texture2D" uid="uid://cinexqxlsuwnj" path="res://assets/cerdipulpo_2.png" id="4_nqoy7"]
|
||||
[ext_resource type="Texture2D" uid="uid://cy034lyy4w74p" path="res://assets/cerdipulpo_3.png" id="5_2ls4a"]
|
||||
[ext_resource type="PackedScene" uid="uid://bmwgnwqj3scm5" path="res://scenes/scithe_attack.tscn" id="5_xk0lc"]
|
||||
[ext_resource type="PackedScene" uid="uid://dfad6rsacpogt" path="res://scenes/spit.tscn" id="6_t2vsf"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_rs3ab"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_w150n"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_v0fr6")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_nqoy7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_2ls4a")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="RangedEnemy" type="CharacterBody2D" groups=["enemy"]]
|
||||
collision_layer = 2
|
||||
script = ExtResource("1_rs3ab")
|
||||
mask_drop = ExtResource("2_6r77u")
|
||||
death_explosion = ExtResource("3_g3aa2")
|
||||
heart_attack = ExtResource("4_11j8y")
|
||||
scithe_attack = ExtResource("5_xk0lc")
|
||||
spit_attack = ExtResource("6_t2vsf")
|
||||
charge_time = 0.9
|
||||
flee_range = 100
|
||||
aproach_range = 200
|
||||
current_mask = 1
|
||||
movement_speed = 22.0
|
||||
|
||||
[node name="Shadow" type="Node2D" parent="."]
|
||||
position = Vector2(0, 16)
|
||||
script = ExtResource("2_v0fr6")
|
||||
metadata/_custom_type_script = "uid://synocbtvgrf4"
|
||||
|
||||
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
|
||||
avoidance_enabled = true
|
||||
radius = 40.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_rs3ab")
|
||||
|
||||
[node name="Anim" type="AnimatedSprite2D" parent="."]
|
||||
modulate = Color(0.94509804, 0.94509804, 0.94509804, 1)
|
||||
sprite_frames = SubResource("SpriteFrames_w150n")
|
||||
autoplay = "default"
|
||||
frame_progress = 0.12960237
|
||||
29
scenes/scene_transition.tscn
Normal file
29
scenes/scene_transition.tscn
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://cmf1dwa45umsu"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dktk18oihl6xf" path="res://scripts/singletons/scene_transition.gd" id="1_0wykx"]
|
||||
[ext_resource type="Theme" uid="uid://d3iyu7ukwsn1p" path="res://ui/default_theme.tres" id="2_rujfs"]
|
||||
|
||||
[node name="SceneTransition" type="CanvasLayer"]
|
||||
layer = 1000
|
||||
script = ExtResource("1_0wykx")
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0.21176471, 0.2627451, 0.53333336, 1)
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="."]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 31.0
|
||||
offset_top = 19.0
|
||||
offset_right = 31.0
|
||||
offset_bottom = 19.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("2_rujfs")
|
||||
98
scenes/scithe_attack.tscn
Normal file
98
scenes/scithe_attack.tscn
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
[gd_scene load_steps=10 format=3 uid="uid://bmwgnwqj3scm5"]
|
||||
|
||||
[ext_resource type="Shader" uid="uid://bwcmfh6twfdpi" path="res://shaders/fade_in.gdshader" id="1_0m7gt"]
|
||||
[ext_resource type="Script" uid="uid://c1anp8np0aw0" path="res://scripts/scithe_attack.gd" id="1_lx8lr"]
|
||||
[ext_resource type="Texture2D" uid="uid://divkl7rteoscg" path="res://assets/scithe_load.png" id="2_lx8lr"]
|
||||
[ext_resource type="Texture2D" uid="uid://cskpxmrlwc0gg" path="res://assets/lavender_scythe.png" id="4_6xgjh"]
|
||||
[ext_resource type="PackedScene" uid="uid://crptu0w0l57dd" path="res://hitbox.tscn" id="5_6xgjh"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_5b14r"]
|
||||
shader = ExtResource("1_0m7gt")
|
||||
shader_parameter/mask = ExtResource("2_lx8lr")
|
||||
shader_parameter/progress = 1.0
|
||||
|
||||
[sub_resource type="Animation" id="Animation_lx8lr"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector2(0, 0)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("..:rotation")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/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
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:position")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.2),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector2(0, 0), Vector2(0, -30)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("..:rotation")
|
||||
tracks/1/interp = 2
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 0.2, 0.5),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [1.5707963267948966, 1.5707963267948966, -7.853981633974483]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_8jfvf"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_lx8lr"),
|
||||
&"swing": SubResource("Animation_0m7gt")
|
||||
}
|
||||
|
||||
[node name="ScitheAttack" type="Node2D"]
|
||||
script = ExtResource("1_lx8lr")
|
||||
|
||||
[node name="Anchor" type="Node2D" parent="."]
|
||||
|
||||
[node name="Scithe" type="Sprite2D" parent="Anchor"]
|
||||
material = SubResource("ShaderMaterial_5b14r")
|
||||
scale = Vector2(0.904629, 0.904629)
|
||||
texture = ExtResource("4_6xgjh")
|
||||
flip_h = true
|
||||
|
||||
[node name="Hitbox" parent="Anchor/Scithe" instance=ExtResource("5_6xgjh")]
|
||||
position = Vector2(-6.410257, -8.012821)
|
||||
rotation = 0.965108
|
||||
scale = Vector2(1.5881884, 4.2732244)
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
root_node = NodePath("../Anchor/Scithe")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_8jfvf")
|
||||
}
|
||||
autoplay = "swing"
|
||||
|
||||
[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_animation_player_animation_finished"]
|
||||
14
scenes/spit.tscn
Normal file
14
scenes/spit.tscn
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://dfad6rsacpogt"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ctninfm8hkbp2" path="res://scripts/spit.gd" id="1_1fhrs"]
|
||||
[ext_resource type="Texture2D" uid="uid://br8dx2f3mfxcd" path="res://assets/bomba.png" id="2_1fhrs"]
|
||||
[ext_resource type="PackedScene" uid="uid://bbqgdjgil7nwx" path="res://scenes/spit_payload.tscn" id="4_03rlv"]
|
||||
|
||||
[node name="Spit" type="Node2D"]
|
||||
script = ExtResource("1_1fhrs")
|
||||
speed = 300.0
|
||||
max_height = 50.0
|
||||
payload = ExtResource("4_03rlv")
|
||||
|
||||
[node name="Bomb" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("2_1fhrs")
|
||||
42
scenes/spit_payload.tscn
Normal file
42
scenes/spit_payload.tscn
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://bbqgdjgil7nwx"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b103rhhth5yu3" path="res://assets/particles/death.png" id="1_pi6vg"]
|
||||
[ext_resource type="Script" uid="uid://8bsq7kvqky3d" path="res://scripts/spit_payload.gd" id="2_61mym"]
|
||||
[ext_resource type="PackedScene" uid="uid://crptu0w0l57dd" path="res://hitbox.tscn" id="3_pi6vg"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_bnpwn"]
|
||||
offsets = PackedFloat32Array(0, 0.60958904, 1)
|
||||
colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 1, 0.4833991, 1.8241555e-05, 0.3690953, 0.25882354)
|
||||
|
||||
[sub_resource type="Curve" id="Curve_bnpwn"]
|
||||
_limits = [-1.0, 1.0, 0.0, 1.0]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[node name="SpitPayload" type="CPUParticles2D"]
|
||||
emitting = false
|
||||
amount = 128
|
||||
texture = ExtResource("1_pi6vg")
|
||||
lifetime = 0.3
|
||||
one_shot = true
|
||||
explosiveness = 0.95
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 17.16
|
||||
direction = Vector2(0, 1)
|
||||
spread = 180.0
|
||||
gravity = Vector2(0, -400)
|
||||
initial_velocity_max = 154.64
|
||||
angular_velocity_min = -66.8
|
||||
angular_velocity_max = 44.66
|
||||
scale_amount_max = 2.0
|
||||
color = Color(0, 0.61960787, 0.32156864, 0.8117647)
|
||||
color_ramp = SubResource("Gradient_bnpwn")
|
||||
hue_variation_min = -0.19
|
||||
hue_variation_max = 0.16
|
||||
hue_variation_curve = SubResource("Curve_bnpwn")
|
||||
script = ExtResource("2_61mym")
|
||||
|
||||
[node name="Hitbox" parent="." instance=ExtResource("3_pi6vg")]
|
||||
scale = Vector2(3.856148, 3.856148)
|
||||
|
||||
[connection signal="finished" from="." to="." method="_on_finished"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue