Setup for dynamic elevator floor buttons

Add a button scene, as well as a button scene. Each button has an Area3D to detect collisons; a two-row sprite sheet contains all of the numbers and their on/off state.
This commit is contained in:
Henry Faber 2026-05-16 15:58:45 +01:00
parent acb10d18a4
commit 189823e8bf
9 changed files with 219 additions and 0 deletions

19
scenes/floor_button.tscn Normal file
View file

@ -0,0 +1,19 @@
[gd_scene format=3 uid="uid://bw1kbbl3n83e8"]
[ext_resource type="Texture2D" uid="uid://8bw5fmr1vkjn" path="res://images/elevator_numbers.png" id="1_4clxj"]
[sub_resource type="BoxShape3D" id="BoxShape3D_4clxj"]
size = Vector3(1.1594238, 1, 0.055664063)
[node name="FloorButton" type="Area3D" unique_id=265465826]
[node name="ButtonSprite" type="Sprite3D" parent="." unique_id=1628684586]
billboard = 1
texture_filter = 0
texture = ExtResource("1_4clxj")
hframes = 10
vframes = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=1160314093]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.361)
shape = SubResource("BoxShape3D_4clxj")