Flatfish rotation bug fix attempt

This commit is contained in:
Alice Gaudon 2020-08-20 21:57:34 +02:00
parent 9a3c5458b6
commit 4ce465effb
2 changed files with 7 additions and 4 deletions

View File

@ -34,7 +34,7 @@ extents = Vector2( 13.4499, 41.9587 )
[sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 6.44203, 23.0973 )
[sub_resource type="Shader" id=14]
[sub_resource type="Shader" id=5]
code = "shader_type canvas_item;
uniform sampler2D tex_frg_3;
uniform sampler2D tex_frg_7;
@ -100,8 +100,8 @@ void light() {
"
custom_defines = ""
[sub_resource type="ShaderMaterial" id=13]
shader = SubResource( 14 )
[sub_resource type="ShaderMaterial" id=6]
shader = SubResource( 5 )
[node name="Node2D" type="Node2D"]
script = ExtResource( 3 )
@ -207,7 +207,7 @@ frames = ExtResource( 12 )
centered = false
[node name="OpeningOver" type="AnimatedSprite" parent="Opening1"]
material = SubResource( 13 )
material = SubResource( 6 )
frames = ExtResource( 1 )
centered = false

View File

@ -33,6 +33,7 @@ func _ready():
assert(dialogue != null)
if skipToLevel != '':
can_leave = true
$Opening1.queue_free()
start_game()
while levels[current_level] != skipToLevel:
@ -296,5 +297,7 @@ func interact():
fish.disappear()
player.rotation_degrees = fmod(player.rotation_degrees, 360.0)
is_interacting = false
if fish != null: interact()