expanding save system an add more sounds

This commit is contained in:
megamichi 2025-04-08 23:13:14 +02:00
parent 947bdba21e
commit 7cb1f1fb00
Notes: Michael S. 2025-04-08 23:31:36 +02:00
Upgrade to Godot 4.4
62 changed files with 336 additions and 143 deletions

View file

@ -23,6 +23,7 @@ allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
keep_rounding_remainders=true
oversampling=0.0
Fallbacks=null
fallbacks=[]

View file

@ -0,0 +1 @@
uid://du6sjbfmvn3dt

View file

@ -0,0 +1 @@
uid://sl2mrilv77ro

View file

@ -0,0 +1 @@
uid://pavq8iovmhhy

View file

@ -0,0 +1 @@
uid://bg08cblx52df1

View file

@ -0,0 +1 @@
uid://bvq45nq4r304q

View file

@ -1,6 +1,6 @@
[gd_scene load_steps=5 format=3 uid="uid://cbsmvov8u78q"]
[ext_resource type="Script" path="res://addons/SignalVisualizer/Debugger/signal_debugger_panel.gd" id="1_66cpc"]
[ext_resource type="Script" uid="uid://cfsmcywtslxhi" path="res://addons/SignalVisualizer/Debugger/signal_debugger_panel.gd" id="1_66cpc"]
[ext_resource type="Texture2D" uid="uid://be3nwoioa311t" path="res://addons/SignalVisualizer/Play.svg" id="2_2wkuv"]
[ext_resource type="Texture2D" uid="uid://oo1oq2colx5b" path="res://addons/SignalVisualizer/Stop.svg" id="3_bg5eu"]
[ext_resource type="Texture2D" uid="uid://bmnff63evbdhv" path="res://addons/SignalVisualizer/Clear.svg" id="4_vg63r"]

View file

@ -0,0 +1 @@
uid://cfsmcywtslxhi

View file

@ -0,0 +1 @@
uid://d0m3v0f07h3vh

View file

@ -0,0 +1 @@
uid://bxp5i5obth5hi

View file

@ -0,0 +1 @@
uid://c082jv0ivhhnb

View file

@ -1,6 +1,6 @@
[gd_scene load_steps=2 format=3 uid="uid://cq10iaub18e54"]
[ext_resource type="Script" path="res://addons/SignalVisualizer/Visualizer/signal_graph_node.gd" id="1_ovklj"]
[ext_resource type="Script" uid="uid://c082jv0ivhhnb" path="res://addons/SignalVisualizer/Visualizer/signal_graph_node.gd" id="1_ovklj"]
[node name="SignalGraphNode" type="GraphNode"]
custom_minimum_size = Vector2(100, 50)

View file

@ -0,0 +1 @@
uid://dhygl4r1312kh

View file

@ -1,7 +1,7 @@
[gd_scene load_steps=3 format=3 uid="uid://b2lwtwp6kpwtb"]
[ext_resource type="Script" path="res://addons/SignalVisualizer/Visualizer/signal_graph_node_item.gd" id="1_jrd34"]
[ext_resource type="Script" path="res://addons/SignalVisualizer/Visualizer/resizable_label.gd" id="2_4wwd5"]
[ext_resource type="Script" uid="uid://dhygl4r1312kh" path="res://addons/SignalVisualizer/Visualizer/signal_graph_node_item.gd" id="1_jrd34"]
[ext_resource type="Script" uid="uid://bxp5i5obth5hi" path="res://addons/SignalVisualizer/Visualizer/resizable_label.gd" id="2_4wwd5"]
[node name="SignalItem" type="Control"]
clip_contents = true

View file

@ -0,0 +1 @@
uid://d1gmm2inpfg81

View file

