A Quadrilateral Cowboy clone intended to help me learn Game Dev

Added instantiating the Terminal scene in the level 1 scene

+21 -8
+4
graphics/levels/level1/level1.tscn
··· 1 1 [gd_scene format=3 uid="uid://bqr7i0fy6j5k2"] 2 2 3 + [ext_resource type="PackedScene" uid="uid://dqmye3v21j207" path="res://terminal/terminal.tscn" id="1_eq150"] 4 + 3 5 [node name="Main" type="Level1" unique_id=66769104] 4 6 5 7 [node name="Light" type="OmniLight3D" parent="." unique_id=532320280] 6 8 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.927, 1.613, 0) 9 + 10 + [node name="Terminal" type="PackedScene" parent="." instance=ExtResource("1_eq150")]
+2 -2
graphics/terminal/terminal.tscn
··· 1 - [gd_scene format=3] 1 + [gd_scene format=3 uid="uid://dqmye3v21j207"] 2 2 3 - [node name="Main" type="Terminal"] 3 + [node name="Main" type="TerminalScene" unique_id=2107133176]
+4 -3
levels.go
··· 4 4 "graphics.gd/classdb" 5 5 "graphics.gd/classdb/Node3D" 6 6 "graphics.gd/classdb/OmniLight3D" 7 + "graphics.gd/classdb/PackedScene" 7 8 ) 8 9 9 10 type Level1 struct { 10 11 Node3D.Extension[Level1] 11 12 12 - // Terminal??? 13 - Light OmniLight3D.Instance 14 - // PlayerCamera??? 13 + Terminal PackedScene.Instance 14 + Light OmniLight3D.Instance 15 + PlayerCamera PackedScene.Instance 15 16 } 16 17 17 18 func (l *Level1) Ready() {
+1
main.go
··· 18 18 func main() { 19 19 classdb.Register[MainScene]() 20 20 registerLevels() 21 + registerTerminal() 21 22 startup.LoadingScene() 22 23 startup.Scene() 23 24 }
+10 -3
terminal.go
··· 1 1 package main 2 2 3 - import "graphics.gd/classdb/Node3D" 3 + import ( 4 + "graphics.gd/classdb" 5 + "graphics.gd/classdb/Node3D" 6 + ) 7 + 8 + type TerminalScene struct { 9 + Node3D.Extension[TerminalScene] 10 + } 4 11 5 - type Terminal struct { 6 - Node3D.Extension[Terminal] 12 + func registerTerminal() { 13 + classdb.Register[TerminalScene]() 7 14 }