Skip to content

Commit

Permalink
Level 1-1 tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
Yolwoocle committed Aug 28, 2024
1 parent 11d6397 commit 9691f96
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 55 deletions.
118 changes: 105 additions & 13 deletions src/scenes/levels_zoomed/world_1/level_110.tscn
Original file line number Diff line number Diff line change
@@ -1,8 +1,86 @@
[gd_scene load_steps=4 format=4 uid="uid://cigiy3usq22m4"]
[gd_scene load_steps=9 format=4 uid="uid://cigiy3usq22m4"]

[ext_resource type="PackedScene" uid="uid://bt58nkodr7coo" path="res://scenes/levels_zoomed/world_1/level_100_template.tscn" id="1_4ge2e"]
[ext_resource type="Texture2D" uid="uid://5enjsrrvtv4k" path="res://assets/images/spritesheet/world_1_decoration2.png" id="2_f7chm"]
[ext_resource type="PackedScene" uid="uid://cuhl4onv4df40" path="res://scenes/props/bird.tscn" id="3_qrr7o"]
[ext_resource type="Script" path="res://scripts/ui/drag_tutorial.gd" id="4_lkncf"]
[ext_resource type="Texture2D" uid="uid://v5jnql0u0b23" path="res://assets/images/ui/cursor.png" id="4_s8mtn"]

[sub_resource type="Animation" id="Animation_avb2j"]
length = 0.001
step = 0.1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("DragTutorialFinger:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("DragTutorialFinger:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.1),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}

