mlpcardgame/Scenes/Board.tscn

49 lines
2.2 KiB
Text
Raw Normal View History

2019-05-04 21:42:07 +00:00
[gd_scene load_steps=8 format=2]
2019-05-04 19:33:47 +00:00
[ext_resource path="res://Scenes/Scripts/Board.gd" type="Script" id=1]
[ext_resource path="res://Scenes/Scripts/Camera.gd" type="Script" id=2]
2019-05-05 19:19:39 +00:00
[ext_resource path="res://Scenes/Components/Card.tscn" type="PackedScene" id=3]
[ext_resource path="res://MLPAssets/Background/boardbg.jpg" type="Texture" id=4]
[ext_resource path="res://Scenes/BoardUI.tscn" type="PackedScene" id=5]
2019-05-04 19:33:47 +00:00
2019-05-04 21:42:07 +00:00
[sub_resource type="SpatialMaterial" id=1]
2019-05-04 19:33:47 +00:00
flags_unshaded = true
2019-05-05 19:19:39 +00:00
albedo_texture = ExtResource( 4 )
2019-05-04 19:33:47 +00:00
2019-05-04 21:42:07 +00:00
[sub_resource type="PlaneMesh" id=2]
material = SubResource( 1 )
2019-05-04 19:33:47 +00:00
size = Vector2( 16, 9 )
[node name="Spatial" type="Spatial"]
script = ExtResource( 1 )
[node name="Camera" type="Camera" parent="."]
transform = Transform( 1, 0, 0, 0, 0.367808, 0.929902, 0, -0.929902, 0.367808, -0.232958, 4.94606, 3.11883 )
script = ExtResource( 2 )
2019-05-05 19:19:39 +00:00
[node name="Hand" type="Spatial" parent="Camera"]
transform = Transform( 0.4, 0, 0, 0, 0, -0.4, 0, 0.4, 0, 0, -0.552465, -0.87444 )
[node name="Card4" parent="Camera/Hand" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, -2.98023e-008, 0, 2.98023e-008, 1, 0, 0, 0 )
inHand = true
2019-05-04 19:33:47 +00:00
[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.001, 0 )
2019-05-04 21:42:07 +00:00
mesh = SubResource( 2 )
2019-05-04 19:33:47 +00:00
material/0 = null
2019-05-05 19:19:39 +00:00
[node name="BoardUI" parent="." instance=ExtResource( 5 )]
[node name="Cards" type="Spatial" parent="."]
2019-05-04 21:42:07 +00:00
2019-05-05 19:19:39 +00:00
[node name="Card" parent="Cards" instance=ExtResource( 3 )]
2019-05-04 21:42:07 +00:00
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1.55435, -0.001, 1.13711 )
2019-05-05 19:19:39 +00:00
[connection signal="card_dropped" from="Camera/Hand/Card4" to="." method="_card_dropped"]
[connection signal="card_picked" from="Camera/Hand/Card4" to="." method="_card_picked"]
[connection signal="card_selected" from="Camera/Hand/Card4" to="BoardUI" method="_card_selected" binds= [ "ff6" ]]
[connection signal="card_unselected" from="Camera/Hand/Card4" to="BoardUI" method="_card_unselected"]
[connection signal="card_selected" from="Cards/Card" to="BoardUI" method="_card_selected" binds= [ "ff6" ]]
[connection signal="card_unselected" from="Cards/Card" to="BoardUI" method="_card_unselected"]
[connection signal="mouse_exited" from="Cards/Card" to="." method="_mouse_blur"]