changed 30385 sprite
This commit is contained in:
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 |
|
@ -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]
|
[ext_resource path="res://graphics/collectibles/30385.png" type="Texture" id=1]
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=1]
|
[sub_resource type="AtlasTexture" id=1]
|
||||||
atlas = ExtResource( 1 )
|
atlas = ExtResource( 1 )
|
||||||
region = Rect2( 0, 0, 8, 8 )
|
region = Rect2( 0, 0, 10, 10 )
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=2]
|
[sub_resource type="AtlasTexture" id=2]
|
||||||
atlas = ExtResource( 1 )
|
atlas = ExtResource( 1 )
|
||||||
region = Rect2( 8, 0, 8, 8 )
|
region = Rect2( 10, 0, 10, 10 )
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=3]
|
[sub_resource type="AtlasTexture" id=3]
|
||||||
atlas = ExtResource( 1 )
|
atlas = ExtResource( 1 )
|
||||||
region = Rect2( 16, 0, 8, 8 )
|
region = Rect2( 20, 0, 10, 10 )
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id=4]
|
|
||||||
atlas = ExtResource( 1 )
|
|
||||||
region = Rect2( 0, 0, 8, 8 )
|
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
animations = [ {
|
animations = [ {
|
||||||
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ) ],
|
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 1 ) ],
|
||||||
"loop": true,
|
"loop": true,
|
||||||
"name": "default",
|
"name": "default",
|
||||||
"speed": 7.0
|
"speed": 7.0
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -40,7 +40,7 @@ script = ExtResource( 1 )
|
||||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
||||||
material = SubResource( 1 )
|
material = SubResource( 1 )
|
||||||
frames = SubResource( 5 )
|
frames = SubResource( 5 )
|
||||||
frame = 2
|
frame = 3
|
||||||
playing = true
|
playing = true
|
||||||
centered = false
|
centered = false
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,10 @@ func _enter_code():
|
||||||
match code:
|
match code:
|
||||||
"30385":
|
"30385":
|
||||||
for gold in get_tree().get_nodes_in_group("gold"):
|
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":
|
"1989":
|
||||||
Game.play_sound(Game.a_die, Game.ac_die)
|
Game.play_sound(Game.a_die, Game.ac_die)
|
||||||
for enemy in get_tree().get_nodes_in_group("enemy"):
|
for enemy in get_tree().get_nodes_in_group("enemy"):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue