changed 30385 sprite

This commit is contained in:
pennyrigate 2023-01-15 03:41:54 -05:00
parent ec18f636b2
commit e64e9c49bf
5 changed files with 63 additions and 17 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Before After
Before After

View file

@ -1,26 +1,22 @@
[gd_resource type="SpriteFrames" load_steps=6 format=2]
[gd_resource type="SpriteFrames" load_steps=5 format=2]
[ext_resource path="res://graphics/collectibles/30385.png" type="Texture" id=1]
[sub_resource type="AtlasTexture" id=1]
atlas = ExtResource( 1 )
region = Rect2( 0, 0, 8, 8 )
region = Rect2( 0, 0, 10, 10 )
[sub_resource type="AtlasTexture" id=2]
atlas = ExtResource( 1 )
region = Rect2( 8, 0, 8, 8 )
region = Rect2( 10, 0, 10, 10 )
[sub_resource type="AtlasTexture" id=3]
atlas = ExtResource( 1 )
region = Rect2( 16, 0, 8, 8 )
[sub_resource type="AtlasTexture" id=4]
atlas = ExtResource( 1 )
region = Rect2( 0, 0, 8, 8 )
region = Rect2( 20, 0, 10, 10 )
[resource]
animations = [ {
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ) ],
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 1 ) ],
"loop": true,
"name": "default",
"speed": 7.0

File diff suppressed because one or more lines are too long

View file

@ -40,7 +40,7 @@ script = ExtResource( 1 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
material = SubResource( 1 )
frames = SubResource( 5 )
frame = 2
frame = 3
playing = true
centered = false

View file

@ -106,7 +106,10 @@ func _enter_code():
match code:
"30385":
for gold in get_tree().get_nodes_in_group("gold"):
gold.get_node("AnimatedSprite").frames = preload("res://graphics/collectibles/30385_frames.tres")
var goldsprite = gold.get_node("AnimatedSprite")
goldsprite.frames = preload("res://graphics/collectibles/30385_frames.tres")
goldsprite.position.y -= 2
#goldsprite.material.set_shader_param("palette",load("res://graphics/collectibles/pal_star_green.png"))
"1989":
Game.play_sound(Game.a_die, Game.ac_die)
for enemy in get_tree().get_nodes_in_group("enemy"):