Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scenes/final_boss/final_boss_intro.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
[ext_resource type="Texture2D" uid="uid://dw2k0x26axehh" path="res://assets/sprites/FinalBoss/2 Owlet_Monster/Owlet_hover.png" id="17_ilwv4"]
[ext_resource type="Texture2D" uid="uid://dbxk1b30qqnbh" path="res://assets/sprites/FinalBoss/2 Owlet_Monster/Owlet_paunch_4.png" id="18_81ppl"]
[ext_resource type="FontFile" uid="uid://cagjx8tuk6q7w" path="res://assets/fonts/PixelifySans-Regular.ttf" id="18_feohv"]
[ext_resource type="Script" path="res://scenes/final_boss/text.gd" id="18_t4lbs"]
[ext_resource type="Script" path="res://scenes/final_boss/text_2.gd" id="20_t4lbs"]
[ext_resource type="Script" uid="uid://cvqbgfg0ehyau" path="res://scenes/final_boss/text.gd" id="18_t4lbs"]
[ext_resource type="Script" uid="uid://cx0jvbc40hlnv" path="res://scenes/final_boss/text_2.gd" id="20_t4lbs"]
[ext_resource type="Script" uid="uid://bm1dxf1nbswjl" path="res://scenes/time_level/portal_close.gd" id="21_ilwv4"]

