golem.tscn (3404B)
1 [gd_scene load_steps=27 format=2] 2 3 [ext_resource path="res://monstre.tscn" type="PackedScene" id=1] 4 [ext_resource path="res://golem.gd" type="Script" id=2] 5 [ext_resource path="res://golem_att.png" type="Texture" id=3] 6 [ext_resource path="res://golem_die.png" type="Texture" id=4] 7 [ext_resource path="res://golem_walk.png" type="Texture" id=5] 8 [ext_resource path="res://attackgolem.wav" type="AudioStream" id=6] 9 10 [sub_resource type="AtlasTexture" id=16] 11 flags = 4 12 atlas = ExtResource( 5 ) 13 region = Rect2( 0, 0, 32, 31 ) 14 15 [sub_resource type="AtlasTexture" id=17] 16 flags = 4 17 atlas = ExtResource( 5 ) 18 region = Rect2( 32, 0, 32, 31 ) 19 20 [sub_resource type="AtlasTexture" id=18] 21 flags = 4 22 atlas = ExtResource( 5 ) 23 region = Rect2( 64, 0, 32, 31 ) 24 25 [sub_resource type="AtlasTexture" id=19] 26 flags = 4 27 atlas = ExtResource( 5 ) 28 region = Rect2( 96, 0, 32, 31 ) 29 30 [sub_resource type="AtlasTexture" id=11] 31 flags = 4 32 atlas = ExtResource( 3 ) 33 region = Rect2( 0, 0, 32, 32 ) 34 35 [sub_resource type="AtlasTexture" id=12] 36 flags = 4 37 atlas = ExtResource( 3 ) 38 region = Rect2( 32, 0, 32, 32 ) 39 40 [sub_resource type="AtlasTexture" id=13] 41 flags = 4 42 atlas = ExtResource( 3 ) 43 region = Rect2( 64, 0, 32, 32 ) 44 45 [sub_resource type="AtlasTexture" id=14] 46 flags = 4 47 atlas = ExtResource( 3 ) 48 region = Rect2( 96, 0, 32, 32 ) 49 50 [sub_resource type="AtlasTexture" id=15] 51 flags = 4 52 atlas = ExtResource( 3 ) 53 region = Rect2( 128, 0, 32, 32 ) 54 55 [sub_resource type="AtlasTexture" id=1] 56 flags = 4 57 atlas = ExtResource( 4 ) 58 region = Rect2( 0, 0, 32, 32 ) 59 60 [sub_resource type="AtlasTexture" id=2] 61 flags = 4 62 atlas = ExtResource( 4 ) 63 region = Rect2( 32, 0, 32, 32 ) 64 65 [sub_resource type="AtlasTexture" id=3] 66 flags = 4 67 atlas = ExtResource( 4 ) 68 region = Rect2( 64, 0, 32, 32 ) 69 70 [sub_resource type="AtlasTexture" id=4] 71 flags = 4 72 atlas = ExtResource( 4 ) 73 region = Rect2( 96, 0, 32, 32 ) 74 75 [sub_resource type="AtlasTexture" id=5] 76 flags = 4 77 atlas = ExtResource( 4 ) 78 region = Rect2( 128, 0, 32, 32 ) 79 80 [sub_resource type="AtlasTexture" id=6] 81 flags = 4 82 atlas = ExtResource( 4 ) 83 region = Rect2( 160, 0, 32, 32 ) 84 85 [sub_resource type="AtlasTexture" id=7] 86 flags = 4 87 atlas = ExtResource( 4 ) 88 region = Rect2( 192, 0, 32, 32 ) 89 90 [sub_resource type="AtlasTexture" id=8] 91 flags = 4 92 atlas = ExtResource( 4 ) 93 region = Rect2( 224, 0, 32, 32 ) 94 95 [sub_resource type="AtlasTexture" id=9] 96 flags = 4 97 atlas = ExtResource( 4 ) 98 region = Rect2( 256, 0, 32, 32 ) 99 100 [sub_resource type="AtlasTexture" id=10] 101 flags = 4 102 atlas = ExtResource( 4 ) 103 region = Rect2( 288, 0, 32, 32 ) 104 105 [sub_resource type="SpriteFrames" id=20] 106 animations = [ { 107 "frames": [ SubResource( 16 ), SubResource( 17 ), SubResource( 18 ), SubResource( 19 ) ], 108 "loop": true, 109 "name": "walk", 110 "speed": 5.0 111 }, { 112 "frames": [ SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ), SubResource( 15 ) ], 113 "loop": true, 114 "name": "attack", 115 "speed": 5.0 116 }, { 117 "frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ) ], 118 "loop": false, 119 "name": "die", 120 "speed": 5.0 121 } ] 122 123 [node name="golem" instance=ExtResource( 1 )] 124 script = ExtResource( 2 ) 125 126 [node name="GolemSprite" type="AnimatedSprite" parent="." index="1"] 127 visible = false 128 frames = SubResource( 20 ) 129 animation = "attack" 130 131 [node name="AttackSoundGolem" type="AudioStreamPlayer2D" parent="." index="7"] 132 stream = ExtResource( 6 ) 133 volume_db = 4.0