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]
|
||||
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
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user