-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtile.tscn
62 lines (46 loc) · 2.5 KB
/
tile.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[gd_scene load_steps=22 format=1]
[ext_resource path="res://tile.gd" type="Script" id=1]
[ext_resource path="res://tiles/grass_5.png" type="Texture" id=2]
[ext_resource path="res://tiles/block_1.png" type="Texture" id=3]
[ext_resource path="res://tiles/block_2.png" type="Texture" id=4]
[ext_resource path="res://tiles/block_3.png" type="Texture" id=5]
[ext_resource path="res://tiles/block_4.png" type="Texture" id=6]
[ext_resource path="res://tiles/block_5.png" type="Texture" id=7]
[ext_resource path="res://tiles/block_6.png" type="Texture" id=8]
[ext_resource path="res://tiles/block_7.png" type="Texture" id=9]
[ext_resource path="res://tiles/block_8.png" type="Texture" id=10]
[ext_resource path="res://tiles/block_9.png" type="Texture" id=11]
[ext_resource path="res://tiles/block_10.png" type="Texture" id=12]
[ext_resource path="res://tiles/block_11.png" type="Texture" id=13]
[ext_resource path="res://tiles/block_12.png" type="Texture" id=14]
[ext_resource path="res://tiles/block_13.png" type="Texture" id=15]
[ext_resource path="res://tiles/block_14.png" type="Texture" id=16]
[ext_resource path="res://tiles/block_15.png" type="Texture" id=17]
[ext_resource path="res://tiles/block_16.png" type="Texture" id=18]
[ext_resource path="res://misc/grid_cell.png" type="Texture" id=19]
[sub_resource type="RectangleShape2D" id=2]
custom_solver_bias = 0.0
extents = Vector2( 16, 16 )
[sub_resource type="SpriteFrames" id=1]
animations = [ { "frames":[ ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ), ExtResource( 5 ), ExtResource( 6 ), ExtResource( 7 ), ExtResource( 8 ), ExtResource( 9 ), ExtResource( 10 ), ExtResource( 11 ), ExtResource( 12 ), ExtResource( 13 ), ExtResource( 14 ), ExtResource( 15 ), ExtResource( 16 ), ExtResource( 17 ), ExtResource( 18 ) ], "loop":true, "name":"default", "speed":5.0 } ]
[node name="tile" type="Area2D"]
transform/pos = Vector2( -0.15778, 1.90735e-06 )
input/pickable = true
shapes/0/shape = SubResource( 2 )
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
shapes/0/trigger = false
gravity_vec = Vector2( 0, 1 )
gravity = 98.0
linear_damp = 0.1
angular_damp = 1.0
script/script = ExtResource( 1 )
[node name="tiles" type="AnimatedSprite" parent="."]
frames = SubResource( 1 )
animation = "default"
[node name="grid_cell" type="Sprite" parent="."]
texture = ExtResource( 19 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 2 )
trigger = false
_update_shape_index = 0
[connection signal="mouse_enter" from="." to="." method="_on_tile_mouse_enter"]