Skip to content

Commit

Permalink
Merge pull request #286 from GTcreyon/fix-4-1-ld-bugs
Browse files Browse the repository at this point in the history
Fix Level Designer bugs
  • Loading branch information
GTcreyon authored Apr 1, 2024
2 parents 0befeed + b858bd8 commit 5dc6cc6
Show file tree
Hide file tree
Showing 41 changed files with 1,331 additions and 929 deletions.
2 changes: 1 addition & 1 deletion classes/entity/entity.gd
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func _on_WaterCheck_area_exited(_area):
func set_disabled(val):
disabled = val
_preempt_all_node_readies()
set_collision_layer_value(0, 0 if val else 1)
set_collision_layer_value(3, 0 if val else 1)


# The following functions deal with child nodes that may or may not exist.
Expand Down
2 changes: 1 addition & 1 deletion classes/entity/passive/goonie/goonie.gd
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func physics_step() -> void:
func set_disabled(val) -> void:
disabled = val
await self.ready
set_collision_layer_value(0, 0 if val else 1)
set_collision_layer_value(1, 0 if val else 1)
safety_net.monitoring = !val
ride_area.monitoring = !val
if disabled:
Expand Down
2 changes: 1 addition & 1 deletion classes/interactable/pipe/pipe.gd
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ func _end_animation(_player):

func set_disabled(val):
super.set_disabled(val)
$StaticBody2D.set_collision_layer_value(0, 0 if val else 1)
$StaticBody2D.set_collision_layer_value(1, 0 if val else 1)
5 changes: 3 additions & 2 deletions classes/interactable/sign/sign.tres
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

[resource]
shader = ExtResource("1_1ac2n")
shader_parameter/width = 2.0
shader_parameter/recenter = false
shader_parameter/width = 2
shader_parameter/radial = false
shader_parameter/outline_color = Color(1, 1, 1, 1)
shader_parameter/cel_count = Vector2(1, 1)
shader_parameter/sprite_offset = Vector2(0, 0)
97 changes: 0 additions & 97 deletions classes/ld_item/ld_item.gd

This file was deleted.

2 changes: 1 addition & 1 deletion classes/pickup/fludd_box/fludd_box.gd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class_name FluddBox
extends Area2D
# Box that drops a fludd nozzle when stomped.

@export var nozzle: FluddPickup.Nozzles
@export var nozzle: FluddPickup.Nozzles = FluddPickup.Nozzles.HOVER

var PICKUP_PREFABS = [
preload("./fludd_pickup_hover.tscn"),
Expand Down
16 changes: 13 additions & 3 deletions classes/pickup/shine/shine.tscn
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
[gd_scene load_steps=18 format=3 uid="uid://cbo20l1o5giao"]
[gd_scene load_steps=19 format=3 uid="uid://cbo20l1o5giao"]

[ext_resource type="Texture2D" uid="uid://dtydgkpoe56rn" path="res://classes/pickup/shine/shine.png" id="1"]
[ext_resource type="Script" path="res://classes/pickup/shine/shine.gd" id="2"]
[ext_resource type="Material" uid="uid://ckiokx8dmutdj" path="res://shaders/glow.tres" id="4"]
[ext_resource type="Shader" path="res://shaders/glow.gdshader" id="2_sdcq1"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_ig4yr"]
resource_local_to_scene = true
resource_name = "shine_glow"
shader = ExtResource("2_sdcq1")
shader_parameter/width = 1
shader_parameter/radial = false
shader_parameter/outline_color = Color(1, 1, 1, 1)
shader_parameter/cel_count = Vector2(12, 1)
shader_parameter/sprite_offset = Vector2(0, -1.5)

[sub_resource type="AtlasTexture" id="1"]
atlas = ExtResource("1")
Expand Down Expand Up @@ -107,7 +117,7 @@ monitorable = false
script = ExtResource("2")

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
material = ExtResource("4")
material = SubResource("ShaderMaterial_ig4yr")
sprite_frames = SubResource("13")
offset = Vector2(0, -1.5)

Expand Down
Loading

0 comments on commit 5dc6cc6

Please sign in to comment.