This commit is contained in:
Debugman committed 2026-10-17 21:03:13 -05:00
1 parent e39b9eaeb7
commit 96a3dd44e3
11 files changed
+112 -13

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 B

+43
View File
@@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://m5djssna67e1"
path="res://.godot/imported/frame3.png-5f06f474fd9005328c0dc7516fb0f5cf.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://art/player/crouch/frame3.png"
dest_files=["res://.godot/imported/frame3.png-5f06f474fd9005328c0dc7516fb0f5cf.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/high_quality_mode=0
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
mipmaps/preserve_alpha_test_coverage=false
mipmaps/alpha_test_threshold=0.5
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
+11
View File
@@ -0,0 +1,11 @@
extends AudioStreamPlayer2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
#AudioServer.
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
+1
View File
@@ -0,0 +1 @@
uid://544kxhmunfcp
+9
View File
@@ -0,0 +1,9 @@
extends RigidBody2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
add_to_group("Hidden")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
+1
View File
@@ -0,0 +1 @@
uid://dcesonmhay5vo
+31
View File
@@ -0,0 +1,31 @@
[gd_scene format=3 uid="uid://b5ssjxl1l3fx0"]
[ext_resource type="Script" uid="uid://dcesonmhay5vo" path="res://hidden_vertical_long_block.gd" id="1_tmhet"]
[ext_resource type="PackedScene" uid="uid://ckqable762x8v" path="res://block.tscn" id="2_667v4"]
[node name="HiddenVerticalLongBlock" type="RigidBody2D" unique_id=925152188]
visible = false
rotation = 1.5707964
gravity_scale = 0.0
freeze = true
script = ExtResource("1_tmhet")
[node name="Block" parent="." unique_id=1409784601 instance=ExtResource("2_667v4")]
[node name="Block2" parent="." unique_id=54235726 instance=ExtResource("2_667v4")]
position = Vector2(15.999999, -9.536743e-07)
[node name="Block3" parent="." unique_id=474997430 instance=ExtResource("2_667v4")]
position = Vector2(-15, 0)
[node name="Block4" parent="." unique_id=1125897933 instance=ExtResource("2_667v4")]
position = Vector2(32, -1.9073486e-06)
[node name="Block5" parent="." unique_id=1104682129 instance=ExtResource("2_667v4")]
position = Vector2(-31, 0)
[node name="Block6" parent="." unique_id=200247655 instance=ExtResource("2_667v4")]
position = Vector2(48, -1.9073486e-06)
[node name="Block7" parent="." unique_id=519163182 instance=ExtResource("2_667v4")]
position = Vector2(-47, 3.8146973e-06)
+4 -3
View File
@@ -7,6 +7,7 @@ const FRICTION = 100
const GRAVITY_MULT = 0.8 const GRAVITY_MULT = 0.8
const JUMP_VELOCITY = -410.0 const JUMP_VELOCITY = -410.0
const DASH_LENGTH = 0.2 const DASH_LENGTH = 0.2
const BACKGROUND_COLOR = Color.SANDY_BROWN
var fall_timer = 0.0 var fall_timer = 0.0
var teleport_cooldown = 0 var teleport_cooldown = 0
@@ -42,13 +43,13 @@ func on_teleport():
await get_tree().create_timer(1).timeout await get_tree().create_timer(1).timeout
teleport_cooldown = 0 teleport_cooldown = 0
func spawn_ghost(position): func spawn_ghost(ghost_position):
var ghost = preload("res://ghost.tscn") var ghost = preload("res://ghost.tscn")
ghost = ghost.instantiate() ghost = ghost.instantiate()
get_parent().add_child(ghost) get_parent().add_child(ghost)
print(ghost) print(ghost)
print(ghost.position) print(ghost.position)
ghost.position = position ghost.position = ghost_position
func on_death(instant = false, player_position = position): func on_death(instant = false, player_position = position):
if !instant: if !instant:
@@ -127,7 +128,7 @@ func _process(delta: float) -> void:
velocity.x = move_toward(velocity.x, 0, FRICTION) velocity.x = move_toward(velocity.x, 0, FRICTION)
$Sprite2D.play("idle") $Sprite2D.play("idle")
$Sprite2D/HatSprite.play("idle") $Sprite2D/HatSprite.play("idle")
$Parallax2D/Sprite2D.modulate = Color.CORAL $Parallax2D/Sprite2D.modulate = BACKGROUND_COLOR
for hidden_object in get_tree().get_nodes_in_group("Hidden"): for hidden_object in get_tree().get_nodes_in_group("Hidden"):
hidden_object.hide() hidden_object.hide()
+11 -5
View File
@@ -3,6 +3,7 @@
[ext_resource type="Script" uid="uid://cojhnj15psd2x" path="res://player_2d.gd" id="1_sy00s"] [ext_resource type="Script" uid="uid://cojhnj15psd2x" path="res://player_2d.gd" id="1_sy00s"]
[ext_resource type="Shader" uid="uid://mmf86jusrkrr" path="res://shaders/warp_shader.gdshader" id="3_gt2ls"] [ext_resource type="Shader" uid="uid://mmf86jusrkrr" path="res://shaders/warp_shader.gdshader" id="3_gt2ls"]
[ext_resource type="Texture2D" uid="uid://dpdxs6gjmexgh" path="res://art/background.png" id="3_p3026"] [ext_resource type="Texture2D" uid="uid://dpdxs6gjmexgh" path="res://art/background.png" id="3_p3026"]
[ext_resource type="Script" uid="uid://544kxhmunfcp" path="res://background_music.gd" id="3_sxtm6"]
[ext_resource type="Texture2D" uid="uid://biv3f67rqumak" path="res://art/level_start.png" id="4_nj6as"] [ext_resource type="Texture2D" uid="uid://biv3f67rqumak" path="res://art/level_start.png" id="4_nj6as"]
[ext_resource type="Script" uid="uid://3bqq3mfbby2c" path="res://warp_shader.gd" id="4_pmt5n"] [ext_resource type="Script" uid="uid://3bqq3mfbby2c" path="res://warp_shader.gd" id="4_pmt5n"]
[ext_resource type="Texture2D" uid="uid://ddhhtwgtowokp" path="res://art/player/crouch/frame1.png" id="6_3prq1"] [ext_resource type="Texture2D" uid="uid://ddhhtwgtowokp" path="res://art/player/crouch/frame1.png" id="6_3prq1"]
@@ -15,6 +16,7 @@
[ext_resource type="Texture2D" uid="uid://du5i0tg6u1lal" path="res://art/player/crystal3.png" id="8_ukfft"] [ext_resource type="Texture2D" uid="uid://du5i0tg6u1lal" path="res://art/player/crystal3.png" id="8_ukfft"]
[ext_resource type="Texture2D" uid="uid://lmje8plw76e1" path="res://art/player/idle/frame2.png" id="9_lu0ka"] [ext_resource type="Texture2D" uid="uid://lmje8plw76e1" path="res://art/player/idle/frame2.png" id="9_lu0ka"]
[ext_resource type="Texture2D" uid="uid://bko8dvawpul3c" path="res://art/player/crystal4.png" id="9_ur4nw"] [ext_resource type="Texture2D" uid="uid://bko8dvawpul3c" path="res://art/player/crystal4.png" id="9_ur4nw"]
[ext_resource type="Texture2D" uid="uid://m5djssna67e1" path="res://art/player/crouch/frame3.png" id="9_w0gjo"]
[ext_resource type="Texture2D" uid="uid://ba4kjeulthw1g" path="res://art/hats/dunce1.png" id="10_5s8kx"] [ext_resource type="Texture2D" uid="uid://ba4kjeulthw1g" path="res://art/hats/dunce1.png" id="10_5s8kx"]
[ext_resource type="Texture2D" uid="uid://cn31x2l44je2t" path="res://art/dash_glow.png" id="10_ur4nw"] [ext_resource type="Texture2D" uid="uid://cn31x2l44je2t" path="res://art/dash_glow.png" id="10_ur4nw"]
[ext_resource type="Texture2D" uid="uid://biscdhn8jh8ha" path="res://art/jump_glow.png" id="11_3lee2"] [ext_resource type="Texture2D" uid="uid://biscdhn8jh8ha" path="res://art/jump_glow.png" id="11_3lee2"]
@@ -43,6 +45,9 @@ animations = [{
}, { }, {
"duration": 1.0, "duration": 1.0,
"texture": ExtResource("7_lu0ka") "texture": ExtResource("7_lu0ka")
}, {
"duration": 1.0,
"texture": ExtResource("9_w0gjo")
}], }],
"loop": 1, "loop": 1,
"name": &"crouch", "name": &"crouch",
@@ -125,6 +130,11 @@ size = Vector2(10, 16)
[node name="Player2D" type="CharacterBody2D" unique_id=889851478] [node name="Player2D" type="CharacterBody2D" unique_id=889851478]
script = ExtResource("1_sy00s") script = ExtResource("1_sy00s")
[node name="BackgroundMusic" type="AudioStreamPlayer2D" parent="." unique_id=299359239]
stream = ExtResource("12_5s8kx")
playback_type = 1
script = ExtResource("3_sxtm6")
[node name="CanvasLayer2" type="CanvasLayer" parent="." unique_id=1854423107] [node name="CanvasLayer2" type="CanvasLayer" parent="." unique_id=1854423107]
[node name="WarpShader" type="MeshInstance2D" parent="CanvasLayer2" unique_id=88397728] [node name="WarpShader" type="MeshInstance2D" parent="CanvasLayer2" unique_id=88397728]
@@ -158,7 +168,7 @@ position = Vector2(0, 2)
sprite_frames = SubResource("SpriteFrames_fvyjh") sprite_frames = SubResource("SpriteFrames_fvyjh")
animation = &"crouch" animation = &"crouch"
autoplay = "idle" autoplay = "idle"
frame_progress = 0.44028828 frame_progress = 0.030440537
[node name="HatSprite" type="AnimatedSprite2D" parent="Sprite2D" unique_id=1954184475] [node name="HatSprite" type="AnimatedSprite2D" parent="Sprite2D" unique_id=1954184475]
visible = false visible = false
@@ -211,7 +221,3 @@ stream = ExtResource("20_1741q")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1294571021] [node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1294571021]
shape = SubResource("RectangleShape2D_fj7yv") shape = SubResource("RectangleShape2D_fj7yv")
[node name="BackgroundMusic" type="AudioStreamPlayer2D" parent="." unique_id=2123463449]
stream = ExtResource("12_5s8kx")
volume_db = -5.0
+1 -4
View File
@@ -1,11 +1,8 @@
extends RigidBody2D extends RigidBody2D
# Called when the node enters the scene tree for the first time. # Called when the node enters the scene tree for the first time.
func _ready() -> void: func _ready() -> void:
add_to_group("Hidden") pass # Replace with function body.
#pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame. # Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void: func _process(delta: float) -> void:
-1
View File
@@ -4,7 +4,6 @@
[ext_resource type="PackedScene" uid="uid://ckqable762x8v" path="res://block.tscn" id="1_noju1"] [ext_resource type="PackedScene" uid="uid://ckqable762x8v" path="res://block.tscn" id="1_noju1"]
[node name="VerticalLongBlock" type="RigidBody2D" unique_id=925152188] [node name="VerticalLongBlock" type="RigidBody2D" unique_id=925152188]
visible = false
rotation = 1.5707964 rotation = 1.5707964
gravity_scale = 0.0 gravity_scale = 0.0
freeze = true freeze = true