-
Notifications
You must be signed in to change notification settings - Fork 1
/
Map.tscn
47 lines (33 loc) · 1.23 KB
/
Map.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
[gd_scene load_steps=6 format=2]
[ext_resource path="res://TileMap.gd" type="Script" id=1]
[ext_resource path="res://Unit.gd" type="Script" id=2]
[sub_resource type="CubeMesh" id=1]
[sub_resource type="SpatialMaterial" id=2]
albedo_color = Color( 0.972549, 0.290196, 0.290196, 1 )
[sub_resource type="SpatialMaterial" id=3]
albedo_color = Color( 1, 0.254902, 0.254902, 1 )
[node name="Map" type="Spatial"]
script = ExtResource( 1 )
[node name="Camera" type="Camera" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 10, 10, 20 )
projection = 1
current = true
size = 30.0
[node name="Unit" type="Spatial" parent="."]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0 )
script = ExtResource( 2 )
[node name="MeshInstance" type="MeshInstance" parent="Unit"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2 )
mesh = SubResource( 1 )
material/0 = SubResource( 2 )
[node name="Draw" type="ImmediateGeometry" parent="Unit"]
material_override = SubResource( 3 )
[node name="Button" type="Button" parent="."]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -200.0
margin_top = -40.0
text = "Advance"
[connection signal="pressed" from="Button" to="Unit" method="MoveToNextTile"]