Buggy starting point
This commit is contained in:
BIN
Assets/MedodicaRegular.otf
Normal file
BIN
Assets/MedodicaRegular.otf
Normal file
Binary file not shown.
36
Assets/MedodicaRegular.otf.import
Normal file
36
Assets/MedodicaRegular.otf.import
Normal file
@@ -0,0 +1,36 @@
|
||||
[remap]
|
||||
|
||||
importer="font_data_dynamic"
|
||||
type="FontFile"
|
||||
uid="uid://7hanxja5lkq1"
|
||||
path="res://.godot/imported/MedodicaRegular.otf-220155390f0ba710971ef9f4eff83b45.fontdata"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Assets/MedodicaRegular.otf"
|
||||
dest_files=["res://.godot/imported/MedodicaRegular.otf-220155390f0ba710971ef9f4eff83b45.fontdata"]
|
||||
|
||||
[params]
|
||||
|
||||
Rendering=null
|
||||
antialiasing=1
|
||||
generate_mipmaps=false
|
||||
disable_embedded_bitmaps=true
|
||||
multichannel_signed_distance_field=false
|
||||
msdf_pixel_range=8
|
||||
msdf_size=48
|
||||
allow_system_fallback=true
|
||||
force_autohinter=false
|
||||
modulate_color_glyphs=false
|
||||
hinting=1
|
||||
subpixel_positioning=4
|
||||
keep_rounding_remainders=true
|
||||
oversampling=0.0
|
||||
Fallbacks=null
|
||||
fallbacks=[]
|
||||
Compress=null
|
||||
compress=true
|
||||
preload=[]
|
||||
language_support={}
|
||||
script_support={}
|
||||
opentype_features={}
|
||||
@@ -1,12 +1,10 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bvjmefswaveya"]
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bvjmefswaveya"]
|
||||
|
||||
[ext_resource type="Script" path="res://Assets/Scripts/CommonScripts/UISelector.cs" id="2_66bl7"]
|
||||
[ext_resource type="Script" uid="uid://b28bv2l2asbpy" path="res://Assets/Scripts/CommonScripts/ChangeMenuInitiator.cs" id="4_gp05m"]
|
||||
|
||||
[node name="Htp" type="Node2D"]
|
||||
|
||||
[node name="UISelector" type="Node2D" parent="."]
|
||||
script = ExtResource("2_66bl7")
|
||||
|
||||
[node name="BackButton" type="Sprite2D" parent="UISelector"]
|
||||
z_index = 1
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,17 +1,13 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://dk1egdpjl31r"]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dk1egdpjl31r"]
|
||||
|
||||
[ext_resource type="Script" path="res://Assets/Scripts/CommonScripts/LevelSelectionManager.cs" id="1_4n03f"]
|
||||
[ext_resource type="PackedScene" uid="uid://bffiqliomwkmo" path="res://Assets/Scenes/Persistant/Camera.tscn" id="1_j4u47"]
|
||||
[ext_resource type="Script" path="res://Assets/Scripts/CommonScripts/UISelector.cs" id="2_xaene"]
|
||||
[ext_resource type="Script" uid="uid://b28bv2l2asbpy" path="res://Assets/Scripts/CommonScripts/ChangeMenuInitiator.cs" id="4_xaene"]
|
||||
|
||||
[node name="LevelSelectionMenu" type="Node2D"]
|
||||
script = ExtResource("1_4n03f")
|
||||
|
||||
[node name="Camera" parent="." instance=ExtResource("1_j4u47")]
|
||||
|
||||
[node name="UISelector" type="Node2D" parent="."]
|
||||
script = ExtResource("2_xaene")
|
||||
|
||||
[node name="Level1" type="Sprite2D" parent="UISelector"]
|
||||
position = Vector2(-79, -40)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://c8bxl0uohy535"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://c8bxl0uohy535"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://hqp23lmk336m" path="res://icon.svg" id="1_rmvno"]
|
||||
[ext_resource type="FontFile" uid="uid://7hanxja5lkq1" path="res://Assets/MedodicaRegular.otf" id="2_qbtqb"]
|
||||
[ext_resource type="Script" uid="uid://c8ibbithifum2" path="res://Assets/Scripts/CommonScripts/SceneChangeButton.cs" id="2_u3d4d"]
|
||||
|
||||
[node name="MainMenu" type="Node2D"]
|
||||
@@ -11,10 +12,13 @@ texture = ExtResource("1_rmvno")
|
||||
|
||||
[node name="Button" type="Button" parent="."]
|
||||
offset_left = -126.0
|
||||
offset_top = 113.0
|
||||
offset_top = 88.0
|
||||
offset_right = -25.0
|
||||
offset_bottom = 144.0
|
||||
offset_bottom = 119.0
|
||||
scale = Vector2(2.5243824, 2.5243824)
|
||||
theme_override_fonts/font = ExtResource("2_qbtqb")
|
||||
theme_override_font_sizes/font_size = 32
|
||||
text = "Begin"
|
||||
script = ExtResource("2_u3d4d")
|
||||
|
||||
[connection signal="pressed" from="Button" to="Button" method="_on_pressed"]
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
[gd_scene load_steps=18 format=3 uid="uid://r24ppggva18y"]
|
||||
[gd_scene load_steps=17 format=3 uid="uid://r24ppggva18y"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dedv5j5tvb2gk" path="res://Assets/Scripts/CommonScripts/MenuChangeManager.cs" id="1_uevlq"]
|
||||
[ext_resource type="Texture2D" path="res://Assets/Sprites/Blueberry-sheet.png" id="2_3tdrs"]
|
||||
[ext_resource type="FontFile" uid="uid://7hanxja5lkq1" path="res://Assets/MedodicaRegular.otf" id="2_ei4c6"]
|
||||
[ext_resource type="Script" uid="uid://cugofqkikepb2" path="res://Assets/Scripts/CommonScripts/TipManager.cs" id="3_ei4c6"]
|
||||
[ext_resource type="FontFile" path="res://Assets/MedodicaRegular.otf" id="3_jtn6d"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_uktqf"]
|
||||
resource_name = "LoadingAnimation"
|
||||
@@ -143,35 +142,27 @@ _data = {
|
||||
}
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ei4c6"]
|
||||
atlas = ExtResource("2_3tdrs")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jtn6d"]
|
||||
atlas = ExtResource("2_3tdrs")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_uktqf"]
|
||||
atlas = ExtResource("2_3tdrs")
|
||||
region = Rect2(32, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_btj4p"]
|
||||
atlas = ExtResource("2_3tdrs")
|
||||
region = Rect2(48, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_rvq0g"]
|
||||
atlas = ExtResource("2_3tdrs")
|
||||
region = Rect2(64, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wg4yt"]
|
||||
atlas = ExtResource("2_3tdrs")
|
||||
region = Rect2(80, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_meiur"]
|
||||
atlas = ExtResource("2_3tdrs")
|
||||
region = Rect2(96, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0xegj"]
|
||||
atlas = ExtResource("2_3tdrs")
|
||||
region = Rect2(112, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_n7wom"]
|
||||
@@ -242,7 +233,7 @@ offset_top = 101.0
|
||||
offset_right = 475.95636
|
||||
offset_bottom = 244.97948
|
||||
scale = Vector2(1.0001426, 1.0001426)
|
||||
theme_override_fonts/normal_font = ExtResource("3_jtn6d")
|
||||
theme_override_fonts/normal_font = ExtResource("2_ei4c6")
|
||||
text = "Tip: Example"
|
||||
scroll_active = false
|
||||
autowrap_mode = 2
|
||||
|
||||
@@ -1,34 +1,79 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://dr8qdk10uy0o4"]
|
||||
[gd_scene load_steps=22 format=3 uid="uid://dr8qdk10uy0o4"]
|
||||
|
||||
[ext_resource type="Texture2D" path="res://Assets/Sprites/PlayerWalk.png" id="1_3e2tf"]
|
||||
[ext_resource type="Script" uid="uid://batcpr6rxhyb2" path="res://Assets/Scripts/PlayerScripts/PlayerMover.cs" id="1_b2ifw"]
|
||||
[ext_resource type="Texture2D" uid="uid://c0pno0ac25r7i" path="res://Assets/Sprites/knight.png" id="2_b2ifw"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_b2ifw"]
|
||||
size = Vector2(12, 28)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_b2ifw"]
|
||||
atlas = ExtResource("1_3e2tf")
|
||||
region = Rect2(0, 0, 16, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_aee6e"]
|
||||
atlas = ExtResource("1_3e2tf")
|
||||
region = Rect2(16, 0, 16, 32)
|
||||
atlas = ExtResource("2_b2ifw")
|
||||
region = Rect2(0, 64, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_e5q2x"]
|
||||
atlas = ExtResource("1_3e2tf")
|
||||
region = Rect2(32, 0, 16, 32)
|
||||
atlas = ExtResource("2_b2ifw")
|
||||
region = Rect2(32, 64, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mifcl"]
|
||||
atlas = ExtResource("1_3e2tf")
|
||||
region = Rect2(48, 0, 16, 32)
|
||||
atlas = ExtResource("2_b2ifw")
|
||||
region = Rect2(64, 64, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2thea"]
|
||||
atlas = ExtResource("2_b2ifw")
|
||||
region = Rect2(96, 64, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jqe1p"]
|
||||
atlas = ExtResource("2_b2ifw")
|
||||
region = Rect2(128, 64, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_n6g26"]
|
||||
atlas = ExtResource("2_b2ifw")
|
||||
region = Rect2(160, 64, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_twodr"]
|
||||
atlas = ExtResource("2_b2ifw")
|
||||
region = Rect2(192, 64, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_y63lr"]
|
||||
atlas = ExtResource("2_b2ifw")
|
||||
region = Rect2(224, 64, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jjopo"]
|
||||
atlas = ExtResource("2_b2ifw")
|
||||
region = Rect2(0, 96, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_evjpc"]
|
||||
atlas = ExtResource("2_b2ifw")
|
||||
region = Rect2(32, 96, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_o5e1w"]
|
||||
atlas = ExtResource("2_b2ifw")
|
||||
region = Rect2(64, 96, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6t18s"]
|
||||
atlas = ExtResource("2_b2ifw")
|
||||
region = Rect2(96, 96, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3iaiu"]
|
||||
atlas = ExtResource("2_b2ifw")
|
||||
region = Rect2(128, 96, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ausrs"]
|
||||
atlas = ExtResource("2_b2ifw")
|
||||
region = Rect2(160, 96, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ca55u"]
|
||||
atlas = ExtResource("2_b2ifw")
|
||||
region = Rect2(192, 96, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_uxm8m"]
|
||||
atlas = ExtResource("2_b2ifw")
|
||||
region = Rect2(224, 96, 32, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_2thea"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_b2ifw")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_aee6e")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
@@ -36,10 +81,49 @@ animations = [{
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mifcl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_2thea")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jqe1p")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_n6g26")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_twodr")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_y63lr")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jjopo")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_evjpc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_o5e1w")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6t18s")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_3iaiu")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ausrs")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ca55u")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_uxm8m")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 8.0
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0ccr5"]
|
||||
@@ -59,7 +143,6 @@ shape = SubResource("RectangleShape2D_b2ifw")
|
||||
[node name="WalkingAnimation" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(0, -16)
|
||||
sprite_frames = SubResource("SpriteFrames_2thea")
|
||||
frame_progress = 0.24983363
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(-1, -14)
|
||||
|
||||
@@ -4,13 +4,15 @@ using System;
|
||||
public partial class ChangeMenuInitiator : Node
|
||||
{
|
||||
float TransitionDelay = 0; // seconds
|
||||
Node cameFrom;
|
||||
string cameFrom;
|
||||
|
||||
public void ChangeMenu(string type, string destination, Node cameFromInput)
|
||||
public void ChangeMenu(string type, string destination, string cameFromInput)
|
||||
{
|
||||
cameFromInput = cameFrom;
|
||||
cameFrom = cameFromInput;
|
||||
|
||||
if (type == "SLOW")
|
||||
{
|
||||
GD.Print("slow switch");
|
||||
// Load the menu change manager
|
||||
var scene = GD.Load<PackedScene>("res://Assets/Scenes/MenusAndLevels/MenuChangeManager.tscn");
|
||||
var inst = (Node2D)scene.Instantiate();
|
||||
@@ -27,6 +29,7 @@ public partial class ChangeMenuInitiator : Node
|
||||
}
|
||||
if (type == "FAST")
|
||||
{
|
||||
GD.Print("fast switch");
|
||||
var scene = GD.Load<PackedScene>($"res://Assets/Scenes/MenusAndLevels/{destination}.tscn");
|
||||
var inst = (Node2D)scene.Instantiate();
|
||||
GetTree().Root.AddChild(inst);
|
||||
@@ -38,14 +41,13 @@ public partial class ChangeMenuInitiator : Node
|
||||
|
||||
DeleteMenu("LoadIn");
|
||||
}
|
||||
|
||||
}
|
||||
void DeleteMenu(StringName arg)
|
||||
{
|
||||
if (arg == "LoadIn")
|
||||
{
|
||||
// Delete current scene (MAKE SURE THE PARENT OF THE PARENT OF THIS SCRIPT IS THE SCENE)
|
||||
cameFrom.QueueFree();
|
||||
// Delete current scene that it came from
|
||||
GetTree().Root.GetNode(cameFrom).QueueFree();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
using Godot;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class LevelSelectionManager : Node2D
|
||||
{
|
||||
Dictionary<string, string> ConnectionRef = new Dictionary<string, string>();
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
// Create Dictionary
|
||||
ConnectionRef.Add("Level1", "Level2");
|
||||
ConnectionRef.Add("Level2", "Level3");
|
||||
ConnectionRef.Add("Level3", "Level4");
|
||||
ConnectionRef.Add("Level4", "Level5");
|
||||
|
||||
// Disable all levels but the first
|
||||
foreach (Node2D arg in GetNode("UISelector").GetChildren())
|
||||
{
|
||||
if (ConnectionRef.ContainsValue(arg.Name))
|
||||
arg.SetProcess(false);
|
||||
}
|
||||
|
||||
// Edit buttons according to what is completed
|
||||
foreach (string arg in GetTree().Root.GetNode<CommonData>("CommonData").LevelsCompleted)
|
||||
{
|
||||
if (ConnectionRef.ContainsKey(arg))
|
||||
{
|
||||
// Remove fake button
|
||||
GetNode("FakeButtons").GetNode<Node2D>(ConnectionRef[arg]).Visible = false;
|
||||
// Add real button
|
||||
GetNode("UISelector").GetNode<Node2D>(ConnectionRef[arg]).Visible = true;
|
||||
GetNode("UISelector").GetNode<Node2D>(ConnectionRef[arg]).SetProcess(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
uid://bqqpex5a35ttm
|
||||
@@ -5,6 +5,7 @@ public partial class SceneChangeButton : Button
|
||||
{
|
||||
void _on_pressed()
|
||||
{
|
||||
GetTree().Root.GetNode("CommonData").GetNode<ChangeMenuInitiator>("ChangeMenuInitiator").ChangeMenu("HTP", "slow",GetParent());
|
||||
if (GetTree().Root.GetNode("Camera").HasNode("MenuChangeManager") == false) // makes sure the menu is not currently being changed
|
||||
GetTree().Root.GetNode("CommonData").GetNode<ChangeMenuInitiator>("ChangeMenuInitiator").ChangeMenu("SLOW", "Level1", GetParent().Name);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,16 @@ public partial class TipManager : RichTextLabel
|
||||
|
||||
string[] TipList =
|
||||
{
|
||||
"Example Tip"
|
||||
"Example Tip1",
|
||||
"Example Tip2",
|
||||
"Example Tip3",
|
||||
"Example Tip4",
|
||||
"Example Tip5",
|
||||
"Example Tip6",
|
||||
"Example Tip7",
|
||||
"Example Tip8",
|
||||
"Example Tip9"
|
||||
|
||||
};
|
||||
|
||||
public override void _Ready()
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
using Godot;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class UISelector : Node2D
|
||||
{
|
||||
List<Node2D> AvailableOptions = new List<Node2D>();
|
||||
public Node2D SelectedOption;
|
||||
int SelectedKey = 0;
|
||||
Node2D SelectionIndicator;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
// Set up selection indicator
|
||||
SelectionIndicator = GetNode<Node2D>("SelectionIndicator");
|
||||
|
||||
// Set up list of options
|
||||
foreach (Node2D option in GetChildren())
|
||||
{
|
||||
if (option != SelectionIndicator)
|
||||
AvailableOptions.Add(option);
|
||||
}
|
||||
|
||||
// Set defaults
|
||||
SelectedOption = AvailableOptions[SelectedKey];
|
||||
SelectionIndicator.Position = SelectedOption.Position;
|
||||
}
|
||||
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
// Select next option
|
||||
if(Input.IsActionJustPressed("menu_right") && SelectedKey < AvailableOptions.Count - 1)
|
||||
{
|
||||
SelectedKey += 1;
|
||||
}
|
||||
// Select previous option
|
||||
if(Input.IsActionJustPressed("menu_left") && SelectedKey != 0)
|
||||
{
|
||||
SelectedKey -= 1;
|
||||
|
||||
}
|
||||
|
||||
SelectedOption = AvailableOptions[SelectedKey];
|
||||
SelectionIndicator.Position = SelectedOption.Position;
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
uid://b02hgywj3kck
|
||||
@@ -51,7 +51,7 @@ public partial class LevelManager : Node
|
||||
case "Death": // Player Died
|
||||
//Player.QueueFree();
|
||||
// Go back to main menu (Replace with proper ending screen and then send back to main menu)
|
||||
GetNode<ChangeMenuInitiator>("ChangeMenuInitiator").ChangeMenu("FAST", "MainMenu", GetParent());
|
||||
GetNode<ChangeMenuInitiator>("ChangeMenuInitiator").ChangeMenu("FAST", "MainMenu", GetParent().Name);
|
||||
break;
|
||||
case "Success": // Success
|
||||
// Remove the player to stop checking
|
||||
@@ -66,7 +66,7 @@ public partial class LevelManager : Node
|
||||
// Go to exit cutscene after exit animation is complete
|
||||
var LevelName = (string)GetParent().Name;
|
||||
var LevelNumber = LevelName.Split("Level");
|
||||
GetNode<ChangeMenuInitiator>("ChangeMenuInitiator").ChangeMenu("SLOW", $"Cutscenes/ExitCutscene{LevelNumber[0]}", GetParent());
|
||||
GetNode<ChangeMenuInitiator>("ChangeMenuInitiator").ChangeMenu("SLOW", $"Cutscenes/ExitCutscene{LevelNumber[0]}", GetParent().Name);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
BIN
Assets/Sprites/knight.png
Normal file
BIN
Assets/Sprites/knight.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.9 KiB |
40
Assets/Sprites/knight.png.import
Normal file
40
Assets/Sprites/knight.png.import
Normal file
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c0pno0ac25r7i"
|
||||
path="res://.godot/imported/knight.png-e177530b80fb284cf0e0621d7f22f614.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Assets/Sprites/knight.png"
|
||||
dest_files=["res://.godot/imported/knight.png-e177530b80fb284cf0e0621d7f22f614.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
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/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
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
|
||||
BIN
Assets/Sprites/world_tileset.png
Normal file
BIN
Assets/Sprites/world_tileset.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
40
Assets/Sprites/world_tileset.png.import
Normal file
40
Assets/Sprites/world_tileset.png.import
Normal file
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b86fd86n5sxtr"
|
||||
path="res://.godot/imported/world_tileset.png-caae585fafa7cc44b00925bf62e268d9.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Assets/Sprites/world_tileset.png"
|
||||
dest_files=["res://.godot/imported/world_tileset.png-caae585fafa7cc44b00925bf62e268d9.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
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/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
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
|
||||
@@ -55,6 +55,13 @@ move_right={
|
||||
]
|
||||
}
|
||||
|
||||
[layer_names]
|
||||
|
||||
2d_physics/layer_1="SolidGround"
|
||||
2d_physics/layer_2="SemiSolidGround"
|
||||
2d_physics/layer_3="Player"
|
||||
2d_physics/layer_4="Enemy"
|
||||
|
||||
[rendering]
|
||||
|
||||
renderer/rendering_method="gl_compatibility"
|
||||
|
||||
Reference in New Issue
Block a user