Add minimal Bluegill fishing loop

This commit is contained in:
Alexander Sellite 2026-07-25 11:05:37 -04:00
parent dd2563c0d8
commit bba93eb3e5
16 changed files with 461 additions and 3 deletions

13
main/main.gd Normal file
View file

@ -0,0 +1,13 @@
extends Node3D
const FishingSpotType = preload("res://fishing/fishing_spot.gd")
const GameUIType = preload("res://ui/game_ui.gd")
const PlayerType = preload("res://player/player.gd")
@onready var _player: PlayerType = %Player
@onready var _fishing_spot: FishingSpotType = %FishingSpot
@onready var _game_ui: GameUIType = %GameUI
func _ready() -> void:
_game_ui.setup(_player.inventory, _fishing_spot)

1
main/main.gd.uid Normal file
View file

@ -0,0 +1 @@
uid://c7u6jpr3f33t3

View file

@ -1,13 +1,25 @@
[gd_scene load_steps=3 format=3]
[gd_scene load_steps=6 format=3]
[ext_resource type="PackedScene" path="res://world/test_world.tscn" id="1_world"]
[ext_resource type="PackedScene" path="res://player/player.tscn" id="2_player"]
[ext_resource type="Script" path="res://main/main.gd" id="3_main"]
[ext_resource type="PackedScene" path="res://fishing/fishing_spot.tscn" id="4_spot"]
[ext_resource type="PackedScene" path="res://ui/game_ui.tscn" id="5_ui"]
[node name="Main" type="Node3D"]
script = ExtResource("3_main")
[node name="TestWorld" parent="." instance=ExtResource("1_world")]
[node name="Players" type="Node3D" parent="."]
[node name="Player" parent="Players" instance=ExtResource("2_player")]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 5)
[node name="FishingSpot" parent="." instance=ExtResource("4_spot")]
unique_name_in_owner = true
position = Vector3(0, 1.02, -18)
[node name="GameUI" parent="." instance=ExtResource("5_ui")]
unique_name_in_owner = true