Browse Source

Flatfish rotation bug fix attempt

a
Alice Gaudon 10 months ago
parent
commit
4ce465effb
2 changed files with 7 additions and 4 deletions
  1. +4
    -4
      scenes/game1.tscn
  2. +3
    -0
      scripts/game1/Game1Script.gd

+ 4
- 4
scenes/game1.tscn 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


+ 3
- 0
scripts/game1/Game1Script.gd 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()

Loading…
Cancel
Save