init
This commit is contained in:
9
src/Levels/BaseLevel.cs
Normal file
9
src/Levels/BaseLevel.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Godot;
|
||||
|
||||
namespace Slimepire.Levels;
|
||||
|
||||
[GlobalClass]
|
||||
public abstract partial class BaseLevel : Node
|
||||
{
|
||||
protected abstract Camera2D Camera { get; }
|
||||
}
|
||||
1
src/Levels/BaseLevel.cs.uid
Normal file
1
src/Levels/BaseLevel.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://durlongh484is
|
||||
9
src/Levels/DemoLevel.cs
Normal file
9
src/Levels/DemoLevel.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Godot;
|
||||
|
||||
namespace Slimepire.Levels;
|
||||
|
||||
[SceneTree]
|
||||
public partial class DemoLevel : BaseLevel
|
||||
{
|
||||
protected override Camera2D Camera => _.Camera;
|
||||
}
|
||||
1
src/Levels/DemoLevel.cs.uid
Normal file
1
src/Levels/DemoLevel.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://c8l12dlpexosv
|
||||
32
src/Levels/DemoLevel.tscn
Normal file
32
src/Levels/DemoLevel.tscn
Normal file
@@ -0,0 +1,32 @@
|
||||
[gd_scene format=3 uid="uid://bqv3sg03tcv71"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c8l12dlpexosv" path="res://src/Levels/DemoLevel.cs" id="1_l2cn0"]
|
||||
[ext_resource type="Script" uid="uid://cdgi3y0sm3rt1" path="res://src/Gameplay/Camera.cs" id="2_mxa1b"]
|
||||
[ext_resource type="PackedScene" uid="uid://cnl6t8o4mh0j3" path="res://src/Gameplay/Nodules/Nodule.tscn" id="3_qhkhc"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_l2cn0"]
|
||||
font_size = 107
|
||||
|
||||
[node name="DemoLevel" type="Node2D" unique_id=1583216522]
|
||||
script = ExtResource("1_l2cn0")
|
||||
|
||||
[node name="Camera" type="Camera2D" parent="." unique_id=1348670701]
|
||||
script = ExtResource("2_mxa1b")
|
||||
|
||||
[node name="Label" type="Label" parent="." unique_id=1452841224]
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -331.0
|
||||
offset_top = -221.0
|
||||
offset_right = 320.0
|
||||
offset_bottom = -74.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "DEMO LEVEL"
|
||||
label_settings = SubResource("LabelSettings_l2cn0")
|
||||
|
||||
[node name="Nodule" parent="." unique_id=1637542829 instance=ExtResource("3_qhkhc")]
|
||||
IsRoot = true
|
||||
Reference in New Issue
Block a user