patch iamond glitch
This commit is contained in:
parent
f92b3a6f75
commit
0b86c659e0
3 changed files with 10 additions and 8 deletions
|
@ -649,7 +649,7 @@ animations = [{
|
||||||
}]
|
}]
|
||||||
|
|
||||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_rmvst"]
|
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_rmvst"]
|
||||||
distance = 10.0
|
distance = 2.0
|
||||||
|
|
||||||
[sub_resource type="CircleShape2D" id="CircleShape2D_bmvvy"]
|
[sub_resource type="CircleShape2D" id="CircleShape2D_bmvvy"]
|
||||||
radius = 100.0
|
radius = 100.0
|
||||||
|
|
|
@ -176,29 +176,29 @@ animations = [{
|
||||||
[sub_resource type="Gradient" id="Gradient_urfxb"]
|
[sub_resource type="Gradient" id="Gradient_urfxb"]
|
||||||
colors = PackedColorArray(1, 0.9, 0, 1, 1, 0.9, 0, 0)
|
colors = PackedColorArray(1, 0.9, 0, 1, 1, 0.9, 0, 0)
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_lcrvh"]
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_bf2qx"]
|
||||||
height = 52.0
|
height = 42.0
|
||||||
|
|
||||||
[node name="Player" instance=ExtResource("1_l701f")]
|
[node name="Player" instance=ExtResource("1_l701f")]
|
||||||
linear_damp = 2.0
|
linear_damp = 2.0
|
||||||
script = ExtResource("2_5t06e")
|
script = ExtResource("2_5t06e")
|
||||||
|
|
||||||
[node name="Sprite" type="AnimatedSprite2D" parent="." index="1"]
|
[node name="Sprite" type="AnimatedSprite2D" parent="." index="1"]
|
||||||
|
position = Vector2(-17, 0)
|
||||||
scale = Vector2(2, 2)
|
scale = Vector2(2, 2)
|
||||||
sprite_frames = SubResource("SpriteFrames_7i6wq")
|
sprite_frames = SubResource("SpriteFrames_7i6wq")
|
||||||
animation = &"jump"
|
animation = &"idle"
|
||||||
autoplay = "idle"
|
autoplay = "idle"
|
||||||
speed_scale = -1.0
|
speed_scale = -1.0
|
||||||
|
|
||||||
[node name="CPUParticles2D" type="CPUParticles2D" parent="." index="2"]
|
[node name="CPUParticles2D" type="CPUParticles2D" parent="." index="2"]
|
||||||
z_index = -2
|
z_index = -2
|
||||||
position = Vector2(-9, 0)
|
position = Vector2(-27, 0)
|
||||||
amount = 80
|
amount = 80
|
||||||
texture = ExtResource("5_fmfr6")
|
texture = ExtResource("5_fmfr6")
|
||||||
gravity = Vector2(2.08165e-12, 2.08165e-12)
|
gravity = Vector2(2.08165e-12, 2.08165e-12)
|
||||||
color_ramp = SubResource("Gradient_urfxb")
|
color_ramp = SubResource("Gradient_urfxb")
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." index="3"]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." index="3"]
|
||||||
position = Vector2(19, 0)
|
|
||||||
rotation = -1.5708
|
rotation = -1.5708
|
||||||
shape = SubResource("CapsuleShape2D_lcrvh")
|
shape = SubResource("CapsuleShape2D_bf2qx")
|
||||||
|
|
|
@ -19,10 +19,12 @@ func _ready():
|
||||||
if config.load("user://settings.cfg") == OK:
|
if config.load("user://settings.cfg") == OK:
|
||||||
absolute_movement = not config.get_value("config", "relative_controls")
|
absolute_movement = not config.get_value("config", "relative_controls")
|
||||||
|
|
||||||
|
func _integrate_forces(state):
|
||||||
|
look_at(get_global_mouse_position())
|
||||||
|
|
||||||
func _physics_process(delta):
|
func _physics_process(delta):
|
||||||
if frozen:
|
if frozen:
|
||||||
return
|
return
|
||||||
look_at(get_global_mouse_position())
|
|
||||||
var move_input = Input.get_axis("down", "up")
|
var move_input = Input.get_axis("down", "up")
|
||||||
var side_input = Input.get_axis("right", "left")
|
var side_input = Input.get_axis("right", "left")
|
||||||
if move_input > 0 and not moving:
|
if move_input > 0 and not moving:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue