Merge remote-tracking branch 'upstream/main'

This commit is contained in:
jdaster64
2025-09-24 13:01:08 -04:00
10 changed files with 5097 additions and 4372 deletions

View File

@@ -1,4 +1,7 @@
{
"properties": {
"primary_layer_size": [512, 512]
},
"animations": {
"default": {
"frames": [[0, 0, 512, 512]],

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -36,7 +36,7 @@ tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 2
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=34 format=3 uid="uid://c3m38c2skawpj"]
[gd_scene load_steps=35 format=3 uid="uid://c3m38c2skawpj"]
[ext_resource type="Script" uid="uid://bfsh8bhcmknkh" path="res://Scripts/Classes/Entities/Enemies/RockyWrench.gd" id="1_pl7bt"]
[ext_resource type="Texture2D" uid="uid://bfora2lrmtyj4" path="res://Assets/Sprites/Enemies/RockyWrench.png" id="2_8y80u"]
@@ -15,6 +15,7 @@
[ext_resource type="Script" uid="uid://bbww34oiexbx2" path="res://Scripts/Classes/Components/ShellDetection.gd" id="10_w66sd"]
[ext_resource type="Script" uid="uid://ba18grqjixded" path="res://Scripts/Classes/Components/ExplosionDetection.gd" id="13_h21ug"]
[ext_resource type="Script" uid="uid://5octqlf4ohel" path="res://Scripts/Classes/Components/ScoreNoteSpawner.gd" id="14_el25t"]
[ext_resource type="Script" uid="uid://cmg61722ktg2m" path="res://Scripts/Classes/Components/BlockBouncingDetection.gd" id="16_q44ss"]
[sub_resource type="AtlasTexture" id="AtlasTexture_nqvoc"]
atlas = ExtResource("2_8y80u")
@@ -391,6 +392,11 @@ script = ExtResource("14_el25t")
add_score = true
metadata/_custom_type_script = "uid://5octqlf4ohel"
[node name="BlockBouncingDetection" type="Node" parent="." node_paths=PackedStringArray("hitbox")]
script = ExtResource("16_q44ss")
hitbox = NodePath("../Sprite/EntityHitbox")
metadata/_custom_type_script = "uid://cmg61722ktg2m"
[connection signal="killed" from="." to="GibSpawner" method="summon_gib"]
[connection signal="player_stomped_on" from="Sprite/StompHitbox/EnemyPlayerDetection" to="." method="on_player_stomped_on"]
[connection signal="invincible_player_hit" from="Sprite/EntityHitbox/EnemyPlayerDetection" to="." method="die_from_object"]
@@ -405,3 +411,4 @@ metadata/_custom_type_script = "uid://5octqlf4ohel"
[connection signal="timeout" from="Timer" to="." method="on_timeout"]
[connection signal="explosion_entered" from="ExplosionDetection" to="." method="die_from_object"]
[connection signal="explosion_entered" from="ExplosionDetection" to="ScoreNoteSpawner" method="spawn_note" binds= [500]]
[connection signal="block_bounced" from="BlockBouncingDetection" to="." method="die_from_object"]

View File

@@ -58,6 +58,7 @@ sprite_frames = SubResource("SpriteFrames_jvnky")
animation = &"Emote"
autoplay = "Emote"
frame_progress = 0.91931444
offset = Vector2(0, 1)
script = ExtResource("3_puq45")
metadata/_custom_type_script = "uid://caq1qiwmy0mox"

View File

@@ -1,6 +1,7 @@
extends PlayerState
func enter(_msg := {}) -> void:
player.can_hurt = false
player.has_jumped = false
player.crouching = false
player.get_node("CameraCenterJoint/RightWall").set_collision_layer_value(1, false)

View File

@@ -118,13 +118,14 @@ func apply_level_data(data := "") -> void:
level.can_backscroll = bool(values[4])
level.vertical_height = -int(values[5])
level.time_limit = int(values[6])
%ThemeTime.selected = values[1]
%LevelMusic.selected = values[2]
%Campaign.selected = values[3]
%BackScroll.set_pressed_no_signal(bool(values[4]))
%HeightLimit.value = values[5]
%TimeLimit.value = values[6]
%SubLevelID.selected = editor.sub_level_id
if is_instance_valid($TileMenu):
%ThemeTime.selected = values[1]
%LevelMusic.selected = values[2]
%Campaign.selected = values[3]
%BackScroll.set_pressed_no_signal(bool(values[4]))
%HeightLimit.value = values[5]
%TimeLimit.value = values[6]
%SubLevelID.selected = editor.sub_level_id
ResourceSetterNew.cache.clear()
Global.level_theme_changed.emit()
@@ -140,12 +141,13 @@ func apply_bg_data(data := "") -> void:
value = (decode_from_base64_2char(i))
else:
value = (base64_charset.find(i))
if SELECTORS[id] is SpinBox:
SELECTORS[id].value = value
elif SELECTORS[id] is Button:
SELECTORS[id].set_pressed_no_signal(bool(value))
else:
SELECTORS[id].selected = value
if is_instance_valid($TileMenu):
if SELECTORS[id] is SpinBox:
SELECTORS[id].value = value
elif SELECTORS[id] is Button:
SELECTORS[id].set_pressed_no_signal(bool(value))
else:
SELECTORS[id].selected = value
level_bg.set_value(value, BG_VALUES[id])
id += 1

View File

@@ -43,6 +43,8 @@ func _ready() -> void:
Global.p_switch_timer = -1
if Checkpoint.passed:
Door.unlocked_doors = Checkpoint.unlocked_doors.duplicate()
else:
Door.unlocked_doors = []
if Global.current_campaign == "SMBANN":
DiscoLevel.reset_values()
DiscoLevel.first_load = true

View File

@@ -39,6 +39,8 @@ func open() -> void:
setup_visuals()
show()
await get_tree().process_frame
if Global.current_game_mode != Global.GameMode.CAMPAIGN:
selected_world = clamp(selected_world, 0, 7)
$%SlotContainer.get_child(selected_world).grab_focus()
active = true