A Quadrilateral Cowboy clone intended to help me learn Game Dev

Almost at feature parity, just need to add terminal interaction script

+37 -1
+19
camera.go
··· 1 + package main 2 + 3 + import ( 4 + "graphics.gd/classdb" 5 + "graphics.gd/classdb/Camera3D" 6 + "graphics.gd/classdb/Input" 7 + ) 8 + 9 + type PlayerCamera struct { 10 + Camera3D.Extension[PlayerCamera] 11 + } 12 + 13 + func (p *PlayerCamera) Ready() { 14 + Input.SetMouseMode(Input.MouseModeConfined) 15 + } 16 + 17 + func registerCamera() { 18 + classdb.Register[PlayerCamera]() 19 + }
+4
graphics/levels/level1/level1.tscn
··· 1 1 [gd_scene format=3 uid="uid://bqr7i0fy6j5k2"] 2 2 3 3 [ext_resource type="PackedScene" uid="uid://dqmye3v21j207" path="res://terminal/terminal.tscn" id="1_eq150"] 4 + [ext_resource type="PackedScene" uid="uid://2atwc8remap4" path="res://player_camera/player_camera.tscn" id="2_ar149"] 4 5 5 6 [node name="Main" type="Level1" unique_id=66769104] 6 7 ··· 8 9 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.927, 1.613, 0) 9 10 10 11 [node name="Terminal" parent="." unique_id=367492000 instance=ExtResource("1_eq150")] 12 + 13 + [node name="PlayerCamera" parent="." unique_id=765810369 instance=ExtResource("2_ar149")] 14 + transform = Transform3D(-4.108778e-08, -0.3412328, 0.93997884, -1.491576e-08, 0.93997884, 0.3412328, -1, 8.881784e-16, -4.371139e-08, 2.713509, 2.0723257, 0)
+3
graphics/player_camera/player_camera.tscn
··· 1 + [gd_scene format=3 uid="uid://2atwc8remap4"] 2 + 3 + [node name="Main" type="PlayerCamera" unique_id=1065855482]
+10 -1
graphics/terminal/terminal.tscn
··· 1 1 [gd_scene format=3 uid="uid://dqmye3v21j207"] 2 2 3 - [ext_resource type="ArrayMesh" uid="uid://w0ysn4eb46tj" path="res://terminal/terminal_Cube.res" id="1_l3hco"] 3 + [ext_resource type="ArrayMesh" uid="uid://ic60n5wgqrmf" path="res://terminal/terminal_Cube.res" id="1_l3hco"] 4 + 5 + [sub_resource type="ViewportTexture" id="ViewportTexture_l3hco"] 6 + viewport_path = NodePath("SubViewport") 7 + 8 + [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_cgvah"] 9 + resource_local_to_scene = true 10 + albedo_texture = SubResource("ViewportTexture_l3hco") 4 11 5 12 [sub_resource type="PlaneMesh" id="PlaneMesh_amys7"] 13 + resource_local_to_scene = true 14 + material = SubResource("StandardMaterial3D_cgvah") 6 15 7 16 [sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_amys7"] 8 17
graphics/terminal/terminal_Cube.res

This is a binary file and will not be displayed.

+1
main.go
··· 19 19 classdb.Register[MainScene]() 20 20 registerLevels() 21 21 registerTerminal() 22 + registerCamera() 22 23 startup.LoadingScene() 23 24 startup.Scene() 24 25 }