Add Godot project shell
This commit is contained in:
14
godot/scenes/bootstrap/GameRoot.tscn
Normal file
14
godot/scenes/bootstrap/GameRoot.tscn
Normal file
@@ -0,0 +1,14 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://b1fxc23gkbqre"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/bootstrap/GameRoot.cs" id="1_game_root"]
|
||||
[ext_resource type="Script" path="res://scripts/debug/DebugOverlay.cs" id="2_debug_overlay"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/menu/MenuPlaceholder.tscn" id="3_menu"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/debug/SmokeScene.tscn" id="4_smoke"]
|
||||
|
||||
[node name="GameRoot" type="Node"]
|
||||
script = ExtResource("1_game_root")
|
||||
MenuScene = ExtResource("3_menu")
|
||||
SmokeScene = ExtResource("4_smoke")
|
||||
|
||||
[node name="DebugOverlay" type="CanvasLayer" parent="."]
|
||||
script = ExtResource("2_debug_overlay")
|
||||
18
godot/scenes/debug/SmokeScene.tscn
Normal file
18
godot/scenes/debug/SmokeScene.tscn
Normal file
@@ -0,0 +1,18 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://dpsx0hxc4vd5s"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/debug/SmokeSceneController.cs" id="1_smoke_scene_controller"]
|
||||
|
||||
[node name="SmokeScene" type="Node2D"]
|
||||
script = ExtResource("1_smoke_scene_controller")
|
||||
|
||||
[node name="HeroPlaceholder" type="Polygon2D" parent="."]
|
||||
position = Vector2(160, 180)
|
||||
color = Color(0.25, 0.85, 1, 1)
|
||||
polygon = PackedVector2Array(48, 0, -32, -24, -12, 0, -32, 24)
|
||||
|
||||
[node name="SmokeLabel" type="Label" parent="."]
|
||||
offset_left = 96.0
|
||||
offset_top = 224.0
|
||||
offset_right = 384.0
|
||||
offset_bottom = 256.0
|
||||
text = "Smoke Scene"
|
||||
46
godot/scenes/menu/MenuPlaceholder.tscn
Normal file
46
godot/scenes/menu/MenuPlaceholder.tscn
Normal file
@@ -0,0 +1,46 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://cg86dxl2ys1vh"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/menu/MenuPlaceholder.cs" id="1_menu_placeholder"]
|
||||
|
||||
[node name="MenuPlaceholder" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_menu_placeholder")
|
||||
|
||||
[node name="Title" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -210.0
|
||||
offset_top = -32.0
|
||||
offset_right = 210.0
|
||||
offset_bottom = 0.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
text = "SideScrollerGame - Menu Placeholder"
|
||||
|
||||
[node name="Hint" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -240.0
|
||||
offset_top = 8.0
|
||||
offset_right = 240.0
|
||||
offset_bottom = 40.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
text = "Run with -- --debug-boot=smoke for smoke scene"
|
||||
Reference in New Issue
Block a user