tomato-dungeon

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

Spell.tscn (3059B)


      1 [gd_scene load_steps=24 format=2]
      2 
      3 [ext_resource path="res://spell_white.png" type="Texture" id=1]
      4 [ext_resource path="res://spell_red.png" type="Texture" id=2]
      5 [ext_resource path="res://spell_green.png" type="Texture" id=3]
      6 [ext_resource path="res://spell_blue.png" type="Texture" id=4]
      7 [ext_resource path="res://spell_purple.png" type="Texture" id=5]
      8 [ext_resource path="res://Spell.gd" type="Script" id=6]
      9 
     10 [sub_resource type="CircleShape2D" id=1]
     11 radius = 4.12311
     12 
     13 [sub_resource type="AtlasTexture" id=2]
     14 flags = 4
     15 atlas = ExtResource( 4 )
     16 region = Rect2( 0, 0, 32, 32 )
     17 
     18 [sub_resource type="AtlasTexture" id=3]
     19 flags = 4
     20 atlas = ExtResource( 4 )
     21 region = Rect2( 32, 0, 32, 32 )
     22 
     23 [sub_resource type="AtlasTexture" id=4]
     24 flags = 4
     25 atlas = ExtResource( 4 )
     26 region = Rect2( 64, 0, 32, 32 )
     27 
     28 [sub_resource type="AtlasTexture" id=5]
     29 flags = 4
     30 atlas = ExtResource( 3 )
     31 region = Rect2( 0, 0, 32, 32 )
     32 
     33 [sub_resource type="AtlasTexture" id=6]
     34 flags = 4
     35 atlas = ExtResource( 3 )
     36 region = Rect2( 32, 0, 32, 32 )
     37 
     38 [sub_resource type="AtlasTexture" id=7]
     39 flags = 4
     40 atlas = ExtResource( 3 )
     41 region = Rect2( 64, 0, 32, 32 )
     42 
     43 [sub_resource type="AtlasTexture" id=8]
     44 flags = 4
     45 atlas = ExtResource( 5 )
     46 region = Rect2( 0, 0, 32, 32 )
     47 
     48 [sub_resource type="AtlasTexture" id=9]
     49 flags = 4
     50 atlas = ExtResource( 5 )
     51 region = Rect2( 32, 0, 32, 32 )
     52 
     53 [sub_resource type="AtlasTexture" id=10]
     54 flags = 4
     55 atlas = ExtResource( 5 )
     56 region = Rect2( 64, 0, 32, 32 )
     57 
     58 [sub_resource type="AtlasTexture" id=11]
     59 flags = 4
     60 atlas = ExtResource( 2 )
     61 region = Rect2( 0, 0, 32, 32 )
     62 
     63 [sub_resource type="AtlasTexture" id=12]
     64 flags = 4
     65 atlas = ExtResource( 2 )
     66 region = Rect2( 32, 0, 32, 32 )
     67 
     68 [sub_resource type="AtlasTexture" id=13]
     69 flags = 4
     70 atlas = ExtResource( 2 )
     71 region = Rect2( 64, 0, 32, 32 )
     72 
     73 [sub_resource type="AtlasTexture" id=14]
     74 flags = 4
     75 atlas = ExtResource( 1 )
     76 region = Rect2( 0, 0, 32, 32 )
     77 
     78 [sub_resource type="AtlasTexture" id=15]
     79 flags = 4
     80 atlas = ExtResource( 1 )
     81 region = Rect2( 32, 0, 32, 32 )
     82 
     83 [sub_resource type="AtlasTexture" id=16]
     84 flags = 4
     85 atlas = ExtResource( 1 )
     86 region = Rect2( 64, 0, 32, 32 )
     87 
     88 [sub_resource type="SpriteFrames" id=17]
     89 animations = [ {
     90 "frames": [ SubResource( 2 ), SubResource( 3 ), SubResource( 4 ) ],
     91 "loop": true,
     92 "name": "blue",
     93 "speed": 10.0
     94 }, {
     95 "frames": [ SubResource( 5 ), SubResource( 6 ), SubResource( 7 ) ],
     96 "loop": true,
     97 "name": "green",
     98 "speed": 10.0
     99 }, {
    100 "frames": [ SubResource( 8 ), SubResource( 9 ), SubResource( 10 ) ],
    101 "loop": true,
    102 "name": "purple",
    103 "speed": 10.0
    104 }, {
    105 "frames": [ SubResource( 11 ), SubResource( 12 ), SubResource( 13 ) ],
    106 "loop": true,
    107 "name": "red",
    108 "speed": 10.0
    109 }, {
    110 "frames": [ SubResource( 14 ), SubResource( 15 ), SubResource( 16 ) ],
    111 "loop": true,
    112 "name": "white",
    113 "speed": 10.0
    114 } ]
    115 
    116 [node name="Spell" type="Area2D"]
    117 script = ExtResource( 6 )
    118 
    119 [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
    120 rotation = 1.5708
    121 shape = SubResource( 1 )
    122 
    123 [node name="Sprite" type="AnimatedSprite" parent="."]
    124 position = Vector2( -3, 0 )
    125 frames = SubResource( 17 )
    126 animation = "white"
    127 playing = true