Flatfish rotation bug fix attempt
This commit is contained in:
parent
9a3c5458b6
commit
4ce465effb
@ -34,7 +34,7 @@ extents = Vector2( 13.4499, 41.9587 )
|
|||||||
[sub_resource type="RectangleShape2D" id=4]
|
[sub_resource type="RectangleShape2D" id=4]
|
||||||
extents = Vector2( 6.44203, 23.0973 )
|
extents = Vector2( 6.44203, 23.0973 )
|
||||||
|
|
||||||
[sub_resource type="Shader" id=14]
|
[sub_resource type="Shader" id=5]
|
||||||
code = "shader_type canvas_item;
|
code = "shader_type canvas_item;
|
||||||
uniform sampler2D tex_frg_3;
|
uniform sampler2D tex_frg_3;
|
||||||
uniform sampler2D tex_frg_7;
|
uniform sampler2D tex_frg_7;
|
||||||
@ -100,8 +100,8 @@ void light() {
|
|||||||
"
|
"
|
||||||
custom_defines = ""
|
custom_defines = ""
|
||||||
|
|
||||||
[sub_resource type="ShaderMaterial" id=13]
|
[sub_resource type="ShaderMaterial" id=6]
|
||||||
shader = SubResource( 14 )
|
shader = SubResource( 5 )
|
||||||
|
|
||||||
[node name="Node2D" type="Node2D"]
|
[node name="Node2D" type="Node2D"]
|
||||||
script = ExtResource( 3 )
|
script = ExtResource( 3 )
|
||||||
@ -207,7 +207,7 @@ frames = ExtResource( 12 )
|
|||||||
centered = false
|
centered = false
|
||||||
|
|
||||||
[node name="OpeningOver" type="AnimatedSprite" parent="Opening1"]
|
[node name="OpeningOver" type="AnimatedSprite" parent="Opening1"]
|
||||||
material = SubResource( 13 )
|
material = SubResource( 6 )
|
||||||
frames = ExtResource( 1 )
|
frames = ExtResource( 1 )
|
||||||
centered = false
|
centered = false
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@ func _ready():
|
|||||||
assert(dialogue != null)
|
assert(dialogue != null)
|
||||||
|
|
||||||
if skipToLevel != '':
|
if skipToLevel != '':
|
||||||
|
can_leave = true
|
||||||
$Opening1.queue_free()
|
$Opening1.queue_free()
|
||||||
start_game()
|
start_game()
|
||||||
while levels[current_level] != skipToLevel:
|
while levels[current_level] != skipToLevel:
|
||||||
@ -296,5 +297,7 @@ func interact():
|
|||||||
|
|
||||||
fish.disappear()
|
fish.disappear()
|
||||||
|
|
||||||
|
player.rotation_degrees = fmod(player.rotation_degrees, 360.0)
|
||||||
|
|
||||||
is_interacting = false
|
is_interacting = false
|
||||||
if fish != null: interact()
|
if fish != null: interact()
|
||||||
|
Loading…
Reference in New Issue
Block a user