@ -1,6 +1,6 @@
[gd_scene load_steps=5 format=3 uid="uid://dppfamjc0ji40"]
[ext_resource type="Script" path="res://addons/SignalVisualizer/Visualizer/signal_visualizer_dock.gd" id="1_akar5"]
[ext_resource type="Script" uid="uid://d1gmm2inpfg81" path="res://addons/SignalVisualizer/Visualizer/signal_visualizer_dock.gd" id="1_akar5"]
[ext_resource type="Texture2D" uid="uid://bmnff63evbdhv" path="res://addons/SignalVisualizer/Clear.svg" id="2_m8bsv"]
[ext_resource type="Texture2D" uid="uid://bxj8ep08wbnm6" path="res://addons/SignalVisualizer/GraphEdit.svg" id="3_dtmqs"]

View file

@ -0,0 +1 @@
uid://oivs1f4eg0jq

BIN
assets/audio/jump.wav Normal file

Binary file not shown.

View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://b4c27tbewj1f1"
path="res://.godot/imported/jump.wav-7ea4d93114fa52c0b9979f6b2117f13f.sample"
[deps]
source_file="res://assets/audio/jump.wav"
dest_files=["res://.godot/imported/jump.wav-7ea4d93114fa52c0b9979f6b2117f13f.sample"]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_begin=0
edit/loop_end=-1
compress/mode=2

BIN
assets/audio/pickupCoin.wav Normal file

Binary file not shown.

View file

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://87evhvo7k714"
path="res://.godot/imported/pickupCoin.wav-3fad7e3252952e133b9b6b7de7527784.sample"
[deps]
source_file="res://assets/audio/pickupCoin.wav"
dest_files=["res://.godot/imported/pickupCoin.wav-3fad7e3252952e133b9b6b7de7527784.sample"]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_begin=0
edit/loop_end=-1
compress/mode=2

1
code/GUI/gui.gd.uid Normal file
View file

@ -0,0 +1 @@
uid://bfmqgomyfwtw8

View file

@ -0,0 +1 @@
uid://dwecmnn1xexoi

View file

@ -0,0 +1 @@
uid://8e7haglw0p3s

View file

@ -0,0 +1 @@
uid://dwwsxv4aosncr

View file

@ -1,4 +1,13 @@
{
"hiscore":0,
"coins":0
"GAME":
{
"hiscore":0,
"coins":0
},
"SETTINGS":
{
"duck_color":0.166666667,
"sounds":true,
"volume":100
}
}

View file

@ -11,14 +11,7 @@ var score = 0
var active_biom
var gamerunning = false
var hiscore:int
var coins:int
func _ready() -> void:
var save = load_save()
hiscore = save["hiscore"]
coins = save["hiscore"]
var cached_save
func reset_game():
speed = 100
@ -26,12 +19,16 @@ func reset_game():
active_biom = "n"
gamerunning = false
_ready()
$"/root/Transition".fade_out()
await $"/root/Transition".finish
get_tree().reload_current_scene()
var data : FileAccess
func load_save() -> Dictionary:
if cached_save is Dictionary:
return cached_save
# wenn kein save vorhanden ist, erstelle eins
if (not FileAccess.file_exists("user://save.json")) or (FileAccess.open("user://save.json", FileAccess.READ_WRITE).get_as_text() == ""):
init_save()
@ -52,7 +49,8 @@ func write_save():
sdata = FileAccess.open("user://save.json",FileAccess.WRITE)
var content = JSON.stringify(
{
"hiscore":$/root/Game/Gui/ScoreContainer.get_score()
"hiscore":$/root/Game/Gui/ScoreContainer.get_score(),
"color":$/root/Game/Screen/Duck.get_duck_color()
}
)
print("saved: ",content)

1
code/global.gd.uid Normal file
View file

@ -0,0 +1 @@
uid://hcjdxggtwwi4

View file

@ -2,4 +2,4 @@ extends Label
func _ready() -> void:
text = str($"/root/Global".hiscore)
text = str($"/root/Global".load_save()["GAME"]["hiscore"])

1
code/hiscore.gd.uid Normal file
View file

@ -0,0 +1 @@
uid://c2f0btfnuo1jl

View file

@ -1,7 +1,7 @@
extends Node
func _ready() -> void:
$Fade/Animation.play_backwards("fade")
$"/root/Transition".fade_in()
$Screen/Background/Floor/EasterEggFixCollision.disabled = false
$Gui/HiscoreContainer.show()
%ScoreContainer.hide()

1
code/main.gd.uid Normal file
View file

@ -0,0 +1 @@
uid://bcdy6xrrocsc5

1
code/score.gd.uid Normal file
View file

@ -0,0 +1 @@
uid://d23uwbb8qnw5i

1
code/screen.gd.uid Normal file
View file

@ -0,0 +1 @@
uid://di83qancy7wxh

View file

@ -13,7 +13,7 @@ config_version=5
config/name="DuckRun"
config/version="2.3.0"
run/main_scene="res://scenes/Main.tscn"
config/features=PackedStringArray("4.3")
config/features=PackedStringArray("4.4")
boot_splash/image="res://icon.png"
config/icon="res://icon.png"
@ -21,6 +21,7 @@ config/icon="res://icon.png"
Global="*res://code/global.gd"
Signal_Debugger="*res://addons/SignalVisualizer/Debugger/SignalDebugger.gd"
Transition="*res://scenes/Globals/transition/transition.tscn"
[display]

View file

@ -9,7 +9,8 @@ var state = "main-menu"
func _ready() -> void:
%Skin.change_to(0)
$EnteConstantSprite/EnteColormask.modulate = Color.from_hsv(0.166666667,1,1)
func die():
print("die")
gameover.emit()
@ -26,6 +27,7 @@ func _physics_process(delta: float) -> void:
if Input.is_action_pressed("jump") and is_on_floor() and alive and $"/root/Global".gamerunning:
velocity.y = JUMP_VELOCITY
$Jump.play()
move_and_slide()
func _process(_delta: float) -> void:
@ -48,9 +50,12 @@ func _process(_delta: float) -> void:
func _color_slider_changed(value) -> void:
$EnteConstantSprite/EnteColormask.modulate.h = $"../../Gui/Settings/ColorSlider".value*0.01
$EnteConstantSprite/EnteColormask.modulate.h = value*0.01
func _on_ente_sprite_frame_changed() -> void:
$EnteConstantSprite/EnteColormask.frame = $EnteConstantSprite.frame
$EnteConstantSprite/Skin.frame = $EnteConstantSprite.frame
func get_duck_color():
return $EnteConstantSprite/EnteColormask.modulate.h

1
scenes/Duck/Duck.gd.uid Normal file
View file

@ -0,0 +1 @@
uid://dbpbkgrhkhwxu

View file

@ -1,10 +1,11 @@
[gd_scene load_steps=14 format=3 uid="uid://8v5mbbnddorh"]
[gd_scene load_steps=15 format=3 uid="uid://8v5mbbnddorh"]
[ext_resource type="Texture2D" uid="uid://dc6grg2oaq3a6" path="res://scenes/Duck/ente.png" id="1"]
[ext_resource type="Script" path="res://scenes/Duck/Duck.gd" id="1_pvotk"]
[ext_resource type="Script" uid="uid://dbpbkgrhkhwxu" path="res://scenes/Duck/Duck.gd" id="1_pvotk"]
[ext_resource type="Texture2D" uid="uid://dsifqpp5l00cr" path="res://scenes/Duck/ente_colormask.png" id="3_a4v8w"]
[ext_resource type="Texture2D" uid="uid://c1mq2xs0uuoxu" path="res://scenes/Duck/customs/1.png" id="4_acy8u"]
[ext_resource type="Script" path="res://scenes/Duck/skin.gd" id="4_gc1nf"]
[ext_resource type="Script" uid="uid://b5yxkmigak8jm" path="res://scenes/Duck/skin.gd" id="4_gc1nf"]
[ext_resource type="AudioStream" uid="uid://b4c27tbewj1f1" path="res://assets/audio/jump.wav" id="6_etett"]
[sub_resource type="Animation" id="5"]
length = 0.001
@ -90,11 +91,11 @@ tracks/0/keys = {
[sub_resource type="AnimationLibrary" id="AnimationLibrary_rcmnp"]
_data = {
"RESET": SubResource("5"),
"die": SubResource("6"),
"fly": SubResource("7"),
"idle": SubResource("2"),
"walk": SubResource("3")
&"RESET": SubResource("5"),
&"die": SubResource("6"),
&"fly": SubResource("7"),
&"idle": SubResource("2"),
&"walk": SubResource("3")
}
[sub_resource type="CircleShape2D" id="CircleShape2D_1551i"]
@ -110,7 +111,7 @@ script = ExtResource("1_pvotk")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
root_node = NodePath("../hitbox")
libraries = {
"": SubResource("AnimationLibrary_rcmnp")
&"": SubResource("AnimationLibrary_rcmnp")
}
[node name="EnteConstantSprite" type="Sprite2D" parent="."]
@ -123,7 +124,7 @@ vframes = 2
frame = 4
[node name="EnteColormask" type="Sprite2D" parent="EnteConstantSprite"]
modulate = Color(1, 1, 0, 1)
modulate = Color(0, 1, 0.0999999, 1)
texture = ExtResource("3_a4v8w")
centered = false
hframes = 3
@ -152,5 +153,9 @@ position = Vector2(-13, -4)
shape = SubResource("CapsuleShape2D_46c8m")
debug_color = Color(0.906661, 0.254677, 0.42413, 0.42)
[node name="Jump" type="AudioStreamPlayer" parent="."]
stream = ExtResource("6_etett")
bus = &"Sounds"
[connection signal="frame_changed" from="EnteConstantSprite" to="." method="_on_ente_sprite_frame_changed"]
[connection signal="area_entered" from="hitbox" to="." method="_collide_with_hindernis"]

1
scenes/Duck/skin.gd.uid Normal file
View file

@ -0,0 +1 @@
uid://b5yxkmigak8jm

View file

@ -0,0 +1,15 @@
extends Control
signal finish
func _ready() -> void:
$AP.play("fade_in")
func fade_in():
$AP.play("fade_in")
func fade_out():
$AP.play("fade_out")
func _on_ap_animation_finished(anim_name: StringName) -> void:
finish.emit()

View file

@ -0,0 +1 @@
uid://dgqv31j2yg04w

View file

@ -0,0 +1,122 @@
[gd_scene load_steps=6 format=3 uid="uid://cfgpaphjydblv"]
[ext_resource type="Script" uid="uid://dgqv31j2yg04w" path="res://scenes/Globals/transition/transition.gd" id="1_giep5"]
[sub_resource type="Animation" id="Animation_giep5"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(0.82, 0.967, 1, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[sub_resource type="Animation" id="Animation_ax3ts"]
resource_name = "fade_in"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0, 0, 0, 1), Color(0.82, 0.967, 1, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [true, false]
}
[sub_resource type="Animation" id="Animation_ujkc3"]
resource_name = "fade_out"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0.82, 0.967, 1, 0), Color(0, 0, 0, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_5csf1"]
_data = {
&"RESET": SubResource("Animation_giep5"),
&"fade_in": SubResource("Animation_ax3ts"),
&"fade_out": SubResource("Animation_ujkc3")
}
[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_giep5")
[node name="rect" type="ColorRect" parent="."]
visible = false
z_index = 10
z_as_relative = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.82, 0.967, 1, 0)
[node name="AP" type="AnimationPlayer" parent="."]
root_node = NodePath("../rect")
libraries = {
&"": SubResource("AnimationLibrary_5csf1")
}
[connection signal="animation_finished" from="AP" to="." method="_on_ap_animation_finished"]

View file

@ -1,20 +1,20 @@
[gd_scene load_steps=51 format=3 uid="uid://bb5qp5868y5i"]
[gd_scene load_steps=47 format=3 uid="uid://bb5qp5868y5i"]
[ext_resource type="Script" path="res://code/main.gd" id="1_ar2ah"]
[ext_resource type="Script" uid="uid://bcdy6xrrocsc5" path="res://code/main.gd" id="1_ar2ah"]
[ext_resource type="PackedScene" uid="uid://8v5mbbnddorh" path="res://scenes/Duck/Duck.tscn" id="2"]
[ext_resource type="Script" path="res://code/screen.gd" id="2_cix0i"]
[ext_resource type="Script" uid="uid://di83qancy7wxh" path="res://code/screen.gd" id="2_cix0i"]
[ext_resource type="Texture2D" uid="uid://dgfvf2ta4lc4e" path="res://assets/stars.png" id="2_ohf2r"]
[ext_resource type="Script" path="res://scenes/ground/spawner/ground_spawner.gd" id="3_va7mo"]
[ext_resource type="Script" path="res://scenes/hurdle/Spawner/spawner.gd" id="4_oc6me"]
[ext_resource type="Script" uid="uid://dx2phoe5q5bsc" path="res://scenes/ground/spawner/ground_spawner.gd" id="3_va7mo"]
[ext_resource type="Script" uid="uid://dm4ttgkak3ow6" path="res://scenes/hurdle/Spawner/spawner.gd" id="4_oc6me"]
[ext_resource type="PackedScene" uid="uid://cjq8kb0mhjh8r" path="res://scenes/ground/ground.tscn" id="4_tt0te"]
[ext_resource type="Script" path="res://scenes/coin/spawner/coin_spawner.gd" id="8_7ggb5"]
[ext_resource type="Script" path="res://scenes/Wolke/Spawner/wolken_spawner.gd" id="11_x2wm3"]
[ext_resource type="Script" path="res://scenes/easteregg/Spawner/easteregg_spawner.gd" id="12_hl8it"]
[ext_resource type="Script" uid="uid://gy5sjfc1qs66" path="res://scenes/coin/spawner/coin_spawner.gd" id="8_7ggb5"]
[ext_resource type="Script" uid="uid://4y20aqob85y3" path="res://scenes/Wolke/Spawner/wolken_spawner.gd" id="11_x2wm3"]
[ext_resource type="Script" uid="uid://yrwd4mib3y1x" path="res://scenes/easteregg/Spawner/easteregg_spawner.gd" id="12_hl8it"]
[ext_resource type="FontFile" uid="uid://ddvhypxkj8a1b" path="res://Megamichisfont-small.otf" id="13_666gv"]
[ext_resource type="Texture2D" uid="uid://cfmflpkl335e3" path="res://assets/GUI/schild.png" id="13_yjq5c"]
[ext_resource type="Script" path="res://code/hiscore.gd" id="14_ah063"]
[ext_resource type="Script" uid="uid://c2f0btfnuo1jl" path="res://code/hiscore.gd" id="14_ah063"]
[ext_resource type="Texture2D" uid="uid://fon35dtl2fdd" path="res://assets/GUI/buttons fucused/back button f.png" id="15_2rflk"]
[ext_resource type="Script" path="res://code/GUI/settingsschild.gd" id="16_4ssry"]
[ext_resource type="Script" uid="uid://8e7haglw0p3s" path="res://code/GUI/settingsschild.gd" id="16_4ssry"]
[ext_resource type="Texture2D" uid="uid://nvn254p6tk8j" path="res://assets/GUI/back button.png" id="17_3kek5"]
[ext_resource type="Texture2D" uid="uid://bkcpp1iryq4hc" path="res://assets/GUI/theme_slider/slider f.png" id="17_f78xf"]
[ext_resource type="Texture2D" uid="uid://botwq4rflsfl3" path="res://assets/GUI/buttons fucused/sound button f.png" id="18_ahbxs"]
@ -26,63 +26,17 @@
[ext_resource type="Texture2D" uid="uid://2mq6ck123lm" path="res://assets/GUI/buttons fucused/start button f.png" id="20_i5ekl"]
[ext_resource type="AudioStream" uid="uid://ctt1kb2a66yyl" path="res://assets/audio/boing.mp3" id="21_ch5yv"]
[ext_resource type="AudioStream" uid="uid://bktthpfrs0118" path="res://assets/audio/gui-out.ogg" id="21_frskh"]
[ext_resource type="Script" path="res://code/GUI/startschild.gd" id="21_owbcl"]
[ext_resource type="Script" path="res://code/GUI/restartschild.gd" id="21_ytgei"]
[ext_resource type="Script" uid="uid://dwwsxv4aosncr" path="res://code/GUI/startschild.gd" id="21_owbcl"]
[ext_resource type="Script" uid="uid://dwecmnn1xexoi" path="res://code/GUI/restartschild.gd" id="21_ytgei"]
[ext_resource type="AudioStream" uid="uid://c4wrtvywao1jn" path="res://assets/audio/duckrun.wav" id="22_ijpe0"]
[ext_resource type="Texture2D" uid="uid://d2i2d0rmdtklc" path="res://assets/GUI/start button.png" id="22_x686b"]
[ext_resource type="Texture2D" uid="uid://dqvnnd3o1eele" path="res://assets/GUI/settings button.png" id="23_on2gf"]
[ext_resource type="Texture2D" uid="uid://bj7bgtdcbdald" path="res://assets/GUI/logo.png" id="24_8b8my"]
[ext_resource type="Script" path="res://code/score.gd" id="25_2prek"]
[ext_resource type="Script" uid="uid://d23uwbb8qnw5i" path="res://code/score.gd" id="25_2prek"]
[ext_resource type="Texture2D" uid="uid://c66oktmsmdu0f" path="res://assets/GUI/buttons fucused/settings button f.png" id="25_bjwbg"]
[ext_resource type="PackedScene" uid="uid://dm307sj4nenjt" path="res://scenes/ui/animation.tscn" id="30_30gpa"]
[ext_resource type="PackedScene" uid="uid://yiu5npbi008a" path="res://scenes/ui/animation_logo.tscn" id="31_ugbfy"]
[sub_resource type="GDScript" id="GDScript_xq7jv"]
script/source = "extends ColorRect
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
visible = true
"
[sub_resource type="Animation" id="Animation_0cnuw"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 0)]
}
[sub_resource type="Animation" id="Animation_tt0ob"]
resource_name = "fade"
length = 0.3
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.3),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_qrakk"]
_data = {
"RESET": SubResource("Animation_0cnuw"),
"fade": SubResource("Animation_tt0ob")
}
[sub_resource type="GDScript" id="GDScript_rkc4w"]
script/source = "extends Timer
@ -112,37 +66,25 @@ length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../Fade:modulate")
tracks/0/path = NodePath("BackgroundColor:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 0)]
"values": [Color(0.160784, 0.670588, 0.8, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("BackgroundColor:color")
tracks/1/path = NodePath(".:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(0.160784, 0.670588, 0.8, 1)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath(".:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
@ -175,8 +117,8 @@ tracks/1/keys = {
[sub_resource type="AnimationLibrary" id="AnimationLibrary_t75gq"]
_data = {
"RESET": SubResource("Animation_plyvn"),
"change_time": SubResource("Animation_8pa57")
&"RESET": SubResource("Animation_plyvn"),
&"change_time": SubResource("Animation_8pa57")
}
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_jin1w"]
@ -205,23 +147,6 @@ HSlider/styles/slider = SubResource("StyleBoxFlat_xb3tf")
[node name="Game" type="Node"]
script = ExtResource("1_ar2ah")
[node name="Fade" type="ColorRect" parent="."]
modulate = Color(1, 1, 1, 0)
z_index = 1
z_as_relative = false
offset_top = -9.0
offset_right = 485.0
offset_bottom = 300.0
mouse_filter = 2
color = Color(0, 0, 0, 1)
script = SubResource("GDScript_xq7jv")
metadata/_edit_lock_ = true
[node name="Animation" type="AnimationPlayer" parent="Fade"]
libraries = {
"": SubResource("AnimationLibrary_qrakk")
}
[node name="Screen" type="Node2D" parent="."]
script = ExtResource("2_cix0i")
@ -293,7 +218,7 @@ wait_time = 1.6
[node name="AnimationPlayer" type="AnimationPlayer" parent="Screen"]
libraries = {
"": SubResource("AnimationLibrary_t75gq")
&"": SubResource("AnimationLibrary_t75gq")
}
[node name="Gui" type="Control" parent="."]

View file

@ -0,0 +1 @@
uid://4y20aqob85y3

View file

@ -0,0 +1 @@
uid://dn2y2m0xxeeyg

View file

@ -1,7 +1,7 @@
[gd_scene load_steps=3 format=3 uid="uid://bky81sd1m7fm7"]
[ext_resource type="Texture2D" uid="uid://b03sbc7akorka" path="res://scenes/Wolke/wolken.png" id="1_c6lhp"]
[ext_resource type="Script" path="res://scenes/Wolke/wolke.gd" id="2_tsh5n"]
[ext_resource type="Script" uid="uid://dn2y2m0xxeeyg" path="res://scenes/Wolke/wolke.gd" id="2_tsh5n"]
[node name="Wolke" type="Sprite2D"]
texture_filter = 1

1
scenes/coin/coin.gd.uid Normal file
View file

@ -0,0 +1 @@
uid://cl2yy80vmkl2a

View file

@ -1,7 +1,8 @@
[gd_scene load_steps=13 format=3 uid="uid://b0au341yw6g52"]
[gd_scene load_steps=14 format=3 uid="uid://b0au341yw6g52"]
[ext_resource type="Texture2D" uid="uid://dtn6mbn4q0plm" path="res://scenes/coin/coin.png" id="1_4vkkb"]
[ext_resource type="Script" path="res://scenes/coin/coin.gd" id="1_xp82m"]
[ext_resource type="Script" uid="uid://cl2yy80vmkl2a" path="res://scenes/coin/coin.gd" id="1_xp82m"]
[ext_resource type="AudioStream" uid="uid://87evhvo7k714" path="res://assets/audio/pickupCoin.wav" id="3_5vuvm"]
[sub_resource type="Animation" id="Animation_jfpvc"]
length = 0.001
@ -53,6 +54,18 @@ tracks/3/keys = {
"update": 0,
"values": [Vector2(0, 0)]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("PickupCoin:playing")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[sub_resource type="Animation" id="Animation_6xqsk"]
resource_name = "explode"
@ -94,6 +107,18 @@ tracks/2/keys = {
"update": 0,
"values": [Vector2(0, 0), Vector2(0, -12)]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("PickupCoin:playing")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
[sub_resource type="Animation" id="Animation_64j7p"]
resource_name = "rotate"
@ -113,9 +138,9 @@ tracks/0/keys = {
[sub_resource type="AnimationLibrary" id="AnimationLibrary_om3ic"]
_data = {
"RESET": SubResource("Animation_jfpvc"),
"explode": SubResource("Animation_6xqsk"),
"rotate": SubResource("Animation_64j7p")
&"RESET": SubResource("Animation_jfpvc"),
&"explode": SubResource("Animation_6xqsk"),
&"rotate": SubResource("Animation_64j7p")
}
[sub_resource type="CircleShape2D" id="CircleShape2D_qamc5"]
@ -156,7 +181,7 @@ metadata/_edit_lock_ = true
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_om3ic")
&"": SubResource("AnimationLibrary_om3ic")
}
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
@ -165,10 +190,13 @@ shape = SubResource("CircleShape2D_qamc5")
[node name="GPUParticles2D" type="GPUParticles2D" parent="."]
visible = false
emitting = false
amount = 9
process_material = SubResource("ParticleProcessMaterial_bv68t")
lifetime = 0.5
explosiveness = 1.0
process_material = SubResource("ParticleProcessMaterial_bv68t")
[node name="PickupCoin" type="AudioStreamPlayer" parent="."]
stream = ExtResource("3_5vuvm")
bus = &"Sounds"
[connection signal="body_entered" from="." to="." method="_on_body_entered"]

View file

@ -0,0 +1 @@
uid://gy5sjfc1qs66

View file

@ -0,0 +1 @@
uid://yrwd4mib3y1x

View file

@ -0,0 +1 @@
uid://cybws4xgdh504

View file

@ -1,6 +1,6 @@
[gd_scene load_steps=4 format=3 uid="uid://co76l7v0x2t8t"]
[ext_resource type="Script" path="res://scenes/easteregg/easteregg.gd" id="1_3dnpr"]
[ext_resource type="Script" uid="uid://cybws4xgdh504" path="res://scenes/easteregg/easteregg.gd" id="1_3dnpr"]
[ext_resource type="Texture2D" uid="uid://bp48x77dixrme" path="res://scenes/hurdle/hurdle.png" id="1_al4up"]
[sub_resource type="CircleShape2D" id="CircleShape2D_ruej1"]

View file

@ -0,0 +1 @@
uid://dhpeuaef7rfns

View file

@ -1,7 +1,7 @@
[gd_scene load_steps=3 format=3 uid="uid://cjq8kb0mhjh8r"]
[ext_resource type="Texture2D" uid="uid://bg78j6xxw3ck4" path="res://assets/Ground/n.png" id="1_ocn3x"]
[ext_resource type="Script" path="res://scenes/ground/ground.gd" id="2_eg3te"]
[ext_resource type="Script" uid="uid://dhpeuaef7rfns" path="res://scenes/ground/ground.gd" id="2_eg3te"]
[node name="Ground" type="Sprite2D"]
texture_filter = 1

View file

@ -0,0 +1 @@
uid://dx2phoe5q5bsc

View file

@ -0,0 +1 @@
uid://dm4ttgkak3ow6

View file

@ -0,0 +1 @@
uid://c2fbplv3la0u6

View file

@ -1,6 +1,6 @@
[gd_scene load_steps=5 format=3 uid="uid://cp43g3amm8a6f"]
[ext_resource type="Script" path="res://scenes/hurdle/hurdle.gd" id="1_e0hqe"]
[ext_resource type="Script" uid="uid://c2fbplv3la0u6" path="res://scenes/hurdle/hurdle.gd" id="1_e0hqe"]
[ext_resource type="Texture2D" uid="uid://bp48x77dixrme" path="res://scenes/hurdle/hurdle.png" id="2_thg8w"]
[sub_resource type="CircleShape2D" id="CircleShape2D_orpyb"]

View file

@ -0,0 +1 @@
uid://bxi2sondn0wag

View file

@ -1,6 +1,6 @@
[gd_scene load_steps=5 format=3 uid="uid://dm307sj4nenjt"]
[ext_resource type="Script" path="res://scenes/ui/animation.gd" id="1_43757"]
[ext_resource type="Script" uid="uid://bxi2sondn0wag" path="res://scenes/ui/animation.gd" id="1_43757"]
[sub_resource type="Animation" id="Animation_hmob6"]
length = 0.001
@ -22,8 +22,8 @@ tracks/0/keys = {
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ur3ij"]
_data = {
"RESET": SubResource("Animation_hmob6"),
"out-in": SubResource("Animation_wgvxk")
&"RESET": SubResource("Animation_hmob6"),
&"out-in": SubResource("Animation_wgvxk")
}
[node name="AnimationPlayer" type="AnimationPlayer"]

View file

@ -1,11 +1,11 @@
[gd_scene load_steps=4 format=3 uid="uid://yiu5npbi008a"]
[ext_resource type="Animation" uid="uid://dvpvbkqok645q" path="res://scenes/ui/out-in.res" id="1_mcm38"]
[ext_resource type="Script" path="res://scenes/ui/animation.gd" id="1_urjt6"]
[ext_resource type="Script" uid="uid://bxi2sondn0wag" path="res://scenes/ui/animation.gd" id="1_urjt6"]
[sub_resource type="AnimationLibrary" id="AnimationLibrary_u5u2i"]
_data = {
"out-in": ExtResource("1_mcm38")
&"out-in": ExtResource("1_mcm38")
}
[node name="AnimationPlayer" type="AnimationPlayer"]

1
schild.gd.uid Normal file
View file

@ -0,0 +1 @@
uid://bw0jkremyh5sj