Included Graphics
5
background/background.gd
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
extends Node2D
|
||||
|
||||
#func _process(delta: float) -> void:
|
||||
#for p : Parallax2D in get_children():
|
||||
#p.scroll_offset += Vector2.RIGHT * 100 * delta * p.scroll_scale
|
||||
1
background/background.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://c6q1tgl7kag67
|
||||
49
background/background.tscn
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://bcph46qvs6s1"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c6q1tgl7kag67" path="res://background/background.gd" id="1_gsnt7"]
|
||||
[ext_resource type="Texture2D" uid="uid://bk0lxjv2qjxnp" path="res://world/Background Prototype/Background Prototype Layer 1.png" id="1_qjy44"]
|
||||
[ext_resource type="Texture2D" uid="uid://b3d276mpm5mqr" path="res://world/Background Prototype/Background Prototype Layer 4.png" id="2_eva80"]
|
||||
[ext_resource type="Texture2D" uid="uid://b6fkgig57ki5j" path="res://world/Background Prototype/Background Prototype Layer 2.png" id="2_gsnt7"]
|
||||
[ext_resource type="Texture2D" uid="uid://tctuwr3rmof4" path="res://world/Background Prototype/Background Prototype Layer 3.png" id="3_3phoi"]
|
||||
|
||||
[node name="Background" type="Node2D"]
|
||||
script = ExtResource("1_gsnt7")
|
||||
|
||||
[node name="Parallax2D" type="Parallax2D" parent="."]
|
||||
scroll_scale = Vector2(0.1, 0.1)
|
||||
repeat_size = Vector2(1920, 1080)
|
||||
repeat_times = 2
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Parallax2D"]
|
||||
position = Vector2(960, 540)
|
||||
scale = Vector2(2, 2)
|
||||
texture = ExtResource("1_qjy44")
|
||||
|
||||
[node name="Parallax2D2" type="Parallax2D" parent="."]
|
||||
scroll_scale = Vector2(0.4, 0.4)
|
||||
repeat_size = Vector2(1920, 1080)
|
||||
repeat_times = 2
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Parallax2D2"]
|
||||
position = Vector2(960, 540)
|
||||
scale = Vector2(2, 2)
|
||||
texture = ExtResource("2_gsnt7")
|
||||
|
||||
[node name="Parallax2D3" type="Parallax2D" parent="."]
|
||||
scroll_scale = Vector2(0.7, 0.7)
|
||||
repeat_size = Vector2(1920, 1080)
|
||||
repeat_times = 2
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Parallax2D3"]
|
||||
position = Vector2(960, 540)
|
||||
scale = Vector2(2, 2)
|
||||
texture = ExtResource("3_3phoi")
|
||||
|
||||
[node name="Parallax2D4" type="Parallax2D" parent="."]
|
||||
repeat_size = Vector2(1920, 1080)
|
||||
repeat_times = 2
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Parallax2D4"]
|
||||
position = Vector2(960, 540)
|
||||
scale = Vector2(2, 2)
|
||||
texture = ExtResource("2_eva80")
|
||||
BIN
enemies/ghost animation/Ghost 0.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
40
enemies/ghost animation/Ghost 0.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b8732t0313bqs"
|
||||
path="res://.godot/imported/Ghost 0.png-54508e305bb055698e5019e1d53e16ab.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://enemies/ghost animation/Ghost 0.png"
|
||||
dest_files=["res://.godot/imported/Ghost 0.png-54508e305bb055698e5019e1d53e16ab.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
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/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
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
|
||||
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.9 KiB |
|
|
@ -1,13 +1,11 @@
|
|||
[gd_scene load_steps=11 format=3 uid="uid://chu67ci7sl488"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://chu67ci7sl488"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://12jns4dppxxj" path="res://enemies/ghost.gd" id="1_6attn"]
|
||||
[ext_resource type="PackedScene" uid="uid://mtfsdd4cdf3a" path="res://utils/enemy_hurtbox.tscn" id="2_34o1m"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3b5hmhjw2jyc" path="res://enemies/ghost animation/Ghost 1.png" id="3_34o1m"]
|
||||
[ext_resource type="PackedScene" uid="uid://chs0u61f45nau" path="res://utils/earth_aligner.tscn" id="3_obmiq"]
|
||||
[ext_resource type="Texture2D" uid="uid://b8732t0313bqs" path="res://enemies/ghost animation/Ghost 0.png" id="3_rbwoc"]
|
||||
[ext_resource type="Texture2D" uid="uid://dfhxhum8lek56" path="res://enemies/ghost animation/Ghost 2.png" id="4_4awot"]
|
||||
[ext_resource type="Texture2D" uid="uid://ve5px6ib45g" path="res://enemies/ghost animation/Ghost 3.png" id="5_etobg"]
|
||||
[ext_resource type="Texture2D" uid="uid://cmg8yws3gwx6u" path="res://enemies/ghost animation/Ghost 4.png" id="6_kbrsm"]
|
||||
[ext_resource type="Texture2D" uid="uid://bs3lt13umfxu8" path="res://enemies/ghost animation/Ghost 5.png" id="7_a4rx2"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_6attn"]
|
||||
|
||||
|
|
@ -15,19 +13,13 @@
|
|||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_rbwoc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_34o1m")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_4awot")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_etobg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("6_kbrsm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("7_a4rx2")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
|
|
|
|||
33
main.tscn
|
|
@ -1,7 +1,7 @@
|
|||
[gd_scene load_steps=11 format=3 uid="uid://cxo6bq26huau7"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cmaovvr15b3qk" path="res://player/player.tscn" id="2_1bvp3"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3fpq76anm4t7" path="res://world/Background prototype.png" id="3_kek77"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3fpq76anm4t7" path="res://world/Background Prototype/Background prototype.png" id="3_kek77"]
|
||||
[ext_resource type="PackedScene" uid="uid://jjoyj1ldafkf" path="res://world/earth.tscn" id="3_lquwl"]
|
||||
[ext_resource type="Script" uid="uid://colvx6wq0e8n7" path="res://world/building_generator.gd" id="4_1bvp3"]
|
||||
[ext_resource type="PackedScene" uid="uid://73g8y37skebh" path="res://item_ui/item_ui.tscn" id="6_4c57u"]
|
||||
|
|
@ -44,19 +44,19 @@ initial_buildings = 10
|
|||
wait_time = 2.5
|
||||
autostart = true
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
[node name="CanvasLayer1" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="Healthbar" parent="CanvasLayer" instance=ExtResource("6_7mycd")]
|
||||
[node name="Healthbar" parent="CanvasLayer1" instance=ExtResource("6_7mycd")]
|
||||
offset_right = 96.0
|
||||
offset_bottom = 96.0
|
||||
|
||||
[node name="ItemUI" parent="CanvasLayer" node_paths=PackedStringArray("player") instance=ExtResource("6_4c57u")]
|
||||
[node name="ItemUI" parent="CanvasLayer1" node_paths=PackedStringArray("player") instance=ExtResource("6_4c57u")]
|
||||
player = NodePath("../../Player")
|
||||
|
||||
[node name="DeathScreen" parent="CanvasLayer" instance=ExtResource("7_5vw27")]
|
||||
[node name="DeathScreen" parent="CanvasLayer1" instance=ExtResource("7_5vw27")]
|
||||
visible = false
|
||||
|
||||
[node name="FPS" type="Label" parent="CanvasLayer"]
|
||||
[node name="FPS" type="Label" parent="CanvasLayer1"]
|
||||
anchors_preset = 1
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
|
|
@ -71,9 +71,20 @@ position = Vector2(0, -3015)
|
|||
[node name="Water" parent="." instance=ExtResource("10_4c57u")]
|
||||
z_index = 15
|
||||
|
||||
[connection signal="active_item_changed" from="Player" to="CanvasLayer/ItemUI" method="_on_player_active_item_changed"]
|
||||
[connection signal="health_changed" from="Player" to="CanvasLayer/Healthbar" method="_on_player_health_changed"]
|
||||
[connection signal="max_hp_changed" from="Player" to="CanvasLayer/Healthbar" method="_on_player_max_hp_changed"]
|
||||
[connection signal="player_died" from="Player" to="CanvasLayer/DeathScreen" method="_on_player_player_died"]
|
||||
[node name="CanvasLayer-1" type="CanvasLayer" parent="."]
|
||||
layer = -1
|
||||
|
||||
[node name="ColorRect" type="TextureRect" parent="CanvasLayer-1"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("3_kek77")
|
||||
|
||||
[connection signal="active_item_changed" from="Player" to="CanvasLayer1/ItemUI" method="_on_player_active_item_changed"]
|
||||
[connection signal="health_changed" from="Player" to="CanvasLayer1/Healthbar" method="_on_player_health_changed"]
|
||||
[connection signal="max_hp_changed" from="Player" to="CanvasLayer1/Healthbar" method="_on_player_max_hp_changed"]
|
||||
[connection signal="player_died" from="Player" to="CanvasLayer1/DeathScreen" method="_on_player_player_died"]
|
||||
[connection signal="timeout" from="Building Generator/Timer" to="Building Generator" method="_on_timer_timeout"]
|
||||
[connection signal="visibility_changed" from="CanvasLayer/DeathScreen" to="Player" method="_on_death_screen_visibility_changed"]
|
||||
[connection signal="visibility_changed" from="CanvasLayer1/DeathScreen" to="Player" method="_on_death_screen_visibility_changed"]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://dpkr8yoobtej6"]
|
||||
[gd_scene load_steps=10 format=3 uid="uid://dpkr8yoobtej6"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bg4qx85we014d" path="res://main_menu/main_menu.gd" id="1_bws42"]
|
||||
[ext_resource type="PackedScene" uid="uid://jjoyj1ldafkf" path="res://world/earth.tscn" id="1_oa53l"]
|
||||
[ext_resource type="Script" uid="uid://colvx6wq0e8n7" path="res://world/building_generator.gd" id="2_d3a7t"]
|
||||
[ext_resource type="Theme" uid="uid://dwlus1hjwtch4" path="res://large_theme.tres" id="3_3shxk"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3fpq76anm4t7" path="res://world/Background Prototype/Background prototype.png" id="5_3f7m4"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_d3a7t"]
|
||||
bg_color = Color(0, 0.7529412, 0, 1)
|
||||
|
|
@ -101,6 +102,17 @@ layout_mode = 2
|
|||
theme_type_variation = &"FlatButton"
|
||||
text = "Quit Forever"
|
||||
|
||||
[node name="CanvasLayer-1" type="CanvasLayer" parent="."]
|
||||
layer = -1
|
||||
|
||||
[node name="ColorRect" type="TextureRect" parent="CanvasLayer-1"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("5_3f7m4")
|
||||
|
||||
[connection signal="timeout" from="Building Generator/Timer" to="Building Generator" method="_on_timer_timeout"]
|
||||
[connection signal="pressed" from="CanvasLayer/Control/PanelContainer/ButtonStart" to="." method="_on_button_start_pressed"]
|
||||
[connection signal="pressed" from="CanvasLayer/Control/MarginContainer/PanelContainer/Button_Quit" to="." method="_on_button_quit_pressed"]
|
||||
|
|
|
|||
BIN
player/attack_animation/Attack Animation 0.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
40
player/attack_animation/Attack Animation 0.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://7asmyuhicfoj"
|
||||
path="res://.godot/imported/Attack Animation 0.png-489acc9ce1151ab08e3e3b5b444c6f87.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://player/attack_animation/Attack Animation 0.png"
|
||||
dest_files=["res://.godot/imported/Attack Animation 0.png-489acc9ce1151ab08e3e3b5b444c6f87.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
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/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
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
|
||||
BIN
player/attack_animation/Attack Animation 1.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
40
player/attack_animation/Attack Animation 1.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c4klsmctmol5b"
|
||||
path="res://.godot/imported/Attack Animation 1.png-ee24e1daff1b2693d0a213bfef8b6a35.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://player/attack_animation/Attack Animation 1.png"
|
||||
dest_files=["res://.godot/imported/Attack Animation 1.png-ee24e1daff1b2693d0a213bfef8b6a35.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
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/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
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
|
||||
BIN
player/attack_animation/Attack Animation 2.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
40
player/attack_animation/Attack Animation 2.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c8xmypqf63l8f"
|
||||
path="res://.godot/imported/Attack Animation 2.png-d547f6c17bbb65420b4918144823411b.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://player/attack_animation/Attack Animation 2.png"
|
||||
dest_files=["res://.godot/imported/Attack Animation 2.png-d547f6c17bbb65420b4918144823411b.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
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/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
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
|
||||
BIN
player/attack_animation/Attack Animation 3.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
40
player/attack_animation/Attack Animation 3.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://em1kmgnaikc1"
|
||||
path="res://.godot/imported/Attack Animation 3.png-d741f7f68a27aab201a287d419122401.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://player/attack_animation/Attack Animation 3.png"
|
||||
dest_files=["res://.godot/imported/Attack Animation 3.png-d741f7f68a27aab201a287d419122401.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
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/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
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
|
||||
BIN
player/double_jump/Double Jump 0.png
Normal file
|
After Width: | Height: | Size: 535 B |
40
player/double_jump/Double Jump 0.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cnnuplvwpo351"
|
||||
path="res://.godot/imported/Double Jump 0.png-e1ba562e6b13c8446a336c30d2d5dd60.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://player/double_jump/Double Jump 0.png"
|
||||
dest_files=["res://.godot/imported/Double Jump 0.png-e1ba562e6b13c8446a336c30d2d5dd60.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
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/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
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
|
||||
BIN
player/double_jump/Double Jump 1.png
Normal file
|
After Width: | Height: | Size: 581 B |
40
player/double_jump/Double Jump 1.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bsx1yxgxv7rcy"
|
||||
path="res://.godot/imported/Double Jump 1.png-69539f806c4752d0093ea6a956b823b9.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://player/double_jump/Double Jump 1.png"
|
||||
dest_files=["res://.godot/imported/Double Jump 1.png-69539f806c4752d0093ea6a956b823b9.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
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/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
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
|
||||
BIN
player/double_jump/Double Jump 2.png
Normal file
|
After Width: | Height: | Size: 545 B |
40
player/double_jump/Double Jump 2.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d4kk1kbnnvoiu"
|
||||
path="res://.godot/imported/Double Jump 2.png-f1a820e0078cf2a6b005cbe59b43e27a.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://player/double_jump/Double Jump 2.png"
|
||||
dest_files=["res://.godot/imported/Double Jump 2.png-f1a820e0078cf2a6b005cbe59b43e27a.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
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/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
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
|
||||
BIN
player/double_jump/Double Jump 3.png
Normal file
|
After Width: | Height: | Size: 455 B |
40
player/double_jump/Double Jump 3.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://btxj42ov7tlxx"
|
||||
path="res://.godot/imported/Double Jump 3.png-4cfca0f35700bb4d12354620aff3aadf.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://player/double_jump/Double Jump 3.png"
|
||||
dest_files=["res://.godot/imported/Double Jump 3.png-4cfca0f35700bb4d12354620aff3aadf.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
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/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
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
|
||||
BIN
player/double_jump/Double Jump 4.png
Normal file
|
After Width: | Height: | Size: 330 B |
40
player/double_jump/Double Jump 4.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://7mgi2hnujphy"
|
||||
path="res://.godot/imported/Double Jump 4.png-3e8f9f85498209cd3a65d2e632f6e2da.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://player/double_jump/Double Jump 4.png"
|
||||
dest_files=["res://.godot/imported/Double Jump 4.png-3e8f9f85498209cd3a65d2e632f6e2da.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
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/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
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
|
||||
7
player/double_jump/double_jump_animation.gd
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
extends AnimatedSprite2D
|
||||
|
||||
func _ready():
|
||||
play("default")
|
||||
|
||||
func _on_animation_finished() -> void:
|
||||
queue_free()
|
||||
1
player/double_jump/double_jump_animation.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://courx3cleht2d
|
||||
38
player/double_jump/double_jump_animation.tscn
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://beotdg4etmevc"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cnnuplvwpo351" path="res://player/double_jump/Double Jump 0.png" id="1_x551h"]
|
||||
[ext_resource type="Texture2D" uid="uid://bsx1yxgxv7rcy" path="res://player/double_jump/Double Jump 1.png" id="2_q6kgq"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4kk1kbnnvoiu" path="res://player/double_jump/Double Jump 2.png" id="3_d5r54"]
|
||||
[ext_resource type="Texture2D" uid="uid://btxj42ov7tlxx" path="res://player/double_jump/Double Jump 3.png" id="4_sevse"]
|
||||
[ext_resource type="Texture2D" uid="uid://7mgi2hnujphy" path="res://player/double_jump/Double Jump 4.png" id="5_2o7pi"]
|
||||
[ext_resource type="Script" uid="uid://courx3cleht2d" path="res://player/double_jump/double_jump_animation.gd" id="6_q6kgq"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_qajm0"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("1_x551h")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_q6kgq")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_d5r54")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_sevse")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_2o7pi")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"default",
|
||||
"speed": 10.0
|
||||
}]
|
||||
|
||||
[node name="DoubleJumpAnimation" type="AnimatedSprite2D"]
|
||||
sprite_frames = SubResource("SpriteFrames_qajm0")
|
||||
frame_progress = 0.30051297
|
||||
script = ExtResource("6_q6kgq")
|
||||
|
||||
[connection signal="animation_finished" from="." to="." method="_on_animation_finished"]
|
||||
|
|
@ -6,6 +6,8 @@ class_name Player extends CharacterBody2D
|
|||
@onready var sword : Area2D = $Sword;
|
||||
@onready var active_item_cooldown : Timer = $ActiveItemCooldown
|
||||
|
||||
@export var double_jump_animation : PackedScene
|
||||
|
||||
# allow taking away player control
|
||||
var handle_input : bool = true
|
||||
|
||||
|
|
@ -131,6 +133,7 @@ func manage_velocity(delta: float) -> void:
|
|||
var dropped = false
|
||||
if(not is_on_floor()):
|
||||
air_jumps_current -= 1;
|
||||
play_double_jump_animation()
|
||||
elif (Input.is_action_pressed("drop")):
|
||||
dropped = true
|
||||
self.position += earth_aligner.global_from_local(Vector2(0,3))
|
||||
|
|
@ -163,3 +166,10 @@ func die():
|
|||
|
||||
func _on_death_screen_visibility_changed() -> void:
|
||||
handle_input = !handle_input
|
||||
|
||||
func play_double_jump_animation() -> void:
|
||||
var node = double_jump_animation.instantiate()
|
||||
add_child(node)
|
||||
node.position = Vector2(0, 5)
|
||||
node.scale = .5 * Vector2.ONE
|
||||
node.reparent(get_parent())
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=12 format=3 uid="uid://cmaovvr15b3qk"]
|
||||
[gd_scene load_steps=13 format=3 uid="uid://cmaovvr15b3qk"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ddidj1uau28ck" path="res://player/player.gd" id="1_4flbx"]
|
||||
[ext_resource type="Texture2D" uid="uid://c4xg25s8loxp0" path="res://player/Player_Walk/Walk 1.png" id="2_hg6s5"]
|
||||
|
|
@ -9,6 +9,7 @@
|
|||
[ext_resource type="Texture2D" uid="uid://dawbam413fob" path="res://player/Player_Walk/Walk 4.png" id="5_ebec5"]
|
||||
[ext_resource type="Texture2D" uid="uid://y32k1koww7oy" path="res://player/Player_Walk/Walk 5.png" id="6_yllr7"]
|
||||
[ext_resource type="Texture2D" uid="uid://bo7h3yc40kon3" path="res://player/Player_Walk/Walk 6.png" id="7_kb6p2"]
|
||||
[ext_resource type="PackedScene" uid="uid://beotdg4etmevc" path="res://player/double_jump/double_jump_animation.tscn" id="10_8t03j"]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_onrkg"]
|
||||
|
||||
|
|
@ -43,6 +44,7 @@ z_index = 10
|
|||
collision_layer = 5
|
||||
safe_margin = 1.0
|
||||
script = ExtResource("1_4flbx")
|
||||
double_jump_animation = ExtResource("10_8t03j")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, 5.6)
|
||||
|
|
|
|||
BIN
traps/Morning Star.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
40
traps/Morning Star.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c2q6afspf7hdq"
|
||||
path="res://.godot/imported/Morning Star.png-5c8aa4aef917e837888eb86be042d0ec.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://traps/Morning Star.png"
|
||||
dest_files=["res://.godot/imported/Morning Star.png-5c8aa4aef917e837888eb86be042d0ec.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
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/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
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
|
||||
|
|
@ -1,9 +1,10 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://dpv1w56yr1xue"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bjarfrf4tf3b1" path="res://traps/morning_star.gd" id="1_iuq6u"]
|
||||
[ext_resource type="Texture2D" uid="uid://cy70quh6k3s1j" path="res://icon.svg" id="1_ytaxb"]
|
||||
[ext_resource type="Texture2D" uid="uid://c2q6afspf7hdq" path="res://traps/Morning Star.png" id="2_4n2t1"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_iuq6u"]
|
||||
radius = 12.5
|
||||
|
||||
[node name="MorningStar" type="Node2D"]
|
||||
z_index = 2
|
||||
|
|
@ -15,10 +16,10 @@ scale = Vector2(3, 3)
|
|||
collision_layer = 0
|
||||
collision_mask = 6
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Area2D"]
|
||||
position = Vector2(1.9999962, 25.000004)
|
||||
scale = Vector2(0.65, 0.65)
|
||||
texture = ExtResource("2_4n2t1")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
shape = SubResource("CircleShape2D_iuq6u")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Area2D"]
|
||||
modulate = Color(1, 0, 0, 1)
|
||||
scale = Vector2(0.15, 0.15)
|
||||
texture = ExtResource("1_ytaxb")
|
||||
|
|
|
|||
|
|
@ -61,11 +61,11 @@ func update_shader():
|
|||
func _ready() -> void:
|
||||
update_shader()
|
||||
radius = rise_from
|
||||
#auto_rise = false
|
||||
#radius = 2950;
|
||||
#create_tsunami(4.712, 1);
|
||||
#await get_tree().create_timer(10).timeout
|
||||
#create_tsunami(4.712, 1);
|
||||
auto_rise = false
|
||||
radius = 2950;
|
||||
create_tsunami(4.712, 1);
|
||||
await get_tree().create_timer(10).timeout
|
||||
create_tsunami(4.712, 1);
|
||||
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d3fpq76anm4t7"
|
||||
path="res://.godot/imported/Background prototype.png-82410769bb8789c49aff3e49453fc3fe.ctex"
|
||||
path="res://.godot/imported/Background prototype.png-3a0b707a19d2bad459544182fdfe35b0.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://world/Background prototype.png"
|
||||
dest_files=["res://.godot/imported/Background prototype.png-82410769bb8789c49aff3e49453fc3fe.ctex"]
|
||||
source_file="res://world/Background Prototype/Background prototype.png"
|
||||
dest_files=["res://.godot/imported/Background prototype.png-3a0b707a19d2bad459544182fdfe35b0.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||