mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-13 00:25:53 +00:00
Mapping and sprites
This commit is contained in:
parent
8a596dba3a
commit
85f0ae95d7
6 changed files with 101 additions and 9 deletions
|
|
@ -1,10 +1,49 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://doqmmuuuprl3s"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://doqmmuuuprl3s"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Interactables/Switch.cs" id="1_62csb"]
|
||||
[ext_resource type="Texture2D" uid="uid://dyk2r7qkhdtkp" path="res://Sprites/Props/Computer.png" id="1_bo0p8"]
|
||||
[ext_resource type="Texture2D" uid="uid://dfjdl48v8kt2l" path="res://Sprites/Props/Computer2.png" id="2_tlxq6"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_wv7xi"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6yfpu"]
|
||||
atlas = ExtResource("2_tlxq6")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jl6l5"]
|
||||
atlas = ExtResource("2_tlxq6")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jxgtm"]
|
||||
atlas = ExtResource("2_tlxq6")
|
||||
region = Rect2(32, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_7837l"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6yfpu")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jl6l5")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"left",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_jxgtm")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"right",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="Computer" type="Area2D" groups=["Interactable"]]
|
||||
collision_layer = 4
|
||||
collision_mask = 2
|
||||
|
|
@ -13,5 +52,5 @@ script = ExtResource("1_62csb")
|
|||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_wv7xi")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_bo0p8")
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_7837l")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue