1.1.0 Update - New music, pause screen, and main menu Info screen. Resizable app window added.
This commit is contained in:
@@ -3,6 +3,14 @@ extends Node
|
||||
@onready var level_path = "levels/level_"
|
||||
|
||||
func _ready():
|
||||
$SkyBk.hide()
|
||||
$ThankYou.hide()
|
||||
$kitty_boo.hide()
|
||||
$TotalText.hide()
|
||||
$CharacterBody2D_level2.hide()
|
||||
$TotalDigits.hide()
|
||||
$PlayAgain.hide()
|
||||
$BackToMenu.hide()
|
||||
await get_tree().create_timer(2.0).timeout
|
||||
$SkyBk.show()
|
||||
$ThankYou.show()
|
||||
|
||||
+28
-36
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=59 format=3 uid="uid://b0nye2ck67wlf"]
|
||||
[gd_scene 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"]
|
||||
@@ -144,23 +144,23 @@ 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_4plmq"]
|
||||
texture = ExtResource("7_4plmq")
|
||||
|
||||
[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_aqr3k"]
|
||||
texture = ExtResource("7_3hoa0")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_3nyyv"]
|
||||
texture = ExtResource("9_4b5al")
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_4b5al"]
|
||||
texture = ExtResource("10_1cg5h")
|
||||
|
||||
[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="StyleBoxTexture" id="StyleBoxTexture_3nyyv"]
|
||||
texture = ExtResource("9_4b5al")
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0u521"]
|
||||
atlas = ExtResource("11_l7wyg")
|
||||
@@ -292,7 +292,7 @@ animations = [{
|
||||
"speed": 12.0
|
||||
}]
|
||||
|
||||
[node name="5-e" type="Control"]
|
||||
[node name="5-e" type="Control" unique_id=9751882]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
@@ -302,7 +302,7 @@ grow_vertical = 2
|
||||
script = ExtResource("1_m3643")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
[node name="ColorRect" type="ColorRect" parent="." unique_id=2021153781]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
@@ -312,8 +312,7 @@ grow_vertical = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="SkyBk" type="Panel" parent="."]
|
||||
visible = false
|
||||
[node name="SkyBk" type="Panel" parent="." unique_id=1694717215]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
@@ -323,8 +322,7 @@ grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxTexture_1eunw")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="TotalText" type="Label" parent="."]
|
||||
visible = false
|
||||
[node name="TotalText" type="Label" parent="." unique_id=1095690378]
|
||||
layout_mode = 1
|
||||
anchors_preset = 14
|
||||
anchor_top = 0.5
|
||||
@@ -342,8 +340,7 @@ horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="ThankYou" type="Label" parent="."]
|
||||
visible = false
|
||||
[node name="ThankYou" type="Label" parent="." unique_id=463017006]
|
||||
layout_mode = 1
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
@@ -358,13 +355,12 @@ horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="CharacterBody2D_level2" type="Area2D" parent="."]
|
||||
visible = false
|
||||
[node name="CharacterBody2D_level2" type="Area2D" parent="." unique_id=625743148]
|
||||
z_index = 10
|
||||
position = Vector2(587, 236)
|
||||
scale = Vector2(0.75, 0.75)
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="CharacterBody2D_level2"]
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="CharacterBody2D_level2" unique_id=273916390]
|
||||
unique_name_in_owner = true
|
||||
sprite_frames = SubResource("SpriteFrames_1jorq")
|
||||
autoplay = "default"
|
||||
@@ -372,12 +368,11 @@ frame = 11
|
||||
frame_progress = 0.842595
|
||||
speed_scale = 2.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D_level2"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D_level2" unique_id=1431147995]
|
||||
position = Vector2(0, -1)
|
||||
shape = SubResource("RectangleShape2D_03mcx")
|
||||
|
||||
[node name="TotalDigits" type="Label" parent="."]
|
||||
visible = false
|
||||
[node name="TotalDigits" type="Label" parent="." unique_id=1463536857]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
@@ -402,8 +397,7 @@ horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="PlayAgain" type="Button" parent="."]
|
||||
visible = false
|
||||
[node name="PlayAgain" type="Button" parent="." unique_id=922191084]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.5
|
||||
@@ -419,12 +413,11 @@ 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")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxTexture_l7wyg")
|
||||
theme_override_styles/hover = SubResource("StyleBoxTexture_aqr3k")
|
||||
|
||||
[node name="BackToMenu" type="Button" parent="."]
|
||||
visible = false
|
||||
[node name="BackToMenu" type="Button" parent="." unique_id=1609317135]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.5
|
||||
@@ -437,16 +430,15 @@ 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")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxTexture_6nyvn")
|
||||
theme_override_styles/hover = SubResource("StyleBoxTexture_3nyyv")
|
||||
|
||||
[node name="star_pickup" type="AudioStreamPlayer" parent="."]
|
||||
[node name="star_pickup" type="AudioStreamPlayer" parent="." unique_id=121809805]
|
||||
stream = ExtResource("11_aqr3k")
|
||||
volume_db = -15.0
|
||||
|
||||
[node name="kitty_boo" type="CharacterBody2D" parent="."]
|
||||
visible = false
|
||||
[node name="kitty_boo" type="CharacterBody2D" parent="." unique_id=1026558612]
|
||||
z_index = 5
|
||||
position = Vector2(28, 450)
|
||||
scale = Vector2(1.5, 1.5)
|
||||
@@ -454,7 +446,7 @@ collision_layer = 0
|
||||
collision_mask = 0
|
||||
slide_on_ceiling = false
|
||||
|
||||
[node name="Sprite2D" type="AnimatedSprite2D" parent="kitty_boo"]
|
||||
[node name="Sprite2D" type="AnimatedSprite2D" parent="kitty_boo" unique_id=2074166632]
|
||||
texture_filter = 1
|
||||
position = Vector2(396.667, -253.333)
|
||||
scale = Vector2(4.5, 4.5)
|
||||
@@ -462,7 +454,7 @@ sprite_frames = SubResource("SpriteFrames_q1241")
|
||||
animation = &"running"
|
||||
autoplay = "idle"
|
||||
|
||||
[node name="menu_music" type="AudioStreamPlayer" parent="."]
|
||||
[node name="menu_music" type="AudioStreamPlayer" parent="." unique_id=1470414188]
|
||||
stream = ExtResource("15_oi55o")
|
||||
volume_db = -6.0
|
||||
parameters/looping = true
|
||||
|
||||
+845
-7
File diff suppressed because one or more lines are too long
+1
-1
@@ -5,6 +5,7 @@ extends Area2D
|
||||
func _on_body_entered(body):
|
||||
if (body.name == "kitty_boo"):
|
||||
#game_manager.confirm_box()
|
||||
print("Kitty Boo entered!")
|
||||
kitty_boo.call_deferred("free")
|
||||
$AnimatedSprite2D.play("default")
|
||||
$"../level_1_theme".stop()
|
||||
@@ -13,4 +14,3 @@ func _on_body_entered(body):
|
||||
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")
|
||||
|
||||
|
||||
+6
-8
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://dt4a45eiw3akt"]
|
||||
[gd_scene 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"]
|
||||
@@ -28,20 +28,18 @@ animations = [{
|
||||
[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)
|
||||
[node name="box" type="Area2D" unique_id=1791867506]
|
||||
script = ExtResource("2_uuq2p")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=412840771]
|
||||
texture_filter = 5
|
||||
position = Vector2(-1.19209e-07, -70)
|
||||
scale = Vector2(5.5, 5.5)
|
||||
scale = Vector2(2.75, 2.75)
|
||||
sprite_frames = SubResource("SpriteFrames_0nq55")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1194328404]
|
||||
position = Vector2(0, -78)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
scale = Vector2(0.25, 0.25)
|
||||
shape = SubResource("RectangleShape2D_o07hu")
|
||||
one_way_collision = true
|
||||
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ extends Area2D
|
||||
|
||||
|
||||
func _on_body_entered(body):
|
||||
if (body.name == "kitty_boo"):
|
||||
if (body.name == "kitty_boo") and body.velocity.y > 0:
|
||||
#game_manager.confirm_box()
|
||||
kitty_boo.call_deferred("free")
|
||||
$AnimatedSprite2D.play("default")
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
extends CanvasLayer
|
||||
|
||||
@onready var paused:bool = false
|
||||
@onready var master_bus_idx: int = AudioServer.get_bus_index("Master")
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
process_mode = Node.PROCESS_MODE_ALWAYS
|
||||
hide()
|
||||
|
||||
|
||||
#func _physics_process(delta):
|
||||
#if Input.is_key_pressed(KEY_ESCAPE) and paused == false:
|
||||
#await get_tree().create_timer(0.25).timeout
|
||||
##paused = true
|
||||
##get_tree().paused = true
|
||||
#show()
|
||||
#elif Input.is_key_pressed(KEY_ESCAPE) and paused == true:
|
||||
#await get_tree().create_timer(0.25).timeout
|
||||
##paused = false
|
||||
##get_tree().paused = false
|
||||
#hide()
|
||||
|
||||
|
||||
func _on_back_to_menu_pressed() -> void:
|
||||
#$menu_music.stop()
|
||||
#$star_pickup.play()
|
||||
await get_tree().create_timer(0.25).timeout
|
||||
AudioServer.set_bus_volume_linear(master_bus_idx, 1.0)
|
||||
#paused = false
|
||||
#get_tree().paused = false
|
||||
#get_tree().change_scene_to_file("res://start_screen.tscn")
|
||||
$".".hide()
|
||||
|
||||
func _on_x_pressed():
|
||||
await get_tree().create_timer(0.25).timeout
|
||||
AudioServer.set_bus_volume_linear(master_bus_idx, 1.0)
|
||||
#paused = false
|
||||
#get_tree().paused = false
|
||||
$".".hide()
|
||||
Binary file not shown.
@@ -19,3 +19,30 @@ func _physics_process(delta):
|
||||
paused = false
|
||||
get_tree().paused = false
|
||||
hide()
|
||||
|
||||
|
||||
#func _on_play_again_pressed() -> void:
|
||||
##$menu_music.stop()
|
||||
##$star_pickup.play()
|
||||
#await get_tree().create_timer(0.5).timeout
|
||||
#get_tree().change_scene_to_file("res://scenes/0-1.tscn")
|
||||
|
||||
|
||||
func _on_back_to_menu_pressed() -> void:
|
||||
await get_tree().create_timer(0.5).timeout
|
||||
paused = false
|
||||
get_tree().paused = false
|
||||
get_tree().change_scene_to_file("res://start_screen.tscn")
|
||||
|
||||
func _on_x_pressed():
|
||||
await get_tree().create_timer(0.25).timeout
|
||||
paused = false
|
||||
get_tree().paused = false
|
||||
$".".hide()
|
||||
|
||||
|
||||
func _on_restart_pressed():
|
||||
await get_tree().create_timer(0.5).timeout
|
||||
paused = false
|
||||
get_tree().paused = false
|
||||
get_tree().change_scene_to_file("res://scenes/0-1.tscn")
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user