[sub_resource type="Animation" id="Animation_q24qj"]
resource_name = "drag_tutorial"
length = 4.0
loop_mode = 1
step = 0.1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("DragTutorialFinger:position")
tracks/0/interp = 2
tracks/0/loop_wrap = false
tracks/0/keys = {
"times": PackedFloat32Array(0.5, 2.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(74, 74), Vector2(170, 74)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("DragTutorialFinger:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5, 3.5, 4),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("DragTutorialFinger:visible")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.1),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_ntijy"]
_data = {
"RESET": SubResource("Animation_avb2j"),
"drag_tutorial": SubResource("Animation_q24qj")
}

[node name="Level" instance=ExtResource("1_4ge2e")]

Expand All @@ -18,16 +96,16 @@ z_index = 0
collision_enabled = true

[node name="Block" parent="." index="6"]
tile_map_data = PackedByteArray("AAAAAAgAAAAJAAMAAAABAAgAAAAJAAMAAAACAAgAAAAJAAMAAAADAAgAAAAJAAMAAAAEAAgAAAAJAAUAAAAFAAgAAAAJAAMAAAAGAAgAAAAJAAMAAAAHAAgAAAAJAAMAAAAIAAgAAAAIAAUAAAAJAAgAAAAJAAMAAAAKAAgAAAAJAAMAAAALAAgAAAAJAAMAAAAMAAgAAAAJAAMAAAANAAgAAAAJAAMAAAAOAAcAAAAKAAEAAAANAAcAAAAJAAEAAAAMAAcAAAAJAAEAAAALAAcAAAAJAAEAAAAKAAcAAAAJA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AAMAAAAEAAQAAAAAAAQAAAAEAAQAAAAAAAUAAAAEAAQAAAAAAAYAAAAFAAUAAAABAAIAAAAGAAUAAAACAAYAAAAFAAUAAAAMAAEAAAAFAAUAAAAMAAYAAAAFAAYAAAANAAEAAAAFAAYAAAANAAIAAAAEAAQAAAANAAMAAAAEAAQAAAANAAQAAAAEAAQAAAANAAUAAAAEAAQAAAD//wIAAAAEAAYAAAD//wYAAAAEAAUAAAD//wkAAAAIAAMAAAAAAAkAAAAJAAMAAAABAAMAAAAFAAcAAAABAAYAAAAFAAUAAAABAAkAAAAJAAMAAAACAAkAAAAJAAMAAAADAAYAAAAGAAUAAAADAAkAAAAJAAMAAAAEAAkAAAAJAAUAAAAFAAkAAAAJAAMAAAAGAAkAAAAJAAMAAAAHAAkAAAAJAAMAAAAIAAkAAAAIAAUAAAAJAAkAAAAJAAMAAAAKAAkAAAAJAAMAAAALAAEAAAAEAAYAAAALAAYAAAAEAAUAAAALAAkAAAAJAAMAAAAMAAIAAAAEAAgAAAAMAAkAAAAJAAMAAAANAAYAAAAFAAUAAAANAAkAAAAJAAMAAAAOAAEAAAAFAAUAAAAOAAYAAAAGAAUAAAAOAAkAAAAKAAMAAAAAAAAAAAAEAAQAAAAAAP//AAAEAAQAAAAPAAEAAAAGAAYAAAANAAAAAAAEAAQAAAANAP//AAAEAAQAAAA=")

[node name="Goal" parent="." index="7"]
position = Vector2(168, 56)
position = Vector2(168, 72)

[node name="Block2" parent="." index="8"]
position = Vector2(56, 56)
position = Vector2(72, 72)
right_extendable = true
right_extend_range = Vector2i(8, 120)
right_extend_block_range = Vector2i(0, 7)
right_extend_range = Vector2i(8, 104)
right_extend_block_range = Vector2i(0, 6)

[node name="World1Decoration2" type="Sprite2D" parent="." index="9"]
visible = false
Expand All @@ -37,13 +115,27 @@ texture = ExtResource("2_f7chm")
hframes = 2
frame = 1

[node name="Node2D" type="Node2D" parent="." index="10"]
[node name="Birds" type="Node2D" parent="." index="10"]

[node name="Bird2" parent="Birds" index="0" instance=ExtResource("3_qrr7o")]
position = Vector2(24, 88)

[node name="Bird2" parent="Node2D" index="0" instance=ExtResource("3_qrr7o")]
position = Vector2(24, 72)
[node name="Bird4" parent="Birds" index="1" instance=ExtResource("3_qrr7o")]
position = Vector2(72, 56)

[node name="Bird4" parent="Node2D" index="1" instance=ExtResource("3_qrr7o")]
position = Vector2(56, 40)
[node name="Bird3" parent="Birds" index="2" instance=ExtResource("3_qrr7o")]
position = Vector2(200, 88)

[node name="DragTutorial" type="Node2D" parent="." index="11"]
script = ExtResource("4_lkncf")

[node name="DragTutorialFinger" type="Sprite2D" parent="DragTutorial" index="0"]
visible = false
position = Vector2(74, 74)
texture = ExtResource("4_s8mtn")
centered = false

[node name="Bird3" parent="Node2D" index="2" instance=ExtResource("3_qrr7o")]
position = Vector2(200, 72)
[node name="AnimationPlayer" type="AnimationPlayer" parent="DragTutorial" index="1"]
libraries = {
"": SubResource("AnimationLibrary_ntijy")
}
37 changes: 0 additions & 37 deletions src/scenes/levels_zoomed/world_2/level_200.tscn

This file was deleted.

2 changes: 1 addition & 1 deletion src/scenes/main.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ animations = [{
font = ExtResource("5_v4ddl")
font_size = 8
font_color = Color(0.878098, 0.878098, 0.878098, 1)
outline_size = 3
outline_size = 1
outline_color = Color(0, 0, 0, 1)

[sub_resource type="LabelSettings" id="LabelSettings_txos7"]
Expand Down
2 changes: 0 additions & 2 deletions src/scripts/block/block_manager.gd
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
extends Node2D
class_name BlockManager

@onready var main = get_node("/root/Main")

var selected_block_count: int = 0
var current_selected_block: Block = null
var is_dragging: bool = false
Expand Down
10 changes: 10 additions & 0 deletions src/scripts/ui/drag_tutorial.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
extends Node2D

@onready var animation_player: AnimationPlayer = $AnimationPlayer

func _ready():
animation_player.play("drag_tutorial")

func _process(delta):
pass

2 changes: 0 additions & 2 deletions src/scripts/ui/menu/menu_manager.gd
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
extends CanvasLayer
class_name MenuManager

@onready var main = get_node("/root/Main")

var menu_stack: Array = []
var current_menu: Control = null

Expand Down

0 comments on commit 9691f96

Please sign in to comment.