game loop improvement
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 8s
Create tag and build when new code gets to main / Export (push) Successful in 1m19s

This commit is contained in:
2026-01-31 18:16:10 +01:00
parent f39dc0df86
commit 45bf0f5e45
19 changed files with 321 additions and 53 deletions

17
scenes/table/table.gd Normal file
View File

@@ -0,0 +1,17 @@
extends Node2D
class_name Table
signal seat_clicked(Seat)
@onready var seat_1: Seat = $Seat1
@onready var seat_2: Seat = $Seat2
@onready var seat_3: Seat = $Seat3
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
func on_seat_clicked(seat: Seat) -> void:
seat_clicked.emit(seat)

View File

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

20
scenes/table/table.tscn Normal file
View File

@@ -0,0 +1,20 @@
[gd_scene format=3 uid="uid://cayrxqnypoytu"]
[ext_resource type="Script" uid="uid://r542aaur4vsc" path="res://scenes/table/table.gd" id="1_ov72x"]
[ext_resource type="PackedScene" uid="uid://l0hl170iqkgx" path="res://scenes/seat/seat.tscn" id="1_qavd0"]
[node name="Table" type="Node2D" unique_id=1315188460]
script = ExtResource("1_ov72x")
[node name="Seat1" parent="." unique_id=1604639021 instance=ExtResource("1_qavd0")]
position = Vector2(-204, -87)
[node name="Seat2" parent="." unique_id=848918585 instance=ExtResource("1_qavd0")]
position = Vector2(-14, -117)
[node name="Seat3" parent="." unique_id=150555678 instance=ExtResource("1_qavd0")]
position = Vector2(173, -98)
[connection signal="seat_clicked" from="Seat1" to="." method="on_seat_clicked"]
[connection signal="seat_clicked" from="Seat2" to="." method="on_seat_clicked"]
[connection signal="seat_clicked" from="Seat3" to="." method="on_seat_clicked"]