Skip to content

Commit

Permalink
Intro Scene
Browse files Browse the repository at this point in the history
  • Loading branch information
JMarshall5 committed Aug 20, 2024
1 parent 1d297a2 commit 8ac44ac
Show file tree
Hide file tree
Showing 25 changed files with 475 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene load_steps=33 format=3 uid="uid://d2glbpj75vbl8"]

[ext_resource type="Script" path="res://Characters/enemy_green_ooze.gd" id="1_7s7n4"]
[ext_resource type="Script" path="res://Characters/Enemy/enemy_green_ooze.gd" id="1_7s7n4"]
[ext_resource type="Texture2D" uid="uid://cgyibdo5bbc4o" path="res://Characters/Art/GreenOoozeAnimations.png" id="2_gujc2"]
[ext_resource type="Script" path="res://Characters/line_of_sight.gd" id="3_lpnfg"]

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Characters/hero.tscn → Characters/Hero/hero.tscn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene load_steps=62 format=3 uid="uid://csbw7e8w63gif"]

[ext_resource type="Script" path="res://Characters/hero.gd" id="1_hje2x"]
[ext_resource type="Script" path="res://Characters/Hero/hero.gd" id="1_hje2x"]
[ext_resource type="Texture2D" uid="uid://cmwujtvl0uror" path="res://Characters/Art/PurpleSlimeAnimations.png" id="2_4t7wk"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_aeal7"]
Expand Down
4 changes: 2 additions & 2 deletions Levels/HungerTest.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
[ext_resource type="Texture2D" uid="uid://ctbess4bkrwkx" path="res://TileSets/Kenny-tilemap.png" id="3_kty7j"]
[ext_resource type="Texture2D" uid="uid://dud7xs2xe1aep" path="res://TileSets/PixelCrawlerDungeon-Props.png" id="4_38aqj"]
[ext_resource type="Texture2D" uid="uid://dyg6dossu6t7u" path="res://TileSets/PixelCrawlerDungeon-Tiles.png" id="5_iah6p"]
[ext_resource type="PackedScene" uid="uid://csbw7e8w63gif" path="res://Characters/hero.tscn" id="6_skqly"]
[ext_resource type="PackedScene" uid="uid://d2glbpj75vbl8" path="res://Characters/EnemyGreenOoze.tscn" id="7_2xpj5"]
[ext_resource type="PackedScene" uid="uid://csbw7e8w63gif" path="res://Characters/Hero/hero.tscn" id="6_skqly"]
[ext_resource type="PackedScene" uid="uid://d2glbpj75vbl8" path="res://Characters/Enemy/EnemyGreenOoze.tscn" id="7_2xpj5"]
[ext_resource type="PackedScene" uid="uid://1lplon07ljj5" path="res://Objects/Barrel-Justin/Barrel-Justin.tscn" id="8_5um2r"]
[ext_resource type="Script" path="res://UI/progress_bar.gd" id="9_1567t"]
[ext_resource type="Script" path="res://Scripts/Debug.gd" id="10_8ofvy"]
Expand Down
2 changes: 1 addition & 1 deletion Levels/Level_01.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[ext_resource type="Texture2D" uid="uid://ctbess4bkrwkx" path="res://TileSets/Kenny-tilemap.png" id="3_8nkc5"]
[ext_resource type="Texture2D" uid="uid://dud7xs2xe1aep" path="res://TileSets/PixelCrawlerDungeon-Props.png" id="4_8kuoq"]
[ext_resource type="Texture2D" uid="uid://dyg6dossu6t7u" path="res://TileSets/PixelCrawlerDungeon-Tiles.png" id="5_si5dv"]
[ext_resource type="PackedScene" uid="uid://csbw7e8w63gif" path="res://Characters/hero.tscn" id="6_1veeq"]
[ext_resource type="PackedScene" uid="uid://csbw7e8w63gif" path="res://Characters/Hero/hero.tscn" id="6_1veeq"]
[ext_resource type="Texture2D" uid="uid://rldsv3refwao" path="res://TileSets/PixelCrawlerDungeon-Tiles_andrew_edit_v2.png" id="6_hrxxm"]

[sub_resource type="NavigationPolygon" id="NavigationPolygon_ufibj"]
Expand Down
2 changes: 1 addition & 1 deletion Levels/Level_02.tscn
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[gd_scene load_steps=3 format=4 uid="uid://cagiuqtjg2hje"]

[ext_resource type="TileSet" uid="uid://b8qa2yudiy3x6" path="res://Levels/Level_02.tres" id="1_lg3f8"]
[ext_resource type="PackedScene" uid="uid://csbw7e8w63gif" path="res://Characters/hero.tscn" id="6_fopm0"]
[ext_resource type="PackedScene" uid="uid://csbw7e8w63gif" path="res://Characters/Hero/hero.tscn" id="6_fopm0"]

[node name="testlevel" type="Node2D"]

Expand Down
2 changes: 1 addition & 1 deletion Levels/Level_test_andrew.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[ext_resource type="Texture2D" uid="uid://dud7xs2xe1aep" path="res://TileSets/PixelCrawlerDungeon-Props.png" id="4_bw8n7"]
[ext_resource type="Texture2D" uid="uid://dyg6dossu6t7u" path="res://TileSets/PixelCrawlerDungeon-Tiles.png" id="5_cnwtu"]
[ext_resource type="Texture2D" uid="uid://rldsv3refwao" path="res://TileSets/PixelCrawlerDungeon-Tiles_andrew_edit_v2.png" id="6_5c0ux"]
[ext_resource type="PackedScene" uid="uid://csbw7e8w63gif" path="res://Characters/hero.tscn" id="7_eibjn"]
[ext_resource type="PackedScene" uid="uid://csbw7e8w63gif" path="res://Characters/Hero/hero.tscn" id="7_eibjn"]
[ext_resource type="PackedScene" uid="uid://ytcxvthipdkj" path="res://Objects/Props/Beds/Obj_Bed_01.tscn" id="8_5063m"]
[ext_resource type="PackedScene" uid="uid://b1p77kho11wc" path="res://Objects/Props/Barrels/Obj_Barrel_01.tscn" id="9_i36jp"]
[ext_resource type="PackedScene" uid="uid://cpm1xkkqq5ofc" path="res://Objects/Props/Chairs/Obj_Chair_01.tscn" id="10_eybk2"]
Expand Down
4 changes: 2 additions & 2 deletions Levels/TestLevel.tscn
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[gd_scene load_steps=5 format=4 uid="uid://cnpra2wmf1r17"]

[ext_resource type="TileSet" uid="uid://btn2hyppj2rla" path="res://TileSets/TestTileSet.tres" id="1_sj5yq"]
[ext_resource type="PackedScene" uid="uid://csbw7e8w63gif" path="res://Characters/hero.tscn" id="6_dwe6h"]
[ext_resource type="PackedScene" uid="uid://d2glbpj75vbl8" path="res://Characters/EnemyGreenOoze.tscn" id="7_kirou"]
[ext_resource type="PackedScene" uid="uid://csbw7e8w63gif" path="res://Characters/Hero/hero.tscn" id="6_dwe6h"]
[ext_resource type="PackedScene" uid="uid://d2glbpj75vbl8" path="res://Characters/Enemy/EnemyGreenOoze.tscn" id="7_kirou"]
[ext_resource type="PackedScene" uid="uid://1lplon07ljj5" path="res://Objects/Barrel-Justin/Barrel-Justin.tscn" id="8_a7s5f"]

[node name="testlevel" type="Node2D" groups=["Player"]]
Expand Down
Binary file added Levels/introduction/Introduction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions Levels/introduction/Introduction.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://ciu2ehe705ykj"
path="res://.godot/imported/Introduction.png-1509630dd323a6ec6e5d24de9799c5be.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://Levels/introduction/Introduction.png"
dest_files=["res://.godot/imported/Introduction.png-1509630dd323a6ec6e5d24de9799c5be.ctex"]

[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
291 changes: 291 additions & 0 deletions Levels/introduction/Introduction.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,291 @@
[gd_scene load_steps=17 format=3 uid="uid://torsc35oycm7"]

[ext_resource type="Theme" uid="uid://bewgrgj1ylev2" path="res://Menus/MenuTheme.tres" id="1_m07i0"]
[ext_resource type="Script" path="res://Levels/introduction/introduction.gd" id="2_0g6ex"]
[ext_resource type="Script" path="res://Scripts/Nodes/SceneButton.gd" id="3_ymqj0"]
[ext_resource type="Texture2D" uid="uid://cgyibdo5bbc4o" path="res://Characters/Art/GreenOoozeAnimations.png" id="4_b22mh"]
[ext_resource type="Texture2D" uid="uid://ciu2ehe705ykj" path="res://Levels/introduction/Introduction.png" id="4_rrcaf"]
[ext_resource type="Texture2D" uid="uid://cmwujtvl0uror" path="res://Characters/Art/PurpleSlimeAnimations.png" id="5_kchjs"]
[ext_resource type="AudioStream" uid="uid://fwky5gmb5iok" path="res://Levels/introduction/apostatas-177057.mp3" id="5_woxqo"]

[sub_resource type="Animation" id="Animation_8msc3"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}

[sub_resource type="Animation" id="Animation_15bos"]
resource_name = "idle"
length = 1.3
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.3, 0.6, 0.8),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [5, 6, 9, 8]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_7nkha"]
_data = {
"RESET": SubResource("Animation_8msc3"),
"idle": SubResource("Animation_15bos")
}

[sub_resource type="Animation" id="Animation_w7d6o"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}

[sub_resource type="Animation" id="Animation_eq1ms"]
resource_name = "idle"
loop_mode = 1
step = 0.25
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.25, 0.5, 0.75),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [18, 19, 20, 21]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_1lgi3"]
_data = {
"RESET": SubResource("Animation_w7d6o"),
"idle": SubResource("Animation_eq1ms")
}

