First full commit version. Original Files
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,21 @@
|
||||
extends Node
|
||||
|
||||
|
||||
@onready var level_path = "levels/level_"
|
||||
|
||||
|
||||
#Show upcoming level
|
||||
|
||||
func _ready():
|
||||
$"/root/Global".Level = 1
|
||||
await get_tree().create_timer(2.0).timeout
|
||||
$Label.show()
|
||||
$CharacterBody2D_level.show()
|
||||
#print("Visibility On!") #Verify visibility
|
||||
await get_tree().create_timer(3.25).timeout
|
||||
$Label.hide()
|
||||
$CharacterBody2D_level.hide()
|
||||
#print("Visibility Off!")
|
||||
await get_tree().create_timer(1.0).timeout
|
||||
get_tree().change_scene_to_file(str(level_path,$"/root/Global".Level,".tscn"))
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
uid://nukdepwpc0wc
|
||||
@@ -0,0 +1,47 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://cbr07t8yywuw1"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://nukdepwpc0wc" path="res://scenes/0-1.gd" id="1_2wdfq"]
|
||||
[ext_resource type="FontFile" uid="uid://bcf7oh6t3psng" path="res://assets/fonts/ADVERT_0.TTF" id="2_d5f1o"]
|
||||
[ext_resource type="PackedScene" uid="uid://dqiqtd2tc5my2" path="res://scenes/cat_star.tscn" id="3_8vnhg"]
|
||||
|
||||
[node name="0-1" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_2wdfq")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 14
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_top = -59.5
|
||||
offset_bottom = 59.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_fonts/font = ExtResource("2_d5f1o")
|
||||
theme_override_font_sizes/font_size = 48
|
||||
text = "Level 1"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="CharacterBody2D_level" parent="." instance=ExtResource("3_8vnhg")]
|
||||
z_index = 10
|
||||
position = Vector2(640, 240)
|
||||
script = null
|
||||
@@ -0,0 +1,23 @@
|
||||
extends Node
|
||||
|
||||
|
||||
@onready var level_path = "levels/level_"
|
||||
|
||||
|
||||
#Show upcoming level
|
||||
|
||||
func _ready():
|
||||
$"/root/Global".Level = 2
|
||||
await get_tree().create_timer(2.0).timeout
|
||||
$Label.show()
|
||||
$CharacterBody2D_level.show()
|
||||
$CharacterBody2D_level2.show()
|
||||
#print("Visibility On!") #Verify visibility
|
||||
await get_tree().create_timer(3.25).timeout
|
||||
$Label.hide()
|
||||
$CharacterBody2D_level.hide()
|
||||
$CharacterBody2D_level2.hide()
|
||||
#print("Visibility Off!")
|
||||
await get_tree().create_timer(1.0).timeout
|
||||
get_tree().change_scene_to_file(str(level_path,$"/root/Global".Level,".tscn"))
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
uid://lp6t80o67tv6
|
||||
@@ -0,0 +1,55 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://b2hruko3q537q"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://lp6t80o67tv6" path="res://scenes/1-2.gd" id="1_51ipv"]
|
||||
[ext_resource type="FontFile" uid="uid://bcf7oh6t3psng" path="res://assets/fonts/ADVERT_0.TTF" id="2_wrs78"]
|
||||
[ext_resource type="PackedScene" uid="uid://dqiqtd2tc5my2" path="res://scenes/cat_star.tscn" id="3_7pdee"]
|
||||
|
||||
[node name="1-2" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_51ipv")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 14
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_top = -29.0
|
||||
offset_bottom = 29.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_fonts/font = ExtResource("2_wrs78")
|
||||
theme_override_font_sizes/font_size = 48
|
||||
text = "Level 2"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="CharacterBody2D_level" parent="." instance=ExtResource("3_7pdee")]
|
||||
visible = false
|
||||
z_index = 10
|
||||
position = Vector2(590, 240)
|
||||
script = null
|
||||
|
||||
[node name="CharacterBody2D_level2" parent="." instance=ExtResource("3_7pdee")]
|
||||
visible = false
|
||||
z_index = 10
|
||||
position = Vector2(690, 240)
|
||||
script = null
|
||||
@@ -0,0 +1,25 @@
|
||||
extends Node
|
||||
|
||||
|
||||
@onready var level_path = "levels/level_"
|
||||
|
||||
|
||||
#Show upcoming level
|
||||
|
||||
func _ready():
|
||||
$"/root/Global".Level = 3
|
||||
await get_tree().create_timer(2.0).timeout
|
||||
$Label.show()
|
||||
$CharacterBody2D_level.show()
|
||||
$CharacterBody2D_level2.show()
|
||||
$CharacterBody2D_level3.show()
|
||||
#print("Visibility On!") #Verify visibility
|
||||
await get_tree().create_timer(3.25).timeout
|
||||
$Label.hide()
|
||||
$CharacterBody2D_level.hide()
|
||||
$CharacterBody2D_level2.hide()
|
||||
$CharacterBody2D_level3.hide()
|
||||
#print("Visibility Off!")
|
||||
await get_tree().create_timer(1.0).timeout
|
||||
get_tree().change_scene_to_file(str(level_path,$"/root/Global".Level,".tscn"))
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
uid://c0asbhag4asv1
|
||||
@@ -0,0 +1,60 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://hbjh5o41nqw2"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c0asbhag4asv1" path="res://scenes/2-3.gd" id="1_xqve7"]
|
||||
[ext_resource type="FontFile" uid="uid://bcf7oh6t3psng" path="res://assets/fonts/ADVERT_0.TTF" id="2_a1xpv"]
|
||||
[ext_resource type="PackedScene" uid="uid://dqiqtd2tc5my2" path="res://scenes/cat_star.tscn" id="3_xacb2"]
|
||||
|
||||
[node name="2-3" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_xqve7")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 14
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_top = -59.5
|
||||
offset_bottom = 59.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_fonts/font = ExtResource("2_a1xpv")
|
||||
theme_override_font_sizes/font_size = 48
|
||||
text = "Level 3"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="CharacterBody2D_level" parent="." instance=ExtResource("3_xacb2")]
|
||||
visible = false
|
||||
z_index = 10
|
||||
position = Vector2(540, 240)
|
||||
script = null
|
||||
|
||||
[node name="CharacterBody2D_level2" parent="." instance=ExtResource("3_xacb2")]
|
||||
visible = false
|
||||
z_index = 10
|
||||
position = Vector2(640, 240)
|
||||
script = null
|
||||
|
||||
[node name="CharacterBody2D_level3" parent="." instance=ExtResource("3_xacb2")]
|
||||
visible = false
|
||||
z_index = 10
|
||||
position = Vector2(740, 240)
|
||||
script = null
|
||||
@@ -0,0 +1,27 @@
|
||||
extends Node
|
||||
|
||||
|
||||
@onready var level_path = "levels/level_"
|
||||
|
||||
|
||||
#Show upcoming level
|
||||
|
||||
func _ready():
|
||||
$"/root/Global".Level = 4
|
||||
await get_tree().create_timer(2.0).timeout
|
||||
$Label.show()
|
||||
$CharacterBody2D_level.show()
|
||||
$CharacterBody2D_level2.show()
|
||||
$CharacterBody2D_level3.show()
|
||||
$CharacterBody2D_level4.show()
|
||||
#print("Visibility On!") #Verify visibility
|
||||
await get_tree().create_timer(3.25).timeout
|
||||
$Label.hide()
|
||||
$CharacterBody2D_level.hide()
|
||||
$CharacterBody2D_level2.hide()
|
||||
$CharacterBody2D_level3.hide()
|
||||
$CharacterBody2D_level4.hide()
|
||||
#print("Visibility Off!")
|
||||
await get_tree().create_timer(1.0).timeout
|
||||
get_tree().change_scene_to_file(str(level_path,$"/root/Global".Level,".tscn"))
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
uid://cejip7omdlm3c
|
||||
@@ -0,0 +1,66 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://fgdetljk15va"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cejip7omdlm3c" path="res://scenes/3-4.gd" id="1_wedx5"]
|
||||
[ext_resource type="FontFile" uid="uid://bcf7oh6t3psng" path="res://assets/fonts/ADVERT_0.TTF" id="2_0hes1"]
|
||||
[ext_resource type="PackedScene" uid="uid://dqiqtd2tc5my2" path="res://scenes/cat_star.tscn" id="3_gsm1y"]
|
||||
|
||||
[node name="3-4" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_wedx5")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 14
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_top = -59.5
|
||||
offset_bottom = 59.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_fonts/font = ExtResource("2_0hes1")
|
||||
theme_override_font_sizes/font_size = 48
|
||||
text = "Level 4"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="CharacterBody2D_level" parent="." instance=ExtResource("3_gsm1y")]
|
||||
visible = false
|
||||
z_index = 10
|
||||
position = Vector2(490, 240)
|
||||
script = null
|
||||
|
||||
[node name="CharacterBody2D_level2" parent="." instance=ExtResource("3_gsm1y")]
|
||||
visible = false
|
||||
z_index = 10
|
||||
position = Vector2(590, 240)
|
||||
script = null
|
||||
|
||||
[node name="CharacterBody2D_level3" parent="." instance=ExtResource("3_gsm1y")]
|
||||
visible = false
|
||||
z_index = 10
|
||||
position = Vector2(690, 240)
|
||||
script = null
|
||||
|
||||
[node name="CharacterBody2D_level4" parent="." instance=ExtResource("3_gsm1y")]
|
||||
visible = false
|
||||
z_index = 10
|
||||
position = Vector2(790, 240)
|
||||
script = null
|
||||
@@ -0,0 +1,29 @@
|
||||
extends Node
|
||||
|
||||
|
||||
@onready var level_path = "levels/level_"
|
||||
|
||||
|
||||
#Show upcoming level
|
||||
|
||||
func _ready():
|
||||
$"/root/Global".Level = 5
|
||||
await get_tree().create_timer(2.0).timeout
|
||||
$Label.show()
|
||||
$CharacterBody2D_level.show()
|
||||
$CharacterBody2D_level2.show()
|
||||
$CharacterBody2D_level3.show()
|
||||
$CharacterBody2D_level4.show()
|
||||
$CharacterBody2D_level5.show()
|
||||
#print("Visibility On!") #Verify visibility
|
||||
await get_tree().create_timer(3.25).timeout
|
||||
$Label.hide()
|
||||
$CharacterBody2D_level.hide()
|
||||
$CharacterBody2D_level2.hide()
|
||||
$CharacterBody2D_level3.hide()
|
||||
$CharacterBody2D_level4.hide()
|
||||
$CharacterBody2D_level5.hide()
|
||||
#print("Visibility Off!")
|
||||
await get_tree().create_timer(1.0).timeout
|
||||
get_tree().change_scene_to_file(str(level_path,$"/root/Global".Level,".tscn"))
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
uid://btk0ty37dfrop
|
||||
@@ -0,0 +1,72 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://c4xcj208w78un"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://btk0ty37dfrop" path="res://scenes/4-5.gd" id="1_yphw4"]
|
||||
[ext_resource type="FontFile" uid="uid://bcf7oh6t3psng" path="res://assets/fonts/ADVERT_0.TTF" id="2_3lca1"]
|
||||
[ext_resource type="PackedScene" uid="uid://dqiqtd2tc5my2" path="res://scenes/cat_star.tscn" id="3_e8fwu"]
|
||||
|
||||
[node name="4-5" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_yphw4")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 14
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_top = -59.5
|
||||
offset_bottom = 59.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_fonts/font = ExtResource("2_3lca1")
|
||||
theme_override_font_sizes/font_size = 48
|
||||
text = "Level 5"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="CharacterBody2D_level" parent="." instance=ExtResource("3_e8fwu")]
|
||||
visible = false
|
||||
z_index = 10
|
||||
position = Vector2(440, 240)
|
||||
script = null
|
||||
|
||||
[node name="CharacterBody2D_level2" parent="." instance=ExtResource("3_e8fwu")]
|
||||
visible = false
|
||||
z_index = 10
|
||||
position = Vector2(540, 240)
|
||||
script = null
|
||||
|
||||
[node name="CharacterBody2D_level3" parent="." instance=ExtResource("3_e8fwu")]
|
||||
visible = false
|
||||
z_index = 10
|
||||
position = Vector2(640, 240)
|
||||
script = null
|
||||
|
||||
[node name="CharacterBody2D_level4" parent="." instance=ExtResource("3_e8fwu")]
|
||||
visible = false
|
||||
z_index = 10
|
||||
position = Vector2(740, 240)
|
||||
script = null
|
||||
|
||||
[node name="CharacterBody2D_level5" parent="." instance=ExtResource("3_e8fwu")]
|
||||
visible = false
|
||||
z_index = 10
|
||||
position = Vector2(840, 240)
|
||||
script = null
|
||||
@@ -0,0 +1,34 @@
|
||||
extends Node
|
||||
|
||||
@onready var level_path = "levels/level_"
|
||||
|
||||
func _ready():
|
||||
await get_tree().create_timer(2.0).timeout
|
||||
$SkyBk.show()
|
||||
$ThankYou.show()
|
||||
$kitty_boo.show()
|
||||
$menu_music.play()
|
||||
await get_tree().create_timer(2.0).timeout
|
||||
$TotalText.show()
|
||||
$CharacterBody2D_level2.show()
|
||||
await get_tree().create_timer(2.0).timeout
|
||||
$TotalDigits.text = str($"/root/Global".StarTotal)
|
||||
$TotalDigits.show()
|
||||
$star_pickup.play()
|
||||
await get_tree().create_timer(3.0).timeout
|
||||
$PlayAgain.show()
|
||||
$BackToMenu.show()
|
||||
|
||||
|
||||
func _on_play_again_pressed() -> void:
|
||||
$menu_music.stop()
|
||||
$star_pickup.play()
|
||||
await get_tree().create_timer(1.5).timeout
|
||||
get_tree().change_scene_to_file("res://scenes/0-1.tscn")
|
||||
|
||||
|
||||
func _on_back_to_menu_pressed() -> void:
|
||||
$menu_music.stop()
|
||||
$star_pickup.play()
|
||||
await get_tree().create_timer(1.5).timeout
|
||||
get_tree().change_scene_to_file("res://start_screen.tscn")
|
||||
@@ -0,0 +1 @@
|
||||
uid://bol1byg2ibowb
|
||||
+471
@@ -0,0 +1,471 @@
|
||||
[gd_scene load_steps=59 format=3 uid="uid://b0nye2ck67wlf"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bol1byg2ibowb" path="res://scenes/5-e.gd" id="1_m3643"]
|
||||
[ext_resource type="FontFile" uid="uid://bcf7oh6t3psng" path="res://assets/fonts/ADVERT_0.TTF" id="2_7b3js"]
|
||||
[ext_resource type="Texture2D" uid="uid://b1jel6r3tp38o" path="res://assets/Backgrounds/backgroundEmpty.png" id="2_k6eyf"]
|
||||
[ext_resource type="FontFile" uid="uid://btdabvm8q5yq1" path="res://assets/fonts/VT323-Regular.ttf" id="4_k6eyf"]
|
||||
[ext_resource type="Texture2D" uid="uid://bkaaimliodtlk" path="res://assets/starSpin.png" id="5_1cg5h"]
|
||||
[ext_resource type="Texture2D" uid="uid://ckpout5uu7604" path="res://assets/buttons/play_hover.png" id="7_3hoa0"]
|
||||
[ext_resource type="Texture2D" uid="uid://c1e7833xecvp2" path="res://assets/buttons/play.png" id="7_4plmq"]
|
||||
[ext_resource type="Texture2D" uid="uid://b285060mk1bhu" path="res://assets/buttons/play_selected.png" id="8_1cg5h"]
|
||||
[ext_resource type="Texture2D" uid="uid://b1jbr8p3qheou" path="res://assets/buttons/menu.png" id="9_4b5al"]
|
||||
[ext_resource type="Texture2D" uid="uid://cdy0o8n4fsg46" path="res://assets/buttons/menu_hover.png" id="10_1cg5h"]
|
||||
[ext_resource type="Texture2D" uid="uid://csg5lf875jd0v" path="res://assets/buttons/menu_selected.png" id="10_oi55o"]
|
||||
[ext_resource type="AudioStream" uid="uid://dom5x33m6nqul" path="res://assets/audio/ACatGame_star_collect.ogg" id="11_aqr3k"]
|
||||
[ext_resource type="Texture2D" uid="uid://best8pucbcstg" path="res://assets/WhiteCatIdle.png" id="11_l7wyg"]
|
||||
[ext_resource type="Texture2D" uid="uid://dg51p83v7as1i" path="res://assets/WhiteCatRun.png" id="12_6nyvn"]
|
||||
[ext_resource type="AudioStream" uid="uid://dfh1ub2k27htr" path="res://assets/audio/ACatGame_Menu.mp3" id="15_oi55o"]
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_1eunw"]
|
||||
texture = ExtResource("2_k6eyf")
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_5gm6c"]
|
||||
atlas = ExtResource("5_1cg5h")
|
||||
region = Rect2(0, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3sxgq"]
|
||||
atlas = ExtResource("5_1cg5h")
|
||||
region = Rect2(96, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6een8"]
|
||||
atlas = ExtResource("5_1cg5h")
|
||||
region = Rect2(192, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_r8jnd"]
|
||||
atlas = ExtResource("5_1cg5h")
|
||||
region = Rect2(288, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_auuxs"]
|
||||
atlas = ExtResource("5_1cg5h")
|
||||
region = Rect2(384, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wnu8s"]
|
||||
atlas = ExtResource("5_1cg5h")
|
||||
region = Rect2(480, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tdy4w"]
|
||||
atlas = ExtResource("5_1cg5h")
|
||||
region = Rect2(576, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wakok"]
|
||||
atlas = ExtResource("5_1cg5h")
|
||||
region = Rect2(672, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_oj4s1"]
|
||||
atlas = ExtResource("5_1cg5h")
|
||||
region = Rect2(768, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_86cm0"]
|
||||
atlas = ExtResource("5_1cg5h")
|
||||
region = Rect2(864, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_e8wp4"]
|
||||
atlas = ExtResource("5_1cg5h")
|
||||
region = Rect2(960, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_x5dik"]
|
||||
atlas = ExtResource("5_1cg5h")
|
||||
region = Rect2(1056, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_4k6ij"]
|
||||
atlas = ExtResource("5_1cg5h")
|
||||
region = Rect2(1152, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ya87j"]
|
||||
atlas = ExtResource("5_1cg5h")
|
||||
region = Rect2(1248, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lj2a6"]
|
||||
atlas = ExtResource("5_1cg5h")
|
||||
region = Rect2(1344, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gt727"]
|
||||
atlas = ExtResource("5_1cg5h")
|
||||
region = Rect2(1440, 0, 96, 96)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_1jorq"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_5gm6c")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_3sxgq")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6een8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_r8jnd")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_auuxs")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_wnu8s")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_tdy4w")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_wakok")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_oj4s1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_86cm0")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_e8wp4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_x5dik")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_4k6ij")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ya87j")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lj2a6")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_gt727")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_03mcx"]
|
||||
size = Vector2(61.5, 57.5)
|
||||
|
||||
[sub_resource type="Theme" id="Theme_1eunw"]
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_aqr3k"]
|
||||
texture = ExtResource("7_3hoa0")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_l7wyg"]
|
||||
texture = ExtResource("8_1cg5h")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_4plmq"]
|
||||
texture = ExtResource("7_4plmq")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_3nyyv"]
|
||||
texture = ExtResource("9_4b5al")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_6nyvn"]
|
||||
texture = ExtResource("10_oi55o")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_4b5al"]
|
||||
texture = ExtResource("10_1cg5h")
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0u521"]
|
||||
atlas = ExtResource("11_l7wyg")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lifgm"]
|
||||
atlas = ExtResource("11_l7wyg")
|
||||
region = Rect2(0, 32, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_21hvb"]
|
||||
atlas = ExtResource("11_l7wyg")
|
||||
region = Rect2(0, 64, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gpym0"]
|
||||
atlas = ExtResource("11_l7wyg")
|
||||
region = Rect2(0, 96, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_xfd2n"]
|
||||
atlas = ExtResource("11_l7wyg")
|
||||
region = Rect2(0, 128, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vcaqp"]
|
||||
atlas = ExtResource("11_l7wyg")
|
||||
region = Rect2(0, 160, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_v0wx4"]
|
||||
atlas = ExtResource("12_6nyvn")
|
||||
region = Rect2(0, 32, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_828u6"]
|
||||
atlas = ExtResource("12_6nyvn")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qifc5"]
|
||||
atlas = ExtResource("12_6nyvn")
|
||||
region = Rect2(0, 64, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_v2ts1"]
|
||||
atlas = ExtResource("12_6nyvn")
|
||||
region = Rect2(0, 160, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_iwmwp"]
|
||||
atlas = ExtResource("12_6nyvn")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_aeahq"]
|
||||
atlas = ExtResource("12_6nyvn")
|
||||
region = Rect2(0, 32, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ufa6i"]
|
||||
atlas = ExtResource("12_6nyvn")
|
||||
region = Rect2(0, 64, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_je3he"]
|
||||
atlas = ExtResource("12_6nyvn")
|
||||
region = Rect2(0, 96, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_q6owf"]
|
||||
atlas = ExtResource("12_6nyvn")
|
||||
region = Rect2(0, 128, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jgc46"]
|
||||
atlas = ExtResource("12_6nyvn")
|
||||
region = Rect2(0, 160, 32, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_q1241"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0u521")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lifgm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_21hvb")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_gpym0")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_xfd2n")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_vcaqp")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 6.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_v0wx4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_828u6")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qifc5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_v2ts1")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"jump",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_iwmwp")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_aeahq")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ufa6i")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_je3he")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_q6owf")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jgc46")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"running",
|
||||
"speed": 12.0
|
||||
}]
|
||||
|
||||
[node name="5-e" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_m3643")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="SkyBk" type="Panel" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxTexture_1eunw")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="TotalText" type="Label" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 14
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_top = -162.0
|
||||
offset_bottom = -43.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_colors/font_color = Color(0.2, 0.2, 0.2, 1)
|
||||
theme_override_fonts/font = ExtResource("2_7b3js")
|
||||
theme_override_font_sizes/font_size = 48
|
||||
text = "Total Collected!"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ThankYou" type="Label" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
offset_top = 141.0
|
||||
offset_bottom = 178.0
|
||||
grow_horizontal = 2
|
||||
theme_override_colors/font_color = Color(0.643137, 0.117647, 0.0862745, 1)
|
||||
theme_override_fonts/font = ExtResource("4_k6eyf")
|
||||
theme_override_font_sizes/font_size = 36
|
||||
text = "Thank you for playing!"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="CharacterBody2D_level2" type="Area2D" parent="."]
|
||||
visible = false
|
||||
z_index = 10
|
||||
position = Vector2(587, 236)
|
||||
scale = Vector2(0.75, 0.75)
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="CharacterBody2D_level2"]
|
||||
unique_name_in_owner = true
|
||||
sprite_frames = SubResource("SpriteFrames_1jorq")
|
||||
autoplay = "default"
|
||||
frame = 11
|
||||
frame_progress = 0.842595
|
||||
speed_scale = 2.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D_level2"]
|
||||
position = Vector2(0, -1)
|
||||
shape = SubResource("RectangleShape2D_03mcx")
|
||||
|
||||
[node name="TotalDigits" type="Label" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -55.5
|
||||
offset_top = -57.0
|
||||
offset_right = 55.5
|
||||
offset_bottom = 57.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
pivot_offset = Vector2(55.5, 57)
|
||||
theme_override_colors/font_color = Color(0.960784, 0.815686, 0.333333, 1)
|
||||
theme_override_colors/font_shadow_color = Color(0.717647, 0.188235, 0.188235, 1)
|
||||
theme_override_constants/shadow_offset_x = 5
|
||||
theme_override_constants/shadow_offset_y = 5
|
||||
theme_override_fonts/font = ExtResource("2_7b3js")
|
||||
theme_override_font_sizes/font_size = 96
|
||||
text = "000"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="PlayAgain" type="Button" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.687
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.687
|
||||
offset_left = -160.0
|
||||
offset_top = -44.16
|
||||
offset_right = 160.0
|
||||
offset_bottom = 44.84
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
scale = Vector2(0.75, 0.75)
|
||||
pivot_offset = Vector2(160, 44)
|
||||
theme = SubResource("Theme_1eunw")
|
||||
theme_override_styles/hover = SubResource("StyleBoxTexture_aqr3k")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxTexture_l7wyg")
|
||||
theme_override_styles/normal = SubResource("StyleBoxTexture_4plmq")
|
||||
|
||||
[node name="BackToMenu" type="Button" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.817
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.817
|
||||
offset_left = -159.0
|
||||
offset_top = -41.56
|
||||
offset_right = 161.0
|
||||
offset_bottom = 47.44
|
||||
scale = Vector2(0.75, 0.75)
|
||||
pivot_offset = Vector2(160, 45)
|
||||
theme_override_styles/hover = SubResource("StyleBoxTexture_3nyyv")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxTexture_6nyvn")
|
||||
theme_override_styles/normal = SubResource("StyleBoxTexture_4b5al")
|
||||
|
||||
[node name="star_pickup" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("11_aqr3k")
|
||||
volume_db = -15.0
|
||||
|
||||
[node name="kitty_boo" type="CharacterBody2D" parent="."]
|
||||
visible = false
|
||||
z_index = 5
|
||||
position = Vector2(28, 450)
|
||||
scale = Vector2(1.5, 1.5)
|
||||
collision_layer = 0
|
||||
collision_mask = 0
|
||||
slide_on_ceiling = false
|
||||
|
||||
[node name="Sprite2D" type="AnimatedSprite2D" parent="kitty_boo"]
|
||||
texture_filter = 1
|
||||
position = Vector2(396.667, -253.333)
|
||||
scale = Vector2(4.5, 4.5)
|
||||
sprite_frames = SubResource("SpriteFrames_q1241")
|
||||
animation = &"running"
|
||||
autoplay = "idle"
|
||||
|
||||
[node name="menu_music" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("15_oi55o")
|
||||
volume_db = -6.0
|
||||
parameters/looping = true
|
||||
|
||||
[connection signal="pressed" from="PlayAgain" to="." method="_on_play_again_pressed"]
|
||||
[connection signal="pressed" from="BackToMenu" to="." method="_on_back_to_menu_pressed"]
|
||||
@@ -0,0 +1,3 @@
|
||||
[gd_scene format=3 uid="uid://bo88goswugx77"]
|
||||
|
||||
[node name="Hud" type="CanvasLayer"]
|
||||
@@ -0,0 +1,144 @@
|
||||
[gd_scene load_steps=21 format=3 uid="uid://dqiqtd2tc5my2"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bkaaimliodtlk" path="res://assets/starSpin.png" id="1_043sy"]
|
||||
[ext_resource type="Script" path="res://scenes/collectible.gd" id="1_wgcun"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_5gm6c"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(0, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3sxgq"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(96, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6een8"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(192, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_r8jnd"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(288, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_auuxs"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(384, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wnu8s"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(480, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tdy4w"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(576, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wakok"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(672, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_oj4s1"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(768, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_86cm0"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(864, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_e8wp4"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(960, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_x5dik"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(1056, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_4k6ij"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(1152, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ya87j"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(1248, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lj2a6"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(1344, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gt727"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(1440, 0, 96, 96)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_1jorq"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_5gm6c")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_3sxgq")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6een8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_r8jnd")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_auuxs")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_wnu8s")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_tdy4w")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_wakok")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_oj4s1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_86cm0")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_e8wp4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_x5dik")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_4k6ij")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ya87j")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lj2a6")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_gt727")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_03mcx"]
|
||||
size = Vector2(61.5, 57.5)
|
||||
|
||||
[node name="Area2D" type="Area2D"]
|
||||
script = ExtResource("1_wgcun")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
sprite_frames = SubResource("SpriteFrames_1jorq")
|
||||
autoplay = "default"
|
||||
frame = 11
|
||||
frame_progress = 0.842595
|
||||
speed_scale = 2.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, -1)
|
||||
shape = SubResource("RectangleShape2D_03mcx")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
@@ -0,0 +1,144 @@
|
||||
[gd_scene load_steps=21 format=3 uid="uid://dqiqtd2tc5my2"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bkaaimliodtlk" path="res://assets/starSpin.png" id="1_043sy"]
|
||||
[ext_resource type="Script" uid="uid://bwfsa5w0dsrpe" path="res://scenes/collectible.gd" id="1_wgcun"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_5gm6c"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(0, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3sxgq"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(96, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6een8"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(192, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_r8jnd"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(288, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_auuxs"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(384, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wnu8s"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(480, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tdy4w"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(576, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wakok"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(672, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_oj4s1"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(768, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_86cm0"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(864, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_e8wp4"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(960, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_x5dik"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(1056, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_4k6ij"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(1152, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ya87j"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(1248, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lj2a6"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(1344, 0, 96, 96)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gt727"]
|
||||
atlas = ExtResource("1_043sy")
|
||||
region = Rect2(1440, 0, 96, 96)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_1jorq"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_5gm6c")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_3sxgq")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6een8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_r8jnd")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_auuxs")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_wnu8s")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_tdy4w")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_wakok")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_oj4s1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_86cm0")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_e8wp4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_x5dik")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_4k6ij")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ya87j")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lj2a6")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_gt727")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_03mcx"]
|
||||
size = Vector2(61.5, 57.5)
|
||||
|
||||
[node name="Area2D" type="Area2D"]
|
||||
script = ExtResource("1_wgcun")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
sprite_frames = SubResource("SpriteFrames_1jorq")
|
||||
autoplay = "default"
|
||||
frame = 11
|
||||
frame_progress = 0.842595
|
||||
speed_scale = 2.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, -1)
|
||||
shape = SubResource("RectangleShape2D_03mcx")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
@@ -0,0 +1,14 @@
|
||||
extends Area2D
|
||||
|
||||
var game_mgr
|
||||
|
||||
func _ready():
|
||||
game_mgr = %GameMgr
|
||||
|
||||
|
||||
|
||||
func _on_body_entered(body):
|
||||
if (body.name == "kitty_boo"):
|
||||
queue_free()
|
||||
game_mgr.add_points()
|
||||
$"../../star_pickup".play()
|
||||
@@ -0,0 +1 @@
|
||||
uid://bwfsa5w0dsrpe
|
||||
@@ -0,0 +1,46 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://dt4a45eiw3akt"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bjhjrqqdmhpaf" path="res://assets/box.png" id="1_akeeu"]
|
||||
[ext_resource type="Script" path="res://scenes/end_box.gd" id="2_uuq2p"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lqicg"]
|
||||
atlas = ExtResource("1_akeeu")
|
||||
region = Rect2(650, 0, 650, 449)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_r7y3x"]
|
||||
atlas = ExtResource("1_akeeu")
|
||||
region = Rect2(0, 0, 650, 449)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_0nq55"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lqicg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_r7y3x")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_o07hu"]
|
||||
size = Vector2(445.309, 35.625)
|
||||
|
||||
[node name="box" type="Area2D"]
|
||||
position = Vector2(1, 0)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
script = ExtResource("2_uuq2p")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
scale = Vector2(0.5, 0.5)
|
||||
sprite_frames = SubResource("SpriteFrames_0nq55")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, -78)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
shape = SubResource("RectangleShape2D_o07hu")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
@@ -0,0 +1,46 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://dt4a45eiw3akt"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bjhjrqqdmhpaf" path="res://assets/box.png" id="1_akeeu"]
|
||||
[ext_resource type="Script" path="res://scenes/end_box.gd" id="2_uuq2p"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lqicg"]
|
||||
atlas = ExtResource("1_akeeu")
|
||||
region = Rect2(650, 0, 650, 449)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_r7y3x"]
|
||||
atlas = ExtResource("1_akeeu")
|
||||
region = Rect2(0, 0, 650, 449)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_0nq55"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lqicg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_r7y3x")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_o07hu"]
|
||||
size = Vector2(445.309, 35.625)
|
||||
|
||||
[node name="box" type="Area2D"]
|
||||
position = Vector2(1, 0)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
script = ExtResource("2_uuq2p")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
scale = Vector2(0.5, 0.5)
|
||||
sprite_frames = SubResource("SpriteFrames_0nq55")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, -78)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
shape = SubResource("RectangleShape2D_o07hu")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
@@ -0,0 +1,46 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://dt4a45eiw3akt"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bjhjrqqdmhpaf" path="res://assets/box.png" id="1_akeeu"]
|
||||
[ext_resource type="Script" path="res://scenes/end_box.gd" id="2_uuq2p"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lqicg"]
|
||||
atlas = ExtResource("1_akeeu")
|
||||
region = Rect2(650, 0, 650, 449)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_r7y3x"]
|
||||
atlas = ExtResource("1_akeeu")
|
||||
region = Rect2(0, 0, 650, 449)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_0nq55"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lqicg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_r7y3x")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_o07hu"]
|
||||
size = Vector2(445.309, 35.625)
|
||||
|
||||
[node name="box" type="Area2D"]
|
||||
position = Vector2(1, 0)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
script = ExtResource("2_uuq2p")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
scale = Vector2(0.5, 0.5)
|
||||
sprite_frames = SubResource("SpriteFrames_0nq55")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, -78)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
shape = SubResource("RectangleShape2D_o07hu")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
@@ -0,0 +1,46 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://dt4a45eiw3akt"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bjhjrqqdmhpaf" path="res://assets/box.png" id="1_akeeu"]
|
||||
[ext_resource type="Script" path="res://scenes/end_box.gd" id="2_uuq2p"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lqicg"]
|
||||
atlas = ExtResource("1_akeeu")
|
||||
region = Rect2(650, 0, 650, 449)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_r7y3x"]
|
||||
atlas = ExtResource("1_akeeu")
|
||||
region = Rect2(0, 0, 650, 449)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_0nq55"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lqicg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_r7y3x")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_o07hu"]
|
||||
size = Vector2(445.309, 35.625)
|
||||
|
||||
[node name="box" type="Area2D"]
|
||||
position = Vector2(1, 0)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
script = ExtResource("2_uuq2p")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
scale = Vector2(0.5, 0.5)
|
||||
sprite_frames = SubResource("SpriteFrames_0nq55")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, -78)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
shape = SubResource("RectangleShape2D_o07hu")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
@@ -0,0 +1,16 @@
|
||||
extends Area2D
|
||||
|
||||
@onready var kitty_boo = get_node("../kitty_boo")
|
||||
|
||||
func _on_body_entered(body):
|
||||
if (body.name == "kitty_boo"):
|
||||
#game_manager.confirm_box()
|
||||
kitty_boo.call_deferred("free")
|
||||
$AnimatedSprite2D.play("default")
|
||||
$"../level_1_theme".stop()
|
||||
$"../box_player".play()
|
||||
$"/root/Global".StarTotal += $"../GameMgr".points
|
||||
print(str("Total Points: ",$"/root/Global".StarTotal))
|
||||
await get_tree().create_timer(11.0).timeout
|
||||
get_tree().change_scene_to_file("res://scenes/1-2.tscn")
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
uid://n03euln3h3rf
|
||||
@@ -0,0 +1,48 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://dt4a45eiw3akt"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bp3iw2tgkoxy3" path="res://assets/ACG_Box2.png" id="2_t1nym"]
|
||||
[ext_resource type="Script" uid="uid://n03euln3h3rf" path="res://scenes/end_box.gd" id="2_uuq2p"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1quqd"]
|
||||
atlas = ExtResource("2_t1nym")
|
||||
region = Rect2(0, 0, 64, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_pk8r4"]
|
||||
atlas = ExtResource("2_t1nym")
|
||||
region = Rect2(64, 0, 64, 64)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_0nq55"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1quqd")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_pk8r4")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_o07hu"]
|
||||
size = Vector2(445.309, 35.625)
|
||||
|
||||
[node name="box" type="Area2D"]
|
||||
position = Vector2(1, 0)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
script = ExtResource("2_uuq2p")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 5
|
||||
position = Vector2(-1.19209e-07, -70)
|
||||
scale = Vector2(5.5, 5.5)
|
||||
sprite_frames = SubResource("SpriteFrames_0nq55")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, -78)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
shape = SubResource("RectangleShape2D_o07hu")
|
||||
one_way_collision = true
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
@@ -0,0 +1,15 @@
|
||||
extends Area2D
|
||||
|
||||
@onready var kitty_boo = get_node("../kitty_boo")
|
||||
|
||||
func _on_body_entered(body):
|
||||
if (body.name == "kitty_boo"):
|
||||
#game_manager.confirm_box()
|
||||
kitty_boo.call_deferred("free")
|
||||
$AnimatedSprite2D.play("default")
|
||||
$"../level_2_theme".stop()
|
||||
$"../box_player".play()
|
||||
$"/root/Global".StarTotal += $"../GameMgr".points
|
||||
print(str("Total Points: ",$"/root/Global".StarTotal))
|
||||
await get_tree().create_timer(11.0).timeout
|
||||
get_tree().change_scene_to_file("res://scenes/2-3.tscn")
|
||||
@@ -0,0 +1 @@
|
||||
uid://687600a6w0gl
|
||||
@@ -0,0 +1,15 @@
|
||||
extends Area2D
|
||||
|
||||
@onready var kitty_boo = get_node("../kitty_boo")
|
||||
|
||||
func _on_body_entered(body):
|
||||
if (body.name == "kitty_boo"):
|
||||
#game_manager.confirm_box()
|
||||
kitty_boo.call_deferred("free")
|
||||
$AnimatedSprite2D.play("default")
|
||||
$"../level_3_theme".stop()
|
||||
$"../box_player".play()
|
||||
$"/root/Global".StarTotal += $"../GameMgr".points
|
||||
print(str("Total Points: ",$"/root/Global".StarTotal))
|
||||
await get_tree().create_timer(11.0).timeout
|
||||
get_tree().change_scene_to_file("res://scenes/3-4.tscn")
|
||||
@@ -0,0 +1 @@
|
||||
uid://kcak7ywjsoi5
|
||||
@@ -0,0 +1,15 @@
|
||||
extends Area2D
|
||||
|
||||
@onready var kitty_boo = get_node("../kitty_boo")
|
||||
|
||||
func _on_body_entered(body):
|
||||
if (body.name == "kitty_boo"):
|
||||
#game_manager.confirm_box()
|
||||
kitty_boo.call_deferred("free")
|
||||
$AnimatedSprite2D.play("default")
|
||||
$"../level_4_theme".stop()
|
||||
$"../box_player".play()
|
||||
$"/root/Global".StarTotal += $"../GameMgr".points
|
||||
print(str("Total Points: ",$"/root/Global".StarTotal))
|
||||
await get_tree().create_timer(11.0).timeout
|
||||
get_tree().change_scene_to_file("res://scenes/4-5.tscn")
|
||||
@@ -0,0 +1 @@
|
||||
uid://dc0c0qejkgqx
|
||||
@@ -0,0 +1,17 @@
|
||||
extends Area2D
|
||||
|
||||
|
||||
@onready var kitty_boo = get_node("../kitty_boo")
|
||||
|
||||
|
||||
func _on_body_entered(body):
|
||||
if (body.name == "kitty_boo"):
|
||||
#game_manager.confirm_box()
|
||||
kitty_boo.call_deferred("free")
|
||||
$AnimatedSprite2D.play("default")
|
||||
$"../level_5_theme".stop()
|
||||
$"../box_player_end".play()
|
||||
$"/root/Global".StarTotal += $"../GameMgr".points
|
||||
print(str("Total Points: ",$"/root/Global".StarTotal))
|
||||
await get_tree().create_timer(11.0).timeout
|
||||
get_tree().change_scene_to_file("res://scenes/5-e.tscn")
|
||||
@@ -0,0 +1 @@
|
||||
uid://nvjr20ju76n4
|
||||
@@ -0,0 +1 @@
|
||||
extends CanvasLayer
|
||||
@@ -0,0 +1 @@
|
||||
uid://c802h8c8ij8op
|
||||
@@ -0,0 +1,58 @@
|
||||
extends CharacterBody2D
|
||||
|
||||
|
||||
const SPEED = 400.0
|
||||
const JUMP_VELOCITY = -800.0
|
||||
@onready var sprite_2d = $Sprite2D
|
||||
@onready var direction
|
||||
|
||||
# Get the gravity from the project settings to be synced with RigidBody nodes.
|
||||
var gravity = ProjectSettings.get_setting("physics/2d/default_gravity")
|
||||
|
||||
|
||||
func _physics_process(delta):
|
||||
#Animations
|
||||
if (velocity.x > 1 || velocity.x < -1):
|
||||
sprite_2d.animation = "running"
|
||||
if $"../player_run".playing == false:
|
||||
$"../player_run".play()
|
||||
else:
|
||||
sprite_2d.animation = "idle"
|
||||
if $"../player_run".playing == true:
|
||||
$"../player_run".stop()
|
||||
|
||||
# Add the gravity.
|
||||
if not is_on_floor():
|
||||
velocity.y += gravity * delta
|
||||
sprite_2d.animation = "jump"
|
||||
if $"../player_run".playing == true:
|
||||
$"../player_run".stop()
|
||||
|
||||
# Handle jump.
|
||||
if Input.is_action_just_pressed("jump") and is_on_floor():
|
||||
velocity.y = JUMP_VELOCITY
|
||||
$"../player_jump".play()
|
||||
|
||||
if Input.is_key_pressed(KEY_RIGHT) or Input.is_key_pressed(KEY_D):
|
||||
direction = 1
|
||||
elif Input.is_key_pressed(KEY_LEFT) or Input.is_key_pressed(KEY_A):
|
||||
direction = -1
|
||||
else:
|
||||
direction = 0
|
||||
if direction:
|
||||
velocity.x = direction * SPEED
|
||||
else:
|
||||
velocity.x = move_toward(velocity.x, 0, 20)
|
||||
|
||||
move_and_slide()
|
||||
var isLeft = velocity.x < 0
|
||||
sprite_2d.flip_h = isLeft
|
||||
|
||||
var playerPos = $".".position.x
|
||||
var tSpeed = 0.5
|
||||
var sOffset = -100.0
|
||||
var fOffset = -200.0
|
||||
if playerPos > 250:
|
||||
$"../Camera2D".offset.x = lerp($"../Camera2D".offset.x,fOffset,tSpeed*delta)
|
||||
else:
|
||||
$"../Camera2D".offset.x = lerp($"../Camera2D".offset.x,sOffset,tSpeed*delta)
|
||||
@@ -0,0 +1 @@
|
||||
uid://bwlwommtutgcc
|
||||
@@ -0,0 +1,153 @@
|
||||
[gd_scene load_steps=21 format=3 uid="uid://cnxtd5y3btqj1"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://best8pucbcstg" path="res://assets/WhiteCatIdle.png" id="1_jm661"]
|
||||
[ext_resource type="Texture2D" uid="uid://dg51p83v7as1i" path="res://assets/WhiteCatRun.png" id="2_jp3go"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0u521"]
|
||||
atlas = ExtResource("1_jm661")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lifgm"]
|
||||
atlas = ExtResource("1_jm661")
|
||||
region = Rect2(0, 32, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_21hvb"]
|
||||
atlas = ExtResource("1_jm661")
|
||||
region = Rect2(0, 64, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gpym0"]
|
||||
atlas = ExtResource("1_jm661")
|
||||
region = Rect2(0, 96, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_xfd2n"]
|
||||
atlas = ExtResource("1_jm661")
|
||||
region = Rect2(0, 128, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vcaqp"]
|
||||
atlas = ExtResource("1_jm661")
|
||||
region = Rect2(0, 160, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_v0wx4"]
|
||||
atlas = ExtResource("2_jp3go")
|
||||
region = Rect2(0, 32, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_828u6"]
|
||||
atlas = ExtResource("2_jp3go")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qifc5"]
|
||||
atlas = ExtResource("2_jp3go")
|
||||
region = Rect2(0, 64, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_v2ts1"]
|
||||
atlas = ExtResource("2_jp3go")
|
||||
region = Rect2(0, 160, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_iwmwp"]
|
||||
atlas = ExtResource("2_jp3go")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_aeahq"]
|
||||
atlas = ExtResource("2_jp3go")
|
||||
region = Rect2(0, 32, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ufa6i"]
|
||||
atlas = ExtResource("2_jp3go")
|
||||
region = Rect2(0, 64, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_je3he"]
|
||||
atlas = ExtResource("2_jp3go")
|
||||
region = Rect2(0, 96, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_q6owf"]
|
||||
atlas = ExtResource("2_jp3go")
|
||||
region = Rect2(0, 128, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jgc46"]
|
||||
atlas = ExtResource("2_jp3go")
|
||||
region = Rect2(0, 160, 32, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_q1241"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0u521")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lifgm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_21hvb")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_gpym0")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_xfd2n")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_vcaqp")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 6.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_v0wx4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_828u6")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qifc5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_v2ts1")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"jump",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_iwmwp")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_aeahq")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ufa6i")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_je3he")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_q6owf")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jgc46")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"running",
|
||||
"speed": 12.0
|
||||
}]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_7sd1r"]
|
||||
radius = 28.2377
|
||||
height = 87.0199
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D"]
|
||||
|
||||
[node name="Sprite2D" type="AnimatedSprite2D" parent="."]
|
||||
texture_filter = 1
|
||||
position = Vector2(39.5, 39.5)
|
||||
scale = Vector2(5.9375, 5.9375)
|
||||
sprite_frames = SubResource("SpriteFrames_q1241")
|
||||
animation = &"running"
|
||||
autoplay = "idle"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(45, 40)
|
||||
rotation = -2.27416
|
||||
shape = SubResource("CapsuleShape2D_7sd1r")
|
||||
@@ -0,0 +1,6 @@
|
||||
extends Label
|
||||
|
||||
#@onready var game_mgr
|
||||
#func _ready():
|
||||
#game_mgr = get_node("/root/aCatGame/GameMgr")
|
||||
#$".".text = (str(%GameMgr.points))
|
||||
@@ -0,0 +1 @@
|
||||
uid://d0soyjq5kb5v7
|
||||
Reference in New Issue
Block a user