patch iamond glitch

This commit is contained in:
Ultrablob 2024-05-10 14:15:42 -04:00
parent f92b3a6f75
commit 0b86c659e0
3 changed files with 10 additions and 8 deletions

View file

@ -649,7 +649,7 @@ animations = [{
}]
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_rmvst"]
distance = 10.0
distance = 2.0
[sub_resource type="CircleShape2D" id="CircleShape2D_bmvvy"]
radius = 100.0

View file

@ -176,29 +176,29 @@ animations = [{
[sub_resource type="Gradient" id="Gradient_urfxb"]
colors = PackedColorArray(1, 0.9, 0, 1, 1, 0.9, 0, 0)
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_lcrvh"]
height = 52.0
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_bf2qx"]
height = 42.0
[node name="Player" instance=ExtResource("1_l701f")]
linear_damp = 2.0
script = ExtResource("2_5t06e")
[node name="Sprite" type="AnimatedSprite2D" parent="." index="1"]
position = Vector2(-17, 0)
scale = Vector2(2, 2)
sprite_frames = SubResource("SpriteFrames_7i6wq")
animation = &"jump"
animation = &"idle"
autoplay = "idle"
speed_scale = -1.0
[node name="CPUParticles2D" type="CPUParticles2D" parent="." index="2"]
z_index = -2
position = Vector2(-9, 0)
position = Vector2(-27, 0)
amount = 80
texture = ExtResource("5_fmfr6")
gravity = Vector2(2.08165e-12, 2.08165e-12)
color_ramp = SubResource("Gradient_urfxb")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." index="3"]
position = Vector2(19, 0)
rotation = -1.5708
shape = SubResource("CapsuleShape2D_lcrvh")
shape = SubResource("CapsuleShape2D_bf2qx")

View file

@ -19,10 +19,12 @@ func _ready():
if config.load("user://settings.cfg") == OK:
absolute_movement = not config.get_value("config", "relative_controls")
func _integrate_forces(state):
look_at(get_global_mouse_position())
func _physics_process(delta):
if frozen:
return
look_at(get_global_mouse_position())
var move_input = Input.get_axis("down", "up")
var side_input = Input.get_axis("right", "left")
if move_input > 0 and not moving: