feat(xray): add XRayMachine component with plate slide-in animation

This commit is contained in:
Steven Wroblewski
2026-04-17 14:25:04 +02:00
parent 353efc100f
commit 5f33e16165
2 changed files with 110 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
[gd_scene load_steps=2 format=3 uid="uid://cozypaw_xraymachine"]
[ext_resource type="Script" path="res://scripts/objects/xray_machine.gd" id="1_xraymachine"]
[node name="XRayMachine" type="Node2D"]
script = ExtResource("1_xraymachine")
[node name="MachineBody" type="ColorRect" parent="."]
color = Color(0.68, 0.70, 0.76, 1)
size = Vector2(80, 200)
position = Vector2(-40, -200)
[node name="MachineArm" type="ColorRect" parent="."]
color = Color(0.62, 0.64, 0.70, 1)
size = Vector2(220, 24)
position = Vector2(-40, -180)
[node name="ViewerFrame" type="ColorRect" parent="."]
color = Color(0.20, 0.22, 0.26, 1)
size = Vector2(80, 60)
position = Vector2(-40, -195)
[node name="Viewer" type="ColorRect" parent="."]
color = Color(0.06, 0.08, 0.12, 1)
size = Vector2(66, 46)
position = Vector2(-33, -189)
[node name="Plate" type="Node2D" parent="."]
position = Vector2(-50, 20)
[node name="PlateBody" type="ColorRect" parent="Plate"]
color = Color(0.28, 0.32, 0.38, 1)
size = Vector2(200, 14)
position = Vector2(0, -7)