Slight UI tweaks; Some Fish Cascade Fixes
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
[ext_resource type="Script" uid="uid://or8mcd735o0r" path="res://scenes/game/restart.gd" id="10_apana"]
|
||||
[ext_resource type="Script" uid="uid://crxm56favhwos" path="res://scenes/game/exit.gd" id="11_jnvlf"]
|
||||
[ext_resource type="Texture2D" uid="uid://cif65rts2oljo" path="res://assets/visual/sprites/Hornet_Idle.png" id="12_rlh21"]
|
||||
[ext_resource type="Theme" uid="uid://b34g4whlitecf" path="res://assets/visual/sprites/tuxtheme.tres" id="12_xsyba"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_2j0xl"]
|
||||
font_size = 50
|
||||
@@ -129,6 +130,7 @@ anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("12_xsyba")
|
||||
|
||||
[node name="Dim" type="ColorRect" parent="OnTop/GameOver" unique_id=651690269]
|
||||
layout_mode = 1
|
||||
|
||||
@@ -6,23 +6,43 @@ var word_set_file_path
|
||||
var word_set_file
|
||||
var word_set_content
|
||||
var word_set_array
|
||||
var active_words = []
|
||||
|
||||
# init random
|
||||
var alphabet = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N",
|
||||
"O","P","Q","R","S","T","U","V","W","X","Y","Z"]
|
||||
var fishs = []
|
||||
var fish_speed = 75
|
||||
var active
|
||||
|
||||
# display
|
||||
var viewport_size
|
||||
var scale_factor_x
|
||||
var scale_factor_y
|
||||
|
||||
|
||||
# numbers
|
||||
var delay = 2
|
||||
var delay = 1.5
|
||||
var spawn_timer = 0
|
||||
var max_character_count = 0
|
||||
|
||||
# objects
|
||||
var fish_source = preload("res://scenes/objects/game/fish.tscn")
|
||||
var fade
|
||||
var pause_menu
|
||||
|
||||
|
||||
# Runs on start
|
||||
func _ready() -> void:
|
||||
|
||||
active = true
|
||||
|
||||
pause_menu = self.get_node("OnTop").get_node("Pause")
|
||||
fade = self.get_node("OnTop").get_node("Fade")
|
||||
fade.visible = true
|
||||
var tween := create_tween()
|
||||
tween.parallel().tween_property(fade, "modulate:a", 0, 1).set_trans(Tween.TRANS_SINE).set_ease(Tween.EASE_OUT)
|
||||
|
||||
# Load Corresponding Text File
|
||||
word_set_file_path = "res://gameplay/word_sets/" + word_set + ".txt"
|
||||
word_set_file = FileAccess.open(word_set_file_path, FileAccess.READ)
|
||||
@@ -41,37 +61,52 @@ func _ready() -> void:
|
||||
|
||||
# Runs every frame
|
||||
func _process(delta: float) -> void:
|
||||
spawn_timer += delta
|
||||
|
||||
if spawn_timer >= delay:
|
||||
spawn_timer = 0
|
||||
spawn_word()
|
||||
if active:
|
||||
spawn_timer += delta
|
||||
|
||||
if spawn_timer >= delay:
|
||||
spawn_timer = 0
|
||||
spawn_word()
|
||||
|
||||
func spawn_word():
|
||||
var new_word = word_set_array[randi_range(0,len(word_set_array)-1)]
|
||||
var viewport_size = get_viewport_rect().size
|
||||
var offset = randf_range(0,800)
|
||||
var offset = randf_range(0,viewport_size.x-500)
|
||||
active_words.append(new_word)
|
||||
|
||||
for char in new_word:
|
||||
if char != " ":
|
||||
var new_commet = fish_source.instantiate()
|
||||
new_commet.position = Vector2(128+offset,-128)
|
||||
new_commet.get_node("Sprite").get_node("Label").text = char
|
||||
new_commet.speed = fish_speed
|
||||
add_child(new_commet)
|
||||
$FishTux.position = Vector2(offset,660)
|
||||
fishs.append(new_commet)
|
||||
var new_fish = fish_source.instantiate()
|
||||
new_fish.position = Vector2(128+offset,-128)
|
||||
new_fish.get_node("Sprite").get_node("Label").text = char
|
||||
new_fish.speed = fish_speed
|
||||
add_child(new_fish)
|
||||
fishs.append(new_fish)
|
||||
offset += 30
|
||||
|
||||
func _input(event):
|
||||
if event is InputEventKey and event.pressed:
|
||||
if event.as_text() in alphabet:
|
||||
print(event.as_text())
|
||||
|
||||
if len(fishs) > 0:
|
||||
var fish = fishs[0]
|
||||
if event.as_text() == fish.get_node("Sprite").get_node("Label").text:
|
||||
fishs.erase(fish)
|
||||
fish.get_node("Sprite").get_node("Label").add_theme_color_override("font_color", Color.RED)
|
||||
await fish.get_node("Sprite").animation_finished
|
||||
fish.queue_free()
|
||||
if active:
|
||||
print(event.as_text())
|
||||
if len(fishs) > 0:
|
||||
var fish = fishs[0]
|
||||
if event.as_text() == fish.get_node("Sprite").get_node("Label").text:
|
||||
fishs.erase(fish)
|
||||
fish.get_node("Sprite").get_node("Label").add_theme_color_override("font_color", Color.RED)
|
||||
#$FishTux.position = Vector2(len(fishs),get_viewport_rect().size.y-60)
|
||||
#for word in active_words:
|
||||
#if word[0] == fish.get_node("Sprite").get_node("Label").text:
|
||||
#await event.as_text() == word[word.length() - 1]
|
||||
#print('eh mazing')
|
||||
#fish.get_node("Sprite").get_node("Label").set_text('')
|
||||
#active_words.erase(word)
|
||||
elif event.keycode == KEY_ESCAPE:
|
||||
if pause_menu.visible:
|
||||
pause_menu.resume()
|
||||
$BackgroundMusic.volume_db = -15
|
||||
else:
|
||||
$Back.play()
|
||||
active = false
|
||||
pause_menu.visible = true
|
||||
$BackgroundMusic.volume_db = -30
|
||||
|
||||
@@ -10,12 +10,15 @@
|
||||
[ext_resource type="Texture2D" uid="uid://cuprnmxy5a7u2" path="res://original data/images/tux/run1.png" id="7_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://bsh0r0ldjgt51" path="res://original data/images/tux/stand0.png" id="8_wevax"]
|
||||
[ext_resource type="Texture2D" uid="uid://cebh8ecpj0274" path="res://original data/images/tux/stand1.png" id="9_8sqkf"]
|
||||
[ext_resource type="Texture2D" uid="uid://bwimfoayd83p2" path="res://original data/images/tux/stand-.png" id="10_me7rb"]
|
||||
[ext_resource type="Texture2D" uid="uid://dyjdddytxqybg" path="res://original data/images/tux/walk0.png" id="11_lg4hc"]
|
||||
[ext_resource type="Texture2D" uid="uid://bequiqfu54xe7" path="res://original data/images/tux/walk1.png" id="12_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://f6sy7wboy6td" path="res://original data/images/tux/walk2.png" id="13_wevax"]
|
||||
[ext_resource type="Texture2D" uid="uid://nduj5djmkad7" path="res://original data/images/tux/walk3.png" id="14_8sqkf"]
|
||||
[ext_resource type="Script" uid="uid://cqo3yt8ao4laj" path="res://scenes/game/fish_tux.gd" id="16_5wky4"]
|
||||
[ext_resource type="AudioStream" uid="uid://c8017fjw3ntl0" path="res://assets/audio/music/game/fish_cascade/2-27. Pursuit - A Great Turnabout.mp3" id="16_wevax"]
|
||||
[ext_resource type="AudioStream" uid="uid://ckr4pf3etle0p" path="res://assets/audio/sfx/SYS_cancel.ogg" id="17_me7rb"]
|
||||
[ext_resource type="PackedScene" uid="uid://dm6jp4gjboooc" path="res://scenes/menus/pause/pause.tscn" id="18_5wky4"]
|
||||
[ext_resource type="AudioStream" uid="uid://podscahsf0d4" path="res://assets/audio/sfx/MenuAccept.wav" id="19_5wky4"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_5wky4"]
|
||||
animations = [{
|
||||
@@ -53,9 +56,6 @@ animations = [{
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("9_8sqkf")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("10_me7rb")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"stand",
|
||||
@@ -79,6 +79,9 @@ animations = [{
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5wky4"]
|
||||
size = Vector2(75, 115)
|
||||
|
||||
[node name="FishCascade" type="Node2D" unique_id=82120739]
|
||||
script = ExtResource("1_tj4tg")
|
||||
|
||||
@@ -105,13 +108,41 @@ texture = ExtResource("1_lx3ow")
|
||||
expand_mode = 1
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="FishTux" type="AnimatedSprite2D" parent="." unique_id=1877342570]
|
||||
position = Vector2(650, 660)
|
||||
sprite_frames = SubResource("SpriteFrames_5wky4")
|
||||
animation = &"stand"
|
||||
frame_progress = 0.36790088
|
||||
|
||||
[node name="BackgroundMusic" type="AudioStreamPlayer2D" parent="." unique_id=414011462]
|
||||
stream = ExtResource("16_wevax")
|
||||
volume_db = -15.0
|
||||
autoplay = true
|
||||
|
||||
[node name="Back" type="AudioStreamPlayer2D" parent="." unique_id=720872467]
|
||||
stream = ExtResource("17_me7rb")
|
||||
|
||||
[node name="OnTop" type="CanvasLayer" parent="." unique_id=793935371]
|
||||
|
||||
[node name="Pause" parent="OnTop" unique_id=1227462733 instance=ExtResource("18_5wky4")]
|
||||
visible = false
|
||||
|
||||
[node name="Fade" type="ColorRect" parent="OnTop" unique_id=1781533862]
|
||||
visible = false
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="Tux" type="CharacterBody2D" parent="." unique_id=398386293]
|
||||
position = Vector2(960, 1019)
|
||||
script = ExtResource("16_5wky4")
|
||||
|
||||
[node name="FishTux" type="AnimatedSprite2D" parent="Tux" unique_id=1877342570]
|
||||
sprite_frames = SubResource("SpriteFrames_5wky4")
|
||||
animation = &"gulp"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Tux" unique_id=442093053]
|
||||
position = Vector2(-2.5, 1.5)
|
||||
shape = SubResource("RectangleShape2D_5wky4")
|
||||
|
||||
[node name="ButtonPress" type="AudioStreamPlayer2D" parent="." unique_id=1808956587]
|
||||
stream = ExtResource("19_5wky4")
|
||||
volume_db = -10.0
|
||||
|
||||
148
scenes/game/fish_cascade.tscn2704568335.tmp
Normal file
148
scenes/game/fish_cascade.tscn2704568335.tmp
Normal file
@@ -0,0 +1,148 @@
|
||||
[gd_scene format=3 uid="uid://cylk271eo0sxu"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cwypumqx8itup" path="res://original data/images/kcas0.jpg" id="1_lx3ow"]
|
||||
[ext_resource type="Script" uid="uid://bcxlia8u8tjm7" path="res://scenes/game/fish_cascade.gd" id="1_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://dd2yqhqic7acs" path="res://original data/images/tux/gulp0.png" id="2_04abn"]
|
||||
[ext_resource type="Texture2D" uid="uid://5vts7ippn4cl" path="res://original data/images/tux/gulp1.png" id="3_o008d"]
|
||||
[ext_resource type="Texture2D" uid="uid://cwnh5jv7ftuam" path="res://original data/images/tux/gulp2.png" id="4_1s1b5"]
|
||||
[ext_resource type="Texture2D" uid="uid://cy7chpor47cqe" path="res://original data/images/tux/gulp3.png" id="5_pvajk"]
|
||||
[ext_resource type="Texture2D" uid="uid://tpukb58o242b" path="res://original data/images/tux/run0.png" id="6_lg4hc"]
|
||||
[ext_resource type="Texture2D" uid="uid://cuprnmxy5a7u2" path="res://original data/images/tux/run1.png" id="7_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://bsh0r0ldjgt51" path="res://original data/images/tux/stand0.png" id="8_wevax"]
|
||||
[ext_resource type="Texture2D" uid="uid://cebh8ecpj0274" path="res://original data/images/tux/stand1.png" id="9_8sqkf"]
|
||||
[ext_resource type="Texture2D" uid="uid://bwimfoayd83p2" path="res://original data/images/tux/stand-.png" id="10_me7rb"]
|
||||
[ext_resource type="Texture2D" uid="uid://dyjdddytxqybg" path="res://original data/images/tux/walk0.png" id="11_lg4hc"]
|
||||
[ext_resource type="Texture2D" uid="uid://bequiqfu54xe7" path="res://original data/images/tux/walk1.png" id="12_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://f6sy7wboy6td" path="res://original data/images/tux/walk2.png" id="13_wevax"]
|
||||
[ext_resource type="Texture2D" uid="uid://nduj5djmkad7" path="res://original data/images/tux/walk3.png" id="14_8sqkf"]
|
||||
[ext_resource type="Script" uid="uid://cqo3yt8ao4laj" path="res://scenes/game/fish_tux.gd" id="16_5wky4"]
|
||||
[ext_resource type="AudioStream" uid="uid://c8017fjw3ntl0" path="res://assets/audio/music/game/fish_cascade/2-27. Pursuit - A Great Turnabout.mp3" id="16_wevax"]
|
||||
[ext_resource type="AudioStream" uid="uid://ckr4pf3etle0p" path="res://assets/audio/sfx/SYS_cancel.ogg" id="17_me7rb"]
|
||||
[ext_resource type="PackedScene" uid="uid://dm6jp4gjboooc" path="res://scenes/menus/pause/pause.tscn" id="18_5wky4"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_5wky4"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_04abn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_o008d")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_1s1b5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_pvajk")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"gulp",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("6_lg4hc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("7_tj4tg")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"run",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("8_wevax")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("9_8sqkf")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("10_me7rb")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"stand",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("11_lg4hc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("12_tj4tg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("13_wevax")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("14_8sqkf")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5wky4"]
|
||||
size = Vector2(75, 115)
|
||||
|
||||
[node name="FishCascade" type="Node2D" unique_id=82120739]
|
||||
script = ExtResource("1_tj4tg")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1937900767]
|
||||
layer = -1
|
||||
|
||||
[node name="Control" type="Control" parent="CanvasLayer" unique_id=1754186074]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="CanvasLayer/Control" unique_id=1605677218]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("1_lx3ow")
|
||||
expand_mode = 1
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="BackgroundMusic" type="AudioStreamPlayer2D" parent="." unique_id=414011462]
|
||||
stream = ExtResource("16_wevax")
|
||||
volume_db = -15.0
|
||||
autoplay = true
|
||||
|
||||
[node name="Back" type="AudioStreamPlayer2D" parent="." unique_id=720872467]
|
||||
stream = ExtResource("17_me7rb")
|
||||
|
||||
[node name="OnTop" type="CanvasLayer" parent="." unique_id=793935371]
|
||||
|
||||
[node name="Pause" parent="OnTop" unique_id=1227462733 instance=ExtResource("18_5wky4")]
|
||||
visible = false
|
||||
|
||||
[node name="Fade" type="ColorRect" parent="OnTop" unique_id=1781533862]
|
||||
visible = false
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="Tux" type="CharacterBody2D" parent="." unique_id=398386293]
|
||||
position = Vector2(960, 1019)
|
||||
script = ExtResource("16_5wky4")
|
||||
|
||||
[node name="FishTux" type="AnimatedSprite2D" parent="Tux" unique_id=1877342570]
|
||||
sprite_frames = SubResource("SpriteFrames_5wky4")
|
||||
animation = &"stand"
|
||||
frame_progress = 0.36790088
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Tux" unique_id=442093053]
|
||||
position = Vector2(-2.5, 1.5)
|
||||
shape = SubResource("RectangleShape2D_5wky4")
|
||||
148
scenes/game/fish_cascade.tscn2891087363.tmp
Normal file
148
scenes/game/fish_cascade.tscn2891087363.tmp
Normal file
@@ -0,0 +1,148 @@
|
||||
[gd_scene format=3 uid="uid://cylk271eo0sxu"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cwypumqx8itup" path="res://original data/images/kcas0.jpg" id="1_lx3ow"]
|
||||
[ext_resource type="Script" uid="uid://bcxlia8u8tjm7" path="res://scenes/game/fish_cascade.gd" id="1_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://dd2yqhqic7acs" path="res://original data/images/tux/gulp0.png" id="2_04abn"]
|
||||
[ext_resource type="Texture2D" uid="uid://5vts7ippn4cl" path="res://original data/images/tux/gulp1.png" id="3_o008d"]
|
||||
[ext_resource type="Texture2D" uid="uid://cwnh5jv7ftuam" path="res://original data/images/tux/gulp2.png" id="4_1s1b5"]
|
||||
[ext_resource type="Texture2D" uid="uid://cy7chpor47cqe" path="res://original data/images/tux/gulp3.png" id="5_pvajk"]
|
||||
[ext_resource type="Texture2D" uid="uid://tpukb58o242b" path="res://original data/images/tux/run0.png" id="6_lg4hc"]
|
||||
[ext_resource type="Texture2D" uid="uid://cuprnmxy5a7u2" path="res://original data/images/tux/run1.png" id="7_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://bsh0r0ldjgt51" path="res://original data/images/tux/stand0.png" id="8_wevax"]
|
||||
[ext_resource type="Texture2D" uid="uid://cebh8ecpj0274" path="res://original data/images/tux/stand1.png" id="9_8sqkf"]
|
||||
[ext_resource type="Texture2D" uid="uid://bwimfoayd83p2" path="res://original data/images/tux/stand-.png" id="10_me7rb"]
|
||||
[ext_resource type="Texture2D" uid="uid://dyjdddytxqybg" path="res://original data/images/tux/walk0.png" id="11_lg4hc"]
|
||||
[ext_resource type="Texture2D" uid="uid://bequiqfu54xe7" path="res://original data/images/tux/walk1.png" id="12_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://f6sy7wboy6td" path="res://original data/images/tux/walk2.png" id="13_wevax"]
|
||||
[ext_resource type="Texture2D" uid="uid://nduj5djmkad7" path="res://original data/images/tux/walk3.png" id="14_8sqkf"]
|
||||
[ext_resource type="Script" uid="uid://cqo3yt8ao4laj" path="res://scenes/game/fish_tux.gd" id="16_5wky4"]
|
||||
[ext_resource type="AudioStream" uid="uid://c8017fjw3ntl0" path="res://assets/audio/music/game/fish_cascade/2-27. Pursuit - A Great Turnabout.mp3" id="16_wevax"]
|
||||
[ext_resource type="AudioStream" uid="uid://ckr4pf3etle0p" path="res://assets/audio/sfx/SYS_cancel.ogg" id="17_me7rb"]
|
||||
[ext_resource type="PackedScene" uid="uid://dm6jp4gjboooc" path="res://scenes/menus/pause/pause.tscn" id="18_5wky4"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_5wky4"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_04abn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_o008d")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_1s1b5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_pvajk")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"gulp",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("6_lg4hc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("7_tj4tg")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"run",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("8_wevax")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("9_8sqkf")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("10_me7rb")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"stand",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("11_lg4hc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("12_tj4tg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("13_wevax")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("14_8sqkf")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5wky4"]
|
||||
size = Vector2(75, 115)
|
||||
|
||||
[node name="FishCascade" type="Node2D" unique_id=82120739]
|
||||
script = ExtResource("1_tj4tg")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1937900767]
|
||||
layer = -1
|
||||
|
||||
[node name="Control" type="Control" parent="CanvasLayer" unique_id=1754186074]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="CanvasLayer/Control" unique_id=1605677218]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("1_lx3ow")
|
||||
expand_mode = 1
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="BackgroundMusic" type="AudioStreamPlayer2D" parent="." unique_id=414011462]
|
||||
stream = ExtResource("16_wevax")
|
||||
volume_db = -15.0
|
||||
autoplay = true
|
||||
|
||||
[node name="Back" type="AudioStreamPlayer2D" parent="." unique_id=720872467]
|
||||
stream = ExtResource("17_me7rb")
|
||||
|
||||
[node name="OnTop" type="CanvasLayer" parent="." unique_id=793935371]
|
||||
|
||||
[node name="Pause" parent="OnTop" unique_id=1227462733 instance=ExtResource("18_5wky4")]
|
||||
visible = false
|
||||
|
||||
[node name="Fade" type="ColorRect" parent="OnTop" unique_id=1781533862]
|
||||
visible = false
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="Tux" type="CharacterBody2D" parent="." unique_id=398386293]
|
||||
position = Vector2(960, 1019)
|
||||
script = ExtResource("16_5wky4")
|
||||
|
||||
[node name="FishTux" type="AnimatedSprite2D" parent="Tux" unique_id=1877342570]
|
||||
sprite_frames = SubResource("SpriteFrames_5wky4")
|
||||
animation = &"stand"
|
||||
frame_progress = 0.36790088
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Tux" unique_id=442093053]
|
||||
position = Vector2(-2.5, 1.5)
|
||||
shape = SubResource("RectangleShape2D_5wky4")
|
||||
148
scenes/game/fish_cascade.tscn2899371044.tmp
Normal file
148
scenes/game/fish_cascade.tscn2899371044.tmp
Normal file
@@ -0,0 +1,148 @@
|
||||
[gd_scene format=3 uid="uid://cylk271eo0sxu"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cwypumqx8itup" path="res://original data/images/kcas0.jpg" id="1_lx3ow"]
|
||||
[ext_resource type="Script" uid="uid://bcxlia8u8tjm7" path="res://scenes/game/fish_cascade.gd" id="1_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://dd2yqhqic7acs" path="res://original data/images/tux/gulp0.png" id="2_04abn"]
|
||||
[ext_resource type="Texture2D" uid="uid://5vts7ippn4cl" path="res://original data/images/tux/gulp1.png" id="3_o008d"]
|
||||
[ext_resource type="Texture2D" uid="uid://cwnh5jv7ftuam" path="res://original data/images/tux/gulp2.png" id="4_1s1b5"]
|
||||
[ext_resource type="Texture2D" uid="uid://cy7chpor47cqe" path="res://original data/images/tux/gulp3.png" id="5_pvajk"]
|
||||
[ext_resource type="Texture2D" uid="uid://tpukb58o242b" path="res://original data/images/tux/run0.png" id="6_lg4hc"]
|
||||
[ext_resource type="Texture2D" uid="uid://cuprnmxy5a7u2" path="res://original data/images/tux/run1.png" id="7_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://bsh0r0ldjgt51" path="res://original data/images/tux/stand0.png" id="8_wevax"]
|
||||
[ext_resource type="Texture2D" uid="uid://cebh8ecpj0274" path="res://original data/images/tux/stand1.png" id="9_8sqkf"]
|
||||
[ext_resource type="Texture2D" uid="uid://bwimfoayd83p2" path="res://original data/images/tux/stand-.png" id="10_me7rb"]
|
||||
[ext_resource type="Texture2D" uid="uid://dyjdddytxqybg" path="res://original data/images/tux/walk0.png" id="11_lg4hc"]
|
||||
[ext_resource type="Texture2D" uid="uid://bequiqfu54xe7" path="res://original data/images/tux/walk1.png" id="12_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://f6sy7wboy6td" path="res://original data/images/tux/walk2.png" id="13_wevax"]
|
||||
[ext_resource type="Texture2D" uid="uid://nduj5djmkad7" path="res://original data/images/tux/walk3.png" id="14_8sqkf"]
|
||||
[ext_resource type="Script" uid="uid://cqo3yt8ao4laj" path="res://scenes/game/fish_tux.gd" id="16_5wky4"]
|
||||
[ext_resource type="AudioStream" uid="uid://c8017fjw3ntl0" path="res://assets/audio/music/game/fish_cascade/2-27. Pursuit - A Great Turnabout.mp3" id="16_wevax"]
|
||||
[ext_resource type="AudioStream" uid="uid://ckr4pf3etle0p" path="res://assets/audio/sfx/SYS_cancel.ogg" id="17_me7rb"]
|
||||
[ext_resource type="PackedScene" uid="uid://dm6jp4gjboooc" path="res://scenes/menus/pause/pause.tscn" id="18_5wky4"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_5wky4"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_04abn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_o008d")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_1s1b5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_pvajk")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"gulp",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("6_lg4hc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("7_tj4tg")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"run",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("8_wevax")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("9_8sqkf")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("10_me7rb")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"stand",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("11_lg4hc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("12_tj4tg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("13_wevax")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("14_8sqkf")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5wky4"]
|
||||
size = Vector2(75, 115)
|
||||
|
||||
[node name="FishCascade" type="Node2D" unique_id=82120739]
|
||||
script = ExtResource("1_tj4tg")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1937900767]
|
||||
layer = -1
|
||||
|
||||
[node name="Control" type="Control" parent="CanvasLayer" unique_id=1754186074]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="CanvasLayer/Control" unique_id=1605677218]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("1_lx3ow")
|
||||
expand_mode = 1
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="BackgroundMusic" type="AudioStreamPlayer2D" parent="." unique_id=414011462]
|
||||
stream = ExtResource("16_wevax")
|
||||
volume_db = -15.0
|
||||
autoplay = true
|
||||
|
||||
[node name="Back" type="AudioStreamPlayer2D" parent="." unique_id=720872467]
|
||||
stream = ExtResource("17_me7rb")
|
||||
|
||||
[node name="OnTop" type="CanvasLayer" parent="." unique_id=793935371]
|
||||
|
||||
[node name="Pause" parent="OnTop" unique_id=1227462733 instance=ExtResource("18_5wky4")]
|
||||
visible = false
|
||||
|
||||
[node name="Fade" type="ColorRect" parent="OnTop" unique_id=1781533862]
|
||||
visible = false
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="Tux" type="CharacterBody2D" parent="." unique_id=398386293]
|
||||
position = Vector2(960, 1019)
|
||||
script = ExtResource("16_5wky4")
|
||||
|
||||
[node name="FishTux" type="AnimatedSprite2D" parent="Tux" unique_id=1877342570]
|
||||
sprite_frames = SubResource("SpriteFrames_5wky4")
|
||||
animation = &"stand"
|
||||
frame_progress = 0.36790088
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Tux" unique_id=442093053]
|
||||
position = Vector2(-2.5, 1.5)
|
||||
shape = SubResource("RectangleShape2D_5wky4")
|
||||
148
scenes/game/fish_cascade.tscn2904378976.tmp
Normal file
148
scenes/game/fish_cascade.tscn2904378976.tmp
Normal file
@@ -0,0 +1,148 @@
|
||||
[gd_scene format=3 uid="uid://cylk271eo0sxu"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cwypumqx8itup" path="res://original data/images/kcas0.jpg" id="1_lx3ow"]
|
||||
[ext_resource type="Script" uid="uid://bcxlia8u8tjm7" path="res://scenes/game/fish_cascade.gd" id="1_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://dd2yqhqic7acs" path="res://original data/images/tux/gulp0.png" id="2_04abn"]
|
||||
[ext_resource type="Texture2D" uid="uid://5vts7ippn4cl" path="res://original data/images/tux/gulp1.png" id="3_o008d"]
|
||||
[ext_resource type="Texture2D" uid="uid://cwnh5jv7ftuam" path="res://original data/images/tux/gulp2.png" id="4_1s1b5"]
|
||||
[ext_resource type="Texture2D" uid="uid://cy7chpor47cqe" path="res://original data/images/tux/gulp3.png" id="5_pvajk"]
|
||||
[ext_resource type="Texture2D" uid="uid://tpukb58o242b" path="res://original data/images/tux/run0.png" id="6_lg4hc"]
|
||||
[ext_resource type="Texture2D" uid="uid://cuprnmxy5a7u2" path="res://original data/images/tux/run1.png" id="7_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://bsh0r0ldjgt51" path="res://original data/images/tux/stand0.png" id="8_wevax"]
|
||||
[ext_resource type="Texture2D" uid="uid://cebh8ecpj0274" path="res://original data/images/tux/stand1.png" id="9_8sqkf"]
|
||||
[ext_resource type="Texture2D" uid="uid://bwimfoayd83p2" path="res://original data/images/tux/stand-.png" id="10_me7rb"]
|
||||
[ext_resource type="Texture2D" uid="uid://dyjdddytxqybg" path="res://original data/images/tux/walk0.png" id="11_lg4hc"]
|
||||
[ext_resource type="Texture2D" uid="uid://bequiqfu54xe7" path="res://original data/images/tux/walk1.png" id="12_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://f6sy7wboy6td" path="res://original data/images/tux/walk2.png" id="13_wevax"]
|
||||
[ext_resource type="Texture2D" uid="uid://nduj5djmkad7" path="res://original data/images/tux/walk3.png" id="14_8sqkf"]
|
||||
[ext_resource type="Script" uid="uid://cqo3yt8ao4laj" path="res://scenes/game/fish_tux.gd" id="16_5wky4"]
|
||||
[ext_resource type="AudioStream" uid="uid://c8017fjw3ntl0" path="res://assets/audio/music/game/fish_cascade/2-27. Pursuit - A Great Turnabout.mp3" id="16_wevax"]
|
||||
[ext_resource type="AudioStream" uid="uid://ckr4pf3etle0p" path="res://assets/audio/sfx/SYS_cancel.ogg" id="17_me7rb"]
|
||||
[ext_resource type="PackedScene" uid="uid://dm6jp4gjboooc" path="res://scenes/menus/pause/pause.tscn" id="18_5wky4"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_5wky4"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_04abn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_o008d")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_1s1b5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_pvajk")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"gulp",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("6_lg4hc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("7_tj4tg")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"run",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("8_wevax")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("9_8sqkf")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("10_me7rb")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"stand",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("11_lg4hc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("12_tj4tg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("13_wevax")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("14_8sqkf")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5wky4"]
|
||||
size = Vector2(75, 115)
|
||||
|
||||
[node name="FishCascade" type="Node2D" unique_id=82120739]
|
||||
script = ExtResource("1_tj4tg")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1937900767]
|
||||
layer = -1
|
||||
|
||||
[node name="Control" type="Control" parent="CanvasLayer" unique_id=1754186074]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="CanvasLayer/Control" unique_id=1605677218]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("1_lx3ow")
|
||||
expand_mode = 1
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="BackgroundMusic" type="AudioStreamPlayer2D" parent="." unique_id=414011462]
|
||||
stream = ExtResource("16_wevax")
|
||||
volume_db = -15.0
|
||||
autoplay = true
|
||||
|
||||
[node name="Back" type="AudioStreamPlayer2D" parent="." unique_id=720872467]
|
||||
stream = ExtResource("17_me7rb")
|
||||
|
||||
[node name="OnTop" type="CanvasLayer" parent="." unique_id=793935371]
|
||||
|
||||
[node name="Pause" parent="OnTop" unique_id=1227462733 instance=ExtResource("18_5wky4")]
|
||||
visible = false
|
||||
|
||||
[node name="Fade" type="ColorRect" parent="OnTop" unique_id=1781533862]
|
||||
visible = false
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="Tux" type="CharacterBody2D" parent="." unique_id=398386293]
|
||||
position = Vector2(960, 1019)
|
||||
script = ExtResource("16_5wky4")
|
||||
|
||||
[node name="FishTux" type="AnimatedSprite2D" parent="Tux" unique_id=1877342570]
|
||||
sprite_frames = SubResource("SpriteFrames_5wky4")
|
||||
animation = &"stand"
|
||||
frame_progress = 0.36790088
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Tux" unique_id=442093053]
|
||||
position = Vector2(-2.5, 1.5)
|
||||
shape = SubResource("RectangleShape2D_5wky4")
|
||||
148
scenes/game/fish_cascade.tscn2911100111.tmp
Normal file
148
scenes/game/fish_cascade.tscn2911100111.tmp
Normal file
@@ -0,0 +1,148 @@
|
||||
[gd_scene format=3 uid="uid://cylk271eo0sxu"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cwypumqx8itup" path="res://original data/images/kcas0.jpg" id="1_lx3ow"]
|
||||
[ext_resource type="Script" uid="uid://bcxlia8u8tjm7" path="res://scenes/game/fish_cascade.gd" id="1_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://dd2yqhqic7acs" path="res://original data/images/tux/gulp0.png" id="2_04abn"]
|
||||
[ext_resource type="Texture2D" uid="uid://5vts7ippn4cl" path="res://original data/images/tux/gulp1.png" id="3_o008d"]
|
||||
[ext_resource type="Texture2D" uid="uid://cwnh5jv7ftuam" path="res://original data/images/tux/gulp2.png" id="4_1s1b5"]
|
||||
[ext_resource type="Texture2D" uid="uid://cy7chpor47cqe" path="res://original data/images/tux/gulp3.png" id="5_pvajk"]
|
||||
[ext_resource type="Texture2D" uid="uid://tpukb58o242b" path="res://original data/images/tux/run0.png" id="6_lg4hc"]
|
||||
[ext_resource type="Texture2D" uid="uid://cuprnmxy5a7u2" path="res://original data/images/tux/run1.png" id="7_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://bsh0r0ldjgt51" path="res://original data/images/tux/stand0.png" id="8_wevax"]
|
||||
[ext_resource type="Texture2D" uid="uid://cebh8ecpj0274" path="res://original data/images/tux/stand1.png" id="9_8sqkf"]
|
||||
[ext_resource type="Texture2D" uid="uid://bwimfoayd83p2" path="res://original data/images/tux/stand-.png" id="10_me7rb"]
|
||||
[ext_resource type="Texture2D" uid="uid://dyjdddytxqybg" path="res://original data/images/tux/walk0.png" id="11_lg4hc"]
|
||||
[ext_resource type="Texture2D" uid="uid://bequiqfu54xe7" path="res://original data/images/tux/walk1.png" id="12_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://f6sy7wboy6td" path="res://original data/images/tux/walk2.png" id="13_wevax"]
|
||||
[ext_resource type="Texture2D" uid="uid://nduj5djmkad7" path="res://original data/images/tux/walk3.png" id="14_8sqkf"]
|
||||
[ext_resource type="Script" uid="uid://cqo3yt8ao4laj" path="res://scenes/game/fish_tux.gd" id="16_5wky4"]
|
||||
[ext_resource type="AudioStream" uid="uid://c8017fjw3ntl0" path="res://assets/audio/music/game/fish_cascade/2-27. Pursuit - A Great Turnabout.mp3" id="16_wevax"]
|
||||
[ext_resource type="AudioStream" uid="uid://ckr4pf3etle0p" path="res://assets/audio/sfx/SYS_cancel.ogg" id="17_me7rb"]
|
||||
[ext_resource type="PackedScene" uid="uid://dm6jp4gjboooc" path="res://scenes/menus/pause/pause.tscn" id="18_5wky4"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_5wky4"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_04abn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_o008d")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_1s1b5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_pvajk")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"gulp",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("6_lg4hc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("7_tj4tg")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"run",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("8_wevax")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("9_8sqkf")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("10_me7rb")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"stand",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("11_lg4hc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("12_tj4tg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("13_wevax")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("14_8sqkf")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5wky4"]
|
||||
size = Vector2(75, 115)
|
||||
|
||||
[node name="FishCascade" type="Node2D" unique_id=82120739]
|
||||
script = ExtResource("1_tj4tg")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1937900767]
|
||||
layer = -1
|
||||
|
||||
[node name="Control" type="Control" parent="CanvasLayer" unique_id=1754186074]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="CanvasLayer/Control" unique_id=1605677218]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("1_lx3ow")
|
||||
expand_mode = 1
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="BackgroundMusic" type="AudioStreamPlayer2D" parent="." unique_id=414011462]
|
||||
stream = ExtResource("16_wevax")
|
||||
volume_db = -15.0
|
||||
autoplay = true
|
||||
|
||||
[node name="Back" type="AudioStreamPlayer2D" parent="." unique_id=720872467]
|
||||
stream = ExtResource("17_me7rb")
|
||||
|
||||
[node name="OnTop" type="CanvasLayer" parent="." unique_id=793935371]
|
||||
|
||||
[node name="Pause" parent="OnTop" unique_id=1227462733 instance=ExtResource("18_5wky4")]
|
||||
visible = false
|
||||
|
||||
[node name="Fade" type="ColorRect" parent="OnTop" unique_id=1781533862]
|
||||
visible = false
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="Tux" type="CharacterBody2D" parent="." unique_id=398386293]
|
||||
position = Vector2(960, 1019)
|
||||
script = ExtResource("16_5wky4")
|
||||
|
||||
[node name="FishTux" type="AnimatedSprite2D" parent="Tux" unique_id=1877342570]
|
||||
sprite_frames = SubResource("SpriteFrames_5wky4")
|
||||
animation = &"stand"
|
||||
frame_progress = 0.36790088
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Tux" unique_id=442093053]
|
||||
position = Vector2(-2.5, 1.5)
|
||||
shape = SubResource("RectangleShape2D_5wky4")
|
||||
148
scenes/game/fish_cascade.tscn2979488448.tmp
Normal file
148
scenes/game/fish_cascade.tscn2979488448.tmp
Normal file
@@ -0,0 +1,148 @@
|
||||
[gd_scene format=3 uid="uid://cylk271eo0sxu"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cwypumqx8itup" path="res://original data/images/kcas0.jpg" id="1_lx3ow"]
|
||||
[ext_resource type="Script" uid="uid://bcxlia8u8tjm7" path="res://scenes/game/fish_cascade.gd" id="1_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://dd2yqhqic7acs" path="res://original data/images/tux/gulp0.png" id="2_04abn"]
|
||||
[ext_resource type="Texture2D" uid="uid://5vts7ippn4cl" path="res://original data/images/tux/gulp1.png" id="3_o008d"]
|
||||
[ext_resource type="Texture2D" uid="uid://cwnh5jv7ftuam" path="res://original data/images/tux/gulp2.png" id="4_1s1b5"]
|
||||
[ext_resource type="Texture2D" uid="uid://cy7chpor47cqe" path="res://original data/images/tux/gulp3.png" id="5_pvajk"]
|
||||
[ext_resource type="Texture2D" uid="uid://tpukb58o242b" path="res://original data/images/tux/run0.png" id="6_lg4hc"]
|
||||
[ext_resource type="Texture2D" uid="uid://cuprnmxy5a7u2" path="res://original data/images/tux/run1.png" id="7_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://bsh0r0ldjgt51" path="res://original data/images/tux/stand0.png" id="8_wevax"]
|
||||
[ext_resource type="Texture2D" uid="uid://cebh8ecpj0274" path="res://original data/images/tux/stand1.png" id="9_8sqkf"]
|
||||
[ext_resource type="Texture2D" uid="uid://bwimfoayd83p2" path="res://original data/images/tux/stand-.png" id="10_me7rb"]
|
||||
[ext_resource type="Texture2D" uid="uid://dyjdddytxqybg" path="res://original data/images/tux/walk0.png" id="11_lg4hc"]
|
||||
[ext_resource type="Texture2D" uid="uid://bequiqfu54xe7" path="res://original data/images/tux/walk1.png" id="12_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://f6sy7wboy6td" path="res://original data/images/tux/walk2.png" id="13_wevax"]
|
||||
[ext_resource type="Texture2D" uid="uid://nduj5djmkad7" path="res://original data/images/tux/walk3.png" id="14_8sqkf"]
|
||||
[ext_resource type="Script" uid="uid://cqo3yt8ao4laj" path="res://scenes/game/fish_tux.gd" id="16_5wky4"]
|
||||
[ext_resource type="AudioStream" uid="uid://c8017fjw3ntl0" path="res://assets/audio/music/game/fish_cascade/2-27. Pursuit - A Great Turnabout.mp3" id="16_wevax"]
|
||||
[ext_resource type="AudioStream" uid="uid://ckr4pf3etle0p" path="res://assets/audio/sfx/SYS_cancel.ogg" id="17_me7rb"]
|
||||
[ext_resource type="PackedScene" uid="uid://dm6jp4gjboooc" path="res://scenes/menus/pause/pause.tscn" id="18_5wky4"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_5wky4"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_04abn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_o008d")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_1s1b5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_pvajk")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"gulp",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("6_lg4hc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("7_tj4tg")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"run",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("8_wevax")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("9_8sqkf")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("10_me7rb")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"stand",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("11_lg4hc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("12_tj4tg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("13_wevax")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("14_8sqkf")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5wky4"]
|
||||
size = Vector2(75, 115)
|
||||
|
||||
[node name="FishCascade" type="Node2D" unique_id=82120739]
|
||||
script = ExtResource("1_tj4tg")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1937900767]
|
||||
layer = -1
|
||||
|
||||
[node name="Control" type="Control" parent="CanvasLayer" unique_id=1754186074]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="CanvasLayer/Control" unique_id=1605677218]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("1_lx3ow")
|
||||
expand_mode = 1
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="BackgroundMusic" type="AudioStreamPlayer2D" parent="." unique_id=414011462]
|
||||
stream = ExtResource("16_wevax")
|
||||
volume_db = -15.0
|
||||
autoplay = true
|
||||
|
||||
[node name="Back" type="AudioStreamPlayer2D" parent="." unique_id=720872467]
|
||||
stream = ExtResource("17_me7rb")
|
||||
|
||||
[node name="OnTop" type="CanvasLayer" parent="." unique_id=793935371]
|
||||
|
||||
[node name="Pause" parent="OnTop" unique_id=1227462733 instance=ExtResource("18_5wky4")]
|
||||
visible = false
|
||||
|
||||
[node name="Fade" type="ColorRect" parent="OnTop" unique_id=1781533862]
|
||||
visible = false
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="Tux" type="CharacterBody2D" parent="." unique_id=398386293]
|
||||
position = Vector2(960, 1019)
|
||||
script = ExtResource("16_5wky4")
|
||||
|
||||
[node name="FishTux" type="AnimatedSprite2D" parent="Tux" unique_id=1877342570]
|
||||
sprite_frames = SubResource("SpriteFrames_5wky4")
|
||||
animation = &"stand"
|
||||
frame_progress = 0.36790088
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Tux" unique_id=442093053]
|
||||
position = Vector2(-2.5, 1.5)
|
||||
shape = SubResource("RectangleShape2D_5wky4")
|
||||
148
scenes/game/fish_cascade.tscn2999187442.tmp
Normal file
148
scenes/game/fish_cascade.tscn2999187442.tmp
Normal file
@@ -0,0 +1,148 @@
|
||||
[gd_scene format=3 uid="uid://cylk271eo0sxu"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cwypumqx8itup" path="res://original data/images/kcas0.jpg" id="1_lx3ow"]
|
||||
[ext_resource type="Script" uid="uid://bcxlia8u8tjm7" path="res://scenes/game/fish_cascade.gd" id="1_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://dd2yqhqic7acs" path="res://original data/images/tux/gulp0.png" id="2_04abn"]
|
||||
[ext_resource type="Texture2D" uid="uid://5vts7ippn4cl" path="res://original data/images/tux/gulp1.png" id="3_o008d"]
|
||||
[ext_resource type="Texture2D" uid="uid://cwnh5jv7ftuam" path="res://original data/images/tux/gulp2.png" id="4_1s1b5"]
|
||||
[ext_resource type="Texture2D" uid="uid://cy7chpor47cqe" path="res://original data/images/tux/gulp3.png" id="5_pvajk"]
|
||||
[ext_resource type="Texture2D" uid="uid://tpukb58o242b" path="res://original data/images/tux/run0.png" id="6_lg4hc"]
|
||||
[ext_resource type="Texture2D" uid="uid://cuprnmxy5a7u2" path="res://original data/images/tux/run1.png" id="7_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://bsh0r0ldjgt51" path="res://original data/images/tux/stand0.png" id="8_wevax"]
|
||||
[ext_resource type="Texture2D" uid="uid://cebh8ecpj0274" path="res://original data/images/tux/stand1.png" id="9_8sqkf"]
|
||||
[ext_resource type="Texture2D" uid="uid://bwimfoayd83p2" path="res://original data/images/tux/stand-.png" id="10_me7rb"]
|
||||
[ext_resource type="Texture2D" uid="uid://dyjdddytxqybg" path="res://original data/images/tux/walk0.png" id="11_lg4hc"]
|
||||
[ext_resource type="Texture2D" uid="uid://bequiqfu54xe7" path="res://original data/images/tux/walk1.png" id="12_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://f6sy7wboy6td" path="res://original data/images/tux/walk2.png" id="13_wevax"]
|
||||
[ext_resource type="Texture2D" uid="uid://nduj5djmkad7" path="res://original data/images/tux/walk3.png" id="14_8sqkf"]
|
||||
[ext_resource type="Script" uid="uid://cqo3yt8ao4laj" path="res://scenes/game/fish_tux.gd" id="16_5wky4"]
|
||||
[ext_resource type="AudioStream" uid="uid://c8017fjw3ntl0" path="res://assets/audio/music/game/fish_cascade/2-27. Pursuit - A Great Turnabout.mp3" id="16_wevax"]
|
||||
[ext_resource type="AudioStream" uid="uid://ckr4pf3etle0p" path="res://assets/audio/sfx/SYS_cancel.ogg" id="17_me7rb"]
|
||||
[ext_resource type="PackedScene" uid="uid://dm6jp4gjboooc" path="res://scenes/menus/pause/pause.tscn" id="18_5wky4"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_5wky4"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_04abn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_o008d")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_1s1b5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_pvajk")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"gulp",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("6_lg4hc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("7_tj4tg")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"run",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("8_wevax")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("9_8sqkf")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("10_me7rb")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"stand",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("11_lg4hc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("12_tj4tg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("13_wevax")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("14_8sqkf")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5wky4"]
|
||||
size = Vector2(75, 115)
|
||||
|
||||
[node name="FishCascade" type="Node2D" unique_id=82120739]
|
||||
script = ExtResource("1_tj4tg")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1937900767]
|
||||
layer = -1
|
||||
|
||||
[node name="Control" type="Control" parent="CanvasLayer" unique_id=1754186074]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="CanvasLayer/Control" unique_id=1605677218]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("1_lx3ow")
|
||||
expand_mode = 1
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="BackgroundMusic" type="AudioStreamPlayer2D" parent="." unique_id=414011462]
|
||||
stream = ExtResource("16_wevax")
|
||||
volume_db = -15.0
|
||||
autoplay = true
|
||||
|
||||
[node name="Back" type="AudioStreamPlayer2D" parent="." unique_id=720872467]
|
||||
stream = ExtResource("17_me7rb")
|
||||
|
||||
[node name="OnTop" type="CanvasLayer" parent="." unique_id=793935371]
|
||||
|
||||
[node name="Pause" parent="OnTop" unique_id=1227462733 instance=ExtResource("18_5wky4")]
|
||||
visible = false
|
||||
|
||||
[node name="Fade" type="ColorRect" parent="OnTop" unique_id=1781533862]
|
||||
visible = false
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="Tux" type="CharacterBody2D" parent="." unique_id=398386293]
|
||||
position = Vector2(960, 1019)
|
||||
script = ExtResource("16_5wky4")
|
||||
|
||||
[node name="FishTux" type="AnimatedSprite2D" parent="Tux" unique_id=1877342570]
|
||||
sprite_frames = SubResource("SpriteFrames_5wky4")
|
||||
animation = &"stand"
|
||||
frame_progress = 0.36790088
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Tux" unique_id=442093053]
|
||||
position = Vector2(-2.5, 1.5)
|
||||
shape = SubResource("RectangleShape2D_5wky4")
|
||||
148
scenes/game/fish_cascade.tscn3011411601.tmp
Normal file
148
scenes/game/fish_cascade.tscn3011411601.tmp
Normal file
@@ -0,0 +1,148 @@
|
||||
[gd_scene format=3 uid="uid://cylk271eo0sxu"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cwypumqx8itup" path="res://original data/images/kcas0.jpg" id="1_lx3ow"]
|
||||
[ext_resource type="Script" uid="uid://bcxlia8u8tjm7" path="res://scenes/game/fish_cascade.gd" id="1_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://dd2yqhqic7acs" path="res://original data/images/tux/gulp0.png" id="2_04abn"]
|
||||
[ext_resource type="Texture2D" uid="uid://5vts7ippn4cl" path="res://original data/images/tux/gulp1.png" id="3_o008d"]
|
||||
[ext_resource type="Texture2D" uid="uid://cwnh5jv7ftuam" path="res://original data/images/tux/gulp2.png" id="4_1s1b5"]
|
||||
[ext_resource type="Texture2D" uid="uid://cy7chpor47cqe" path="res://original data/images/tux/gulp3.png" id="5_pvajk"]
|
||||
[ext_resource type="Texture2D" uid="uid://tpukb58o242b" path="res://original data/images/tux/run0.png" id="6_lg4hc"]
|
||||
[ext_resource type="Texture2D" uid="uid://cuprnmxy5a7u2" path="res://original data/images/tux/run1.png" id="7_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://bsh0r0ldjgt51" path="res://original data/images/tux/stand0.png" id="8_wevax"]
|
||||
[ext_resource type="Texture2D" uid="uid://cebh8ecpj0274" path="res://original data/images/tux/stand1.png" id="9_8sqkf"]
|
||||
[ext_resource type="Texture2D" uid="uid://bwimfoayd83p2" path="res://original data/images/tux/stand-.png" id="10_me7rb"]
|
||||
[ext_resource type="Texture2D" uid="uid://dyjdddytxqybg" path="res://original data/images/tux/walk0.png" id="11_lg4hc"]
|
||||
[ext_resource type="Texture2D" uid="uid://bequiqfu54xe7" path="res://original data/images/tux/walk1.png" id="12_tj4tg"]
|
||||
[ext_resource type="Texture2D" uid="uid://f6sy7wboy6td" path="res://original data/images/tux/walk2.png" id="13_wevax"]
|
||||
[ext_resource type="Texture2D" uid="uid://nduj5djmkad7" path="res://original data/images/tux/walk3.png" id="14_8sqkf"]
|
||||
[ext_resource type="Script" uid="uid://cqo3yt8ao4laj" path="res://scenes/game/fish_tux.gd" id="16_5wky4"]
|
||||
[ext_resource type="AudioStream" uid="uid://c8017fjw3ntl0" path="res://assets/audio/music/game/fish_cascade/2-27. Pursuit - A Great Turnabout.mp3" id="16_wevax"]
|
||||
[ext_resource type="AudioStream" uid="uid://ckr4pf3etle0p" path="res://assets/audio/sfx/SYS_cancel.ogg" id="17_me7rb"]
|
||||
[ext_resource type="PackedScene" uid="uid://dm6jp4gjboooc" path="res://scenes/menus/pause/pause.tscn" id="18_5wky4"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_5wky4"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_04abn")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_o008d")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_1s1b5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_pvajk")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"gulp",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("6_lg4hc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("7_tj4tg")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"run",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("8_wevax")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("9_8sqkf")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("10_me7rb")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"stand",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("11_lg4hc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("12_tj4tg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("13_wevax")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("14_8sqkf")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"walk",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5wky4"]
|
||||
size = Vector2(75, 115)
|
||||
|
||||
[node name="FishCascade" type="Node2D" unique_id=82120739]
|
||||
script = ExtResource("1_tj4tg")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1937900767]
|
||||
layer = -1
|
||||
|
||||
[node name="Control" type="Control" parent="CanvasLayer" unique_id=1754186074]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="CanvasLayer/Control" unique_id=1605677218]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("1_lx3ow")
|
||||
expand_mode = 1
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="BackgroundMusic" type="AudioStreamPlayer2D" parent="." unique_id=414011462]
|
||||
stream = ExtResource("16_wevax")
|
||||
volume_db = -15.0
|
||||
autoplay = true
|
||||
|
||||
[node name="Back" type="AudioStreamPlayer2D" parent="." unique_id=720872467]
|
||||
stream = ExtResource("17_me7rb")
|
||||
|
||||
[node name="OnTop" type="CanvasLayer" parent="." unique_id=793935371]
|
||||
|
||||
[node name="Pause" parent="OnTop" unique_id=1227462733 instance=ExtResource("18_5wky4")]
|
||||
visible = false
|
||||
|
||||
[node name="Fade" type="ColorRect" parent="OnTop" unique_id=1781533862]
|
||||
visible = false
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="Tux" type="CharacterBody2D" parent="." unique_id=398386293]
|
||||
position = Vector2(960, 1019)
|
||||
script = ExtResource("16_5wky4")
|
||||
|
||||
[node name="FishTux" type="AnimatedSprite2D" parent="Tux" unique_id=1877342570]
|
||||
sprite_frames = SubResource("SpriteFrames_5wky4")
|
||||
animation = &"stand"
|
||||
frame_progress = 0.36790088
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Tux" unique_id=442093053]
|
||||
position = Vector2(-2.5, 1.5)
|
||||
shape = SubResource("RectangleShape2D_5wky4")
|
||||
@@ -1,16 +1,37 @@
|
||||
extends AnimatedSprite2D
|
||||
extends CharacterBody2D
|
||||
|
||||
var speed = 10
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
play('stand')
|
||||
$FishTux.play('stand')
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
func _process(delta: float):
|
||||
var velocity = Vector2.ZERO
|
||||
var speed = 301
|
||||
velocity.x += 0
|
||||
|
||||
if velocity.x > 0:
|
||||
velocity = velocity.normalized() * speed
|
||||
if speed > 300:
|
||||
$FishTux.play('run')
|
||||
$FishTux.scale.x = 1
|
||||
else:
|
||||
$FishTux.play('walk')
|
||||
$FishTux.scale.x = 1
|
||||
elif velocity.x < 0:
|
||||
velocity = velocity.normalized() * speed
|
||||
if speed > 300:
|
||||
$FishTux.play('run')
|
||||
$FishTux.scale.x = -1
|
||||
else:
|
||||
$FishTux.play('walk')
|
||||
$FishTux.scale.x = -1
|
||||
else:
|
||||
$FishTux.play('stand')
|
||||
|
||||
|
||||
position += velocity * delta
|
||||
position = position.clamp(Vector2.ZERO, get_viewport_rect().size)
|
||||
|
||||
func movetofish(loc):
|
||||
Vector2(loc, 660)
|
||||
|
||||
@@ -13,6 +13,14 @@ func _on_pressed() -> void:
|
||||
button_sound.play()
|
||||
await button_sound.finished
|
||||
|
||||
var next_scene = load("res://scenes/game/comet_zap.tscn").instantiate()
|
||||
next_scene.word_set = get_tree().current_scene.word_set
|
||||
get_tree().change_scene_to_node(next_scene)
|
||||
if get_tree().current_scene.name == "CometZap":
|
||||
var next_scene = load("res://scenes/game/comet_zap.tscn").instantiate()
|
||||
next_scene.word_set = get_tree().current_scene.word_set
|
||||
get_tree().change_scene_to_node(next_scene)
|
||||
elif get_tree().current_scene.name == "FishCascade":
|
||||
var next_scene = load("res://scenes/game/fish_cascade.tscn").instantiate()
|
||||
next_scene.word_set = get_tree().current_scene.word_set
|
||||
get_tree().change_scene_to_node(next_scene)
|
||||
else:
|
||||
var next_scene = load("res://scenes/menus/select_mode/select_mode.tscn").instantiate()
|
||||
get_tree().change_scene_to_node(next_scene)
|
||||
|
||||
Reference in New Issue
Block a user