[sub_resource type="Animation" id="Animation_p44ei"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [1]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite2D/enemy_intro:show_behind_parent")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [false]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Sprite2D/hero_intro:show_behind_parent")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Sprite2D/hero_intro:scale")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1, 1)]
}

[sub_resource type="Animation" id="Animation_gdvoa"]
resource_name = "intro_animation"
length = 12.0
step = 0.1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.25, 1.25, 3, 5.25, 7, 8.5, 11),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1),
"update": 1,
"values": [0, 1, 3, 5, 6, 7, 8, 8]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite2D/enemy_intro:show_behind_parent")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 5.8),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [true, false]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Sprite2D/hero_intro:show_behind_parent")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 7.2),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [true, false]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Sprite2D/hero_intro:scale")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(7.2, 11.7),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(0.4, 0.4), Vector2(7, 7)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_6wffx"]
_data = {
"RESET": SubResource("Animation_p44ei"),
"intro_animation": SubResource("Animation_gdvoa")
}

[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_m07i0")
script = ExtResource("2_0g6ex")

[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 400
theme_override_constants/margin_top = 200
theme_override_constants/margin_right = 400
theme_override_constants/margin_bottom = 200

[node name="PanelContainer" type="PanelContainer" parent="MarginContainer"]
layout_mode = 2
theme = ExtResource("1_m07i0")

[node name="GridContainer" type="GridContainer" parent="MarginContainer/PanelContainer"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4

[node name="Label" type="RichTextLabel" parent="MarginContainer/PanelContainer/GridContainer"]
layout_mode = 2
theme_type_variation = &"GameTitle"
bbcode_enabled = true
text = "[center] [b][color=Purple][/color][/b]
"
fit_content = true

[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/PanelContainer/GridContainer"]
layout_mode = 2

[node name="VSplitContainer" type="VSplitContainer" parent="MarginContainer/PanelContainer/GridContainer/VBoxContainer"]
custom_minimum_size = Vector2(300, 0)
layout_mode = 2

[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(580, 326)
texture = ExtResource("4_rrcaf")
hframes = 9
frame = 1

[node name="enemy_intro" type="Sprite2D" parent="Sprite2D"]
position = Vector2(-400, -126)
scale = Vector2(1.34375, 1.34375)
texture = ExtResource("4_b22mh")
hframes = 5
vframes = 4

[node name="AnimationPlayer" type="AnimationPlayer" parent="Sprite2D/enemy_intro"]
libraries = {
"": SubResource("AnimationLibrary_7nkha")
}

[node name="hero_intro" type="Sprite2D" parent="Sprite2D"]
position = Vector2(7, 182)
texture = ExtResource("5_kchjs")
hframes = 6
vframes = 12

[node name="AnimationPlayer" type="AnimationPlayer" parent="Sprite2D/hero_intro"]
libraries = {
"": SubResource("AnimationLibrary_1lgi3")
}

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_6wffx")
}
speed_scale = 0.33

[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("5_woxqo")
autoplay = true

[node name="Next Level Button" type="Button" parent="."]
layout_mode = 2
offset_left = 846.0
offset_top = 569.0
offset_right = 1093.0
offset_bottom = 615.0
text = "Skip Introduction"
script = ExtResource("3_ymqj0")
scene_path = "res://Levels/level_01/Level_01.tscn"
to_menu = true
Loading

0 comments on commit 8ac44ac

Please sign in to comment.