coins are now keys

This commit is contained in:
pennyrigate 2023-03-21 15:39:01 -04:00
parent 66d1ba0ad9
commit 002184cc64
5 changed files with 83 additions and 18 deletions

View file

@ -1,33 +1,61 @@
[gd_scene load_steps=11 format=2]
[gd_scene load_steps=17 format=2]
[ext_resource path="res://objects/collectibles/gold.gd" type="Script" id=1]
[ext_resource path="res://shaders/recolor_border.shader" type="Shader" id=2]
[ext_resource path="res://graphics/collectibles/coin.png" type="Texture" id=3]
[ext_resource path="res://graphics/collectibles/pal_gold.png" type="Texture" id=4]
[ext_resource path="res://shaders/1px_border.gdshader" type="Shader" id=2]
[ext_resource path="res://graphics/collectibles/30385.png" type="Texture" id=3]
[ext_resource path="res://graphics/collectibles/key.png" type="Texture" id=4]
[sub_resource type="ShaderMaterial" id=1]
[sub_resource type="ShaderMaterial" id=7]
shader = ExtResource( 2 )
shader_param/border_color = Color( 0, 0, 0, 1 )
shader_param/border_corners = false
shader_param/palette = ExtResource( 4 )
[sub_resource type="AtlasTexture" id=2]
[sub_resource type="AtlasTexture" id=14]
atlas = ExtResource( 3 )
region = Rect2( 0, 0, 8, 8 )
region = Rect2( 0, 0, 10, 10 )
[sub_resource type="AtlasTexture" id=3]
[sub_resource type="AtlasTexture" id=15]
atlas = ExtResource( 3 )
region = Rect2( 8, 0, 8, 8 )
region = Rect2( 10, 0, 10, 10 )
[sub_resource type="AtlasTexture" id=4]
[sub_resource type="AtlasTexture" id=16]
atlas = ExtResource( 3 )
region = Rect2( 16, 0, 8, 8 )
region = Rect2( 20, 0, 10, 10 )
[sub_resource type="AtlasTexture" id=8]
atlas = ExtResource( 4 )
region = Rect2( 0, 0, 8, 9 )
[sub_resource type="AtlasTexture" id=9]
atlas = ExtResource( 4 )
region = Rect2( 8, 0, 8, 9 )
[sub_resource type="AtlasTexture" id=10]
atlas = ExtResource( 4 )
region = Rect2( 16, 0, 8, 9 )
[sub_resource type="AtlasTexture" id=11]
atlas = ExtResource( 4 )
region = Rect2( 24, 0, 8, 9 )
[sub_resource type="AtlasTexture" id=12]
atlas = ExtResource( 4 )
region = Rect2( 32, 0, 8, 9 )
[sub_resource type="AtlasTexture" id=13]
atlas = ExtResource( 4 )
region = Rect2( 40, 0, 8, 9 )
[sub_resource type="SpriteFrames" id=5]
animations = [ {
"frames": [ SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 3 ) ],
"frames": [ SubResource( 14 ), SubResource( 15 ), SubResource( 16 ) ],
"loop": true,
"name": "default",
"name": "30385",
"speed": 5.0
}, {
"frames": [ SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ), SubResource( 11 ), SubResource( 13 ), SubResource( 9 ) ],
"loop": true,
"name": "key",
"speed": 7.0
} ]
@ -38,9 +66,11 @@ extents = Vector2( 4, 4 )
script = ExtResource( 1 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
material = SubResource( 1 )
material = SubResource( 7 )
position = Vector2( 0, -1 )
frames = SubResource( 5 )
frame = 2
animation = "key"
frame = 3
playing = true
centered = false