tomato-dungeon

a game made in 1 day
git clone git://git.vgx.fr/tomato-dungeon
Log | Files | Refs | README

throw.tscn (4253B)


      1 [gd_scene load_steps=26 format=2]
      2 
      3 [ext_resource path="res://icon.png" type="Texture" id=1]
      4 [ext_resource path="res://throw.gd" type="Script" id=2]
      5 [ext_resource path="res://throw_die.png" type="Texture" id=3]
      6 [ext_resource path="res://throw_walk.png" type="Texture" id=4]
      7 [ext_resource path="res://throw_att.png" type="Texture" id=5]
      8 [ext_resource path="res://hit.wav" type="AudioStream" id=6]
      9 [ext_resource path="res://attack.wav" type="AudioStream" id=7]
     10 
     11 [sub_resource type="AtlasTexture" id=31]
     12 flags = 4
     13 atlas = ExtResource( 4 )
     14 region = Rect2( 0, 0, 32, 32 )
     15 
     16 [sub_resource type="AtlasTexture" id=32]
     17 flags = 4
     18 atlas = ExtResource( 4 )
     19 region = Rect2( 32, 0, 32, 32 )
     20 
     21 [sub_resource type="AtlasTexture" id=25]
     22 flags = 4
     23 atlas = ExtResource( 5 )
     24 region = Rect2( 0, 0, 32, 32 )
     25 
     26 [sub_resource type="AtlasTexture" id=26]
     27 flags = 4
     28 atlas = ExtResource( 5 )
     29 region = Rect2( 32, 0, 32, 32 )
     30 
     31 [sub_resource type="AtlasTexture" id=27]
     32 flags = 4
     33 atlas = ExtResource( 5 )
     34 region = Rect2( 64, 0, 32, 32 )
     35 
     36 [sub_resource type="AtlasTexture" id=28]
     37 flags = 4
     38 atlas = ExtResource( 5 )
     39 region = Rect2( 96, 0, 32, 32 )
     40 
     41 [sub_resource type="AtlasTexture" id=29]
     42 flags = 4
     43 atlas = ExtResource( 5 )
     44 region = Rect2( 128, 0, 32, 32 )
     45 
     46 [sub_resource type="AtlasTexture" id=30]
     47 flags = 4
     48 atlas = ExtResource( 5 )
     49 region = Rect2( 160, 0, 32, 32 )
     50 
     51 [sub_resource type="AtlasTexture" id=19]
     52 flags = 4
     53 atlas = ExtResource( 3 )
     54 region = Rect2( 0, 0, 32, 32 )
     55 
     56 [sub_resource type="AtlasTexture" id=20]
     57 flags = 4
     58 atlas = ExtResource( 3 )
     59 region = Rect2( 32, 0, 32, 32 )
     60 
     61 [sub_resource type="AtlasTexture" id=21]
     62 flags = 4
     63 atlas = ExtResource( 3 )
     64 region = Rect2( 64, 0, 32, 32 )
     65 
     66 [sub_resource type="AtlasTexture" id=22]
     67 flags = 4
     68 atlas = ExtResource( 3 )
     69 region = Rect2( 96, 0, 32, 32 )
     70 
     71 [sub_resource type="AtlasTexture" id=23]
     72 flags = 4
     73 atlas = ExtResource( 3 )
     74 region = Rect2( 128, 0, 32, 32 )
     75 
     76 [sub_resource type="AtlasTexture" id=24]
     77 flags = 4
     78 atlas = ExtResource( 3 )
     79 region = Rect2( 160, 0, 32, 32 )
     80 
     81 [sub_resource type="SpriteFrames" id=33]
     82 animations = [ {
     83 "frames": [ SubResource( 31 ), SubResource( 32 ) ],
     84 "loop": true,
     85 "name": "walk",
     86 "speed": 5.0
     87 }, {
     88 "frames": [ SubResource( 25 ), SubResource( 26 ), SubResource( 27 ), SubResource( 28 ), SubResource( 29 ), SubResource( 30 ) ],
     89 "loop": true,
     90 "name": "attack",
     91 "speed": 5.0
     92 }, {
     93 "frames": [ SubResource( 19 ), SubResource( 20 ), SubResource( 21 ), SubResource( 22 ), SubResource( 23 ), SubResource( 24 ) ],
     94 "loop": false,
     95 "name": "die",
     96 "speed": 5.0
     97 } ]
     98 
     99 [sub_resource type="CapsuleShape2D" id=18]
    100 radius = 5.0
    101 height = 18.0
    102 
    103 [sub_resource type="CircleShape2D" id=17]
    104 radius = 7.0
    105 
    106 [sub_resource type="CapsuleShape2D" id=34]
    107 radius = 3.0
    108 height = 18.0
    109 
    110 [node name="throw" type="Node2D" groups=["monstres"]]
    111 script = ExtResource( 2 )
    112 
    113 [node name="Sprite" type="AnimatedSprite" parent="."]
    114 frames = SubResource( 33 )
    115 animation = "attack"
    116 frame = 3
    117 
    118 [node name="AttackArea" type="Area2D" parent="Sprite"]
    119 
    120 [node name="CollisionShape2D" type="CollisionShape2D" parent="Sprite/AttackArea"]
    121 position = Vector2( 11, 0 )
    122 shape = SubResource( 18 )
    123 
    124 [node name="HitArea" type="Area2D" parent="Sprite"]
    125 
    126 [node name="CollisionShape2D" type="CollisionShape2D" parent="Sprite/HitArea"]
    127 position = Vector2( 0, 1 )
    128 shape = SubResource( 17 )
    129 
    130 [node name="CollisionShape2D2" type="CollisionShape2D" parent="Sprite/HitArea"]
    131 position = Vector2( 3, 0 )
    132 shape = SubResource( 34 )
    133 
    134 [node name="SpellSpawn" type="Position2D" parent="Sprite"]
    135 position = Vector2( 14, 0 )
    136 
    137 [node name="oldSprite" type="Sprite" parent="."]
    138 visible = false
    139 scale = Vector2( 0.46875, 0.46875 )
    140 texture = ExtResource( 1 )
    141 
    142 [node name="lifebar_bg" type="Polygon2D" parent="."]
    143 position = Vector2( -10, -6 )
    144 z_index = 1
    145 color = Color( 0.411765, 0.411765, 0.411765, 1 )
    146 polygon = PoolVector2Array( 0, -13, 0, -9, 21, -9, 21, -13 )
    147 
    148 [node name="lifebar" type="Polygon2D" parent="."]
    149 position = Vector2( -10, -12 )
    150 z_index = 1
    151 color = Color( 1, 0, 0, 1 )
    152 polygon = PoolVector2Array( 0, -7, 0, -3, 21, -3, 21, -7 )
    153 
    154 [node name="AttackSound" type="AudioStreamPlayer2D" parent="."]
    155 stream = ExtResource( 7 )
    156 volume_db = 4.0
    157 pitch_scale = 2.0
    158 
    159 [node name="HitSound" type="AudioStreamPlayer2D" parent="."]
    160 stream = ExtResource( 6 )
    161 volume_db = 9.0
    162 pitch_scale = 3.0