[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_t4lbs"]
Expand Down
2 changes: 1 addition & 1 deletion scenes/final_boss/final_boss_phase1.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
[ext_resource type="Texture2D" uid="uid://b815dvlwngr8i" path="res://assets/sprites/tilesets/boss_titles_no_pink.png" id="9_mf1nn"]
[ext_resource type="Texture2D" uid="uid://djwftmtrtg7pq" path="res://assets/sprites/tilesets/boss_platforms.png" id="10_hpmta"]
[ext_resource type="Texture2D" uid="uid://dykbusdobpf3j" path="res://assets/sprites/tilesets/boss_platforms_2.png" id="11_1w4ex"]
[ext_resource type="Script" path="res://scenes/final_boss/text3.gd" id="15_igrjo"]
[ext_resource type="Script" uid="uid://bp8kmc575c88d" path="res://scenes/final_boss/text3.gd" id="15_igrjo"]
[ext_resource type="FontFile" uid="uid://cagjx8tuk6q7w" path="res://assets/fonts/PixelifySans-Regular.ttf" id="16_heain"]

[sub_resource type="Animation" id="Animation_qvbwd"]
Expand Down
2 changes: 1 addition & 1 deletion scenes/final_boss/final_boss_phase2.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[ext_resource type="Texture2D" uid="uid://52hi5k2qufgh" path="res://assets/sprites/backgrounds/final_boss_background2.png" id="1_on63f"]
[ext_resource type="Script" uid="uid://qhw12g383nfg" path="res://scenes/final_boss/final_boss_phase_2.gd" id="2_tnine"]
[ext_resource type="Script" path="res://scenes/final_boss/text4.gd" id="3_sc4n8"]
[ext_resource type="Script" uid="uid://drndm57kw20ob" path="res://scenes/final_boss/text4.gd" id="3_sc4n8"]
[ext_resource type="PackedScene" uid="uid://1dwenc3ti31r" path="res://scenes/player.tscn" id="3_tdfr6"]
[ext_resource type="PackedScene" uid="uid://cor2scf4l42ei" path="res://scenes/tutorial/tutorial_tileset.tscn" id="4_i7g3n"]
[ext_resource type="FontFile" uid="uid://cagjx8tuk6q7w" path="res://assets/fonts/PixelifySans-Regular.ttf" id="4_quv1f"]
Expand Down
2 changes: 1 addition & 1 deletion scenes/space/space_2.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[ext_resource type="PackedScene" uid="uid://3enkgish2037" path="res://scenes/door.tscn" id="7_ahrub"]
[ext_resource type="Script" uid="uid://wkdfrke1mkdb" path="res://scenes/space/button_door.gd" id="8_3fosr"]
[ext_resource type="Texture2D" uid="uid://cxarlif6ajlvn" path="res://assets/sprites/space/doors.png" id="9_cu557"]
[ext_resource type="Script" path="res://scenes/space/kill_area.gd" id="11_wb43s"]
[ext_resource type="Script" uid="uid://cp8lr8gu8i7hq" path="res://scenes/space/kill_area.gd" id="11_wb43s"]

[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_pntx0"]
texture = ExtResource("4_wb43s")
Expand Down
2 changes: 1 addition & 1 deletion scenes/space/space_3.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[ext_resource type="Script" uid="uid://wkdfrke1mkdb" path="res://scenes/space/button_door.gd" id="8_qr23u"]
[ext_resource type="Texture2D" uid="uid://cxarlif6ajlvn" path="res://assets/sprites/space/doors.png" id="9_2gwxb"]
[ext_resource type="PackedScene" uid="uid://3enkgish2037" path="res://scenes/door.tscn" id="10_bpgfv"]
[ext_resource type="Script" path="res://scenes/space/kill_area.gd" id="13_1ytg0"]
[ext_resource type="Script" uid="uid://cp8lr8gu8i7hq" path="res://scenes/space/kill_area.gd" id="13_1ytg0"]
[ext_resource type="Script" uid="uid://wydnyp1xj63l" path="res://scenes/space/space_slime.gd" id="14_ogxyq"]
[ext_resource type="Texture2D" uid="uid://8kqb5fmdc7yy" path="res://assets/sprites/space/space_slime.png" id="15_ogxyq"]

Expand Down
47 changes: 37 additions & 10 deletions scenes/time_level/time_level_2.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=39 format=4 uid="uid://b3doeqcd52nu3"]
[gd_scene load_steps=40 format=4 uid="uid://b3doeqcd52nu3"]

[ext_resource type="Texture2D" uid="uid://dq50epqb4345c" path="res://assets/sprites/time_level/desert_background.png" id="1_xlol3"]
[ext_resource type="Script" uid="uid://cc3efngvlcd0n" path="res://scripts/time_level_2.gd" id="2_0hwx0"]
Expand All @@ -9,13 +9,14 @@
[ext_resource type="PackedScene" uid="uid://cxt6m0734tqan" path="res://scenes/time_level/coconut.tscn" id="6_hpemy"]
[ext_resource type="Texture2D" uid="uid://cgngfxopfhbkm" path="res://assets/sprites/tilesets/tileset_platform_temp.png" id="6_n22yi"]
[ext_resource type="Script" uid="uid://cxfugxk14vbvr" path="res://scenes/time_level/kill_zone.gd" id="7_xk3wa"]
[ext_resource type="Script" uid="uid://bbgikxqbo8pof" path="res://scenes/tutorial/enemy_spirit.gd" id="9_5xohw"]
[ext_resource type="Texture2D" uid="uid://bo7gs2diwbrjf" path="res://assets/sprites/time_level/coconuthover.png" id="9_wu7qb"]
[ext_resource type="Texture2D" uid="uid://ligp2ff8q0yf" path="res://assets/sprites/tutorial/slime_enemy.png" id="10_n22yi"]
[ext_resource type="Script" uid="uid://doceedl5ejqkh" path="res://scenes/tutorial/enemy_spirit_tutorial4.gd" id="11_oq7vi"]
[ext_resource type="PackedScene" uid="uid://3enkgish2037" path="res://scenes/door.tscn" id="12_0hwx0"]
[ext_resource type="Script" uid="uid://bho1hy5k11jnk" path="res://scenes/time_level/ability_text_time.gd" id="13_ek4c7"]
[ext_resource type="AudioStream" uid="uid://0xde7nio4k78" path="res://assets/audio/soundfx/Enemy-Death_SFX.mp3" id="13_mc3vn"]
[ext_resource type="FontFile" uid="uid://cagjx8tuk6q7w" path="res://assets/fonts/PixelifySans-Regular.ttf" id="14_wu7qb"]
[ext_resource type="Script" uid="uid://btyy0e1rjej3s" path="res://scenes/tutorial/text_tutorial_5.gd" id="15_iu2jg"]
[ext_resource type="Script" uid="uid://bpaxufym1fq67" path="res://scenes/tutorial/enemy_death_message.gd" id="17_oq7vi"]

[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_r75vm"]
texture = ExtResource("6_n22yi")
Expand Down Expand Up @@ -317,7 +318,7 @@ length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Text:visible_ratio")
tracks/0/path = NodePath("Label:visible_ratio")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
Expand All @@ -332,7 +333,7 @@ resource_name = "show_tutorial"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Text:visible_ratio")
tracks/0/path = NodePath("Label:visible_ratio")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
Expand Down Expand Up @@ -396,7 +397,7 @@ shape = SubResource("RectangleShape2D_hpemy")
[node name="EnemySpirit" type="Area2D" parent="."]
collision_layer = 4
collision_mask = 7
script = ExtResource("9_5xohw")
script = ExtResource("11_oq7vi")

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="EnemySpirit"]
position = Vector2(186, 121)
Expand Down Expand Up @@ -439,10 +440,10 @@ position = Vector2(-15, 140)
[node name="Spawn" parent="Doors/Door_W" index="1"]
position = Vector2(28, 162)

[node name="AbilityText" type="Node2D" parent="."]
script = ExtResource("13_ek4c7")
[node name="Text" type="Node2D" parent="."]
script = ExtResource("15_iu2jg")

[node name="Text" type="Label" parent="AbilityText"]
[node name="Label" type="Label" parent="Text"]
offset_left = 24.0
offset_top = 16.0
offset_right = 2240.0
Expand All @@ -460,7 +461,33 @@ horizontal_alignment = 1
visible_characters = 0
visible_ratio = 0.0

[node name="AnimationPlayer" type="AnimationPlayer" parent="AbilityText"]
[node name="AnimationPlayer" type="AnimationPlayer" parent="Text"]
libraries = {
&"": SubResource("AnimationLibrary_iu2jg")
}

[node name="EnemyDeathMessage" type="Node2D" parent="."]
script = ExtResource("17_oq7vi")

[node name="Label" type="Label" parent="EnemyDeathMessage"]
offset_left = 24.0
offset_top = 16.0
offset_right = 2240.0
offset_bottom = 529.0
scale = Vector2(0.05, 0.05)
theme_override_colors/font_shadow_color = Color(0.372549, 0.372549, 0.372549, 1)
theme_override_constants/shadow_offset_x = 1
theme_override_constants/shadow_offset_y = 1
theme_override_constants/shadow_outline_size = 75
theme_override_fonts/font = ExtResource("14_wu7qb")
theme_override_font_sizes/font_size = 211
text = "Got em! Take that,
slime!"
horizontal_alignment = 1
visible_characters = 0
visible_ratio = 0.0

[node name="AnimationPlayer" type="AnimationPlayer" parent="EnemyDeathMessage"]
libraries = {
&"": SubResource("AnimationLibrary_iu2jg")
}
Expand Down
2 changes: 1 addition & 1 deletion scenes/time_level/timelevel_start.tscn
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[gd_scene load_steps=61 format=4 uid="uid://d1vrlu0l8t8o"]

[ext_resource type="Texture2D" uid="uid://dq50epqb4345c" path="res://assets/sprites/time_level/desert_background.png" id="1_qdw5g"]
[ext_resource type="Script" path="res://scenes/time_level/time_level.gd" id="2_q6roq"]
[ext_resource type="Script" uid="uid://cnem844s6ma4p" path="res://scenes/time_level/time_level.gd" id="2_q6roq"]
[ext_resource type="PackedScene" uid="uid://1dwenc3ti31r" path="res://scenes/player.tscn" id="3_bridp"]
[ext_resource type="PackedScene" uid="uid://cor2scf4l42ei" path="res://scenes/tutorial/tutorial_tileset.tscn" id="4_5n7uh"]
[ext_resource type="Texture2D" uid="uid://oqc5cg55jq" path="res://assets/sprites/time_level/Sand Tiles.png" id="5_jemru"]
Expand Down
5 changes: 5 additions & 0 deletions scenes/tutorial/enemy_death_message.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
extends Node2D

func show_message():
$Label.visible = true # Show the label (if initially hidden)
$AnimationPlayer.play("show_tutorial") # Play your animation (e.g., fade in or typewriter)
1 change: 1 addition & 0 deletions scenes/tutorial/enemy_death_message.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://bpaxufym1fq67
72 changes: 72 additions & 0 deletions scenes/tutorial/enemy_spirit_tutorial4.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
extends Area2D
# How far to move left and right
@export var move_distance := 10.0
# How long it takes to move one direction
@export var move_duration := 1

# Track direction (1 = right, -1 = left)
var direction := 10
# Where the enemy started
var start_position := Vector2.ZERO

func _ready():
# Save where the enemy begins
start_position = global_position

# Play idle animation
$AnimatedSprite2D.play("idle")

# Start the patrol loop
var current_scene = get_tree().current_scene.name
if current_scene == "time_level_2":
start_patrol()
if current_scene == "SpaceCloneEnemy":
start_patrol()

func start_patrol():
while true:
# Go left or right from the current position, not the start
var target_position = global_position + Vector2(move_distance * direction, 0)
var tween = create_tween()
tween.tween_property(self, "global_position", target_position, move_duration).set_trans(Tween.TRANS_SINE).set_ease(Tween.EASE_IN_OUT)

# Flip the sprite to face the direction
$AnimatedSprite2D.flip_h = direction < 0

# Wait for the tween to finish, then switch direction
await tween.finished
direction *= -1

func _on_body_entered(body: Node2D) -> void:
if body.name == "Player":
body.die()
await get_tree().create_timer(0.5).timeout # Wait for death animation to finish
get_tree().change_scene_to_file("res://scenes/tutorial/tutorial_5.tscn")
if body is RigidBody2D:
print("Something hit the slime!")

# Play hit sound effect
# $HitSound.play()

# Optional: stop log from moving
body.linear_velocity = Vector2.ZERO

# Wait before deleting (0.3 seconds)
if body.has_method("set_should_respawn"):
body.set_should_respawn(false)
await get_tree().create_timer(0.1).timeout

# Play death animation
$AnimatedSprite2D.play("death")

# Wait for animation to finish
await $AnimatedSprite2D.animation_finished
var old_message_node = get_parent().get_node("Text")
old_message_node.hide_message()
var message_node = get_parent().get_node("EnemyDeathMessage")
message_node.show_message()

# THEN hide and remove both
if is_instance_valid(body):
body.queue_free()
queue_free()
1 change: 1 addition & 0 deletions scenes/tutorial/enemy_spirit_tutorial4.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://doceedl5ejqkh
7 changes: 7 additions & 0 deletions scenes/tutorial/text_tutorial_5.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends Node2D

func _ready():
$AnimationPlayer.play("show_tutorial")

func hide_message():
$Label.visible = false
1 change: 1 addition & 0 deletions scenes/tutorial/text_tutorial_5.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://btyy0e1rjej3s
2 changes: 1 addition & 1 deletion scenes/tutorial/tutorial_3.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ position = Vector2(22, 128)

[node name="Door_E" parent="Doors" instance=ExtResource("5_fij67")]
position = Vector2(320, -4)
destination_level_tag = "tutorial_5"
destination_level_tag = "tutorial_4"
destination_door_tag = "W"
spawn_direction = "left"

Expand Down
17 changes: 17 additions & 0 deletions scenes/tutorial/tutorial_4.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
extends TextureRect

func _ready():
AudioManager.play_music_tutorial()

if NavigationManager.spawn_door_tag !=null:
_on_level_spawn(NavigationManager.spawn_door_tag)

func _on_level_spawn(destination_tag: String):
var door_path = "Doors/Door_" + destination_tag
var door = get_node(door_path) as Door
NavigationManager.trigger_player_spawn(door.spawn.global_position, door.spawn_direction)

func _on_spike_body_entered(body: Node2D) -> void:
#if body.name == "Player":
if body is Player:
body.die_tutorial_4()
1 change: 1 addition & 0 deletions scenes/tutorial/tutorial_4.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://dk2253v0ai62y
Loading