mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
Directional computers
This commit is contained in:
parent
72ce9fb932
commit
7ec45b56b1
13 changed files with 164 additions and 46 deletions
|
|
@ -1,7 +1,8 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://doqmmuuuprl3s"]
|
||||
[gd_scene load_steps=10 format=3 uid="uid://doqmmuuuprl3s"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://duhodrhcnoslh" path="res://Scripts/Interactables/Switch.cs" id="1_62csb"]
|
||||
[ext_resource type="Script" uid="uid://ck54glo7xbuq8" path="res://Scripts/Actors/Computer.cs" id="1_6kf2l"]
|
||||
[ext_resource type="Texture2D" uid="uid://dfjdl48v8kt2l" path="res://Sprites/Props/Computer2.png" id="2_tlxq6"]
|
||||
[ext_resource type="Script" uid="uid://rlevd6krqglv" path="res://Scripts/Components/SpriteAnimationStartupRotator.cs" id="3_l1hw5"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_wv7xi"]
|
||||
|
||||
|
|
@ -17,6 +18,10 @@ region = Rect2(16, 0, 16, 16)
|
|||
atlas = ExtResource("2_tlxq6")
|
||||
region = Rect2(32, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6kf2l"]
|
||||
atlas = ExtResource("2_tlxq6")
|
||||
region = Rect2(48, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_7837l"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
|
|
@ -24,7 +29,7 @@ animations = [{
|
|||
"texture": SubResource("AtlasTexture_6yfpu")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"name": &"Down",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
|
|
@ -32,7 +37,7 @@ animations = [{
|
|||
"texture": SubResource("AtlasTexture_jl6l5")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"left",
|
||||
"name": &"Left",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
|
|
@ -40,17 +45,27 @@ animations = [{
|
|||
"texture": SubResource("AtlasTexture_jxgtm")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"right",
|
||||
"name": &"Right",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6kf2l")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"Up",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="Computer" type="Area2D" groups=["Interactable"]]
|
||||
collision_layer = 4
|
||||
collision_mask = 2
|
||||
script = ExtResource("1_62csb")
|
||||
script = ExtResource("1_6kf2l")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_wv7xi")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_7837l")
|
||||
animation = &"Down"
|
||||
script = ExtResource("3_l1hw5")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue