mlpcardgame/Scenes/Board.tscn

48 lines
2.2 KiB
Text

[gd_scene load_steps=8 format=2]
[ext_resource path="res://Scenes/Scripts/Board.gd" type="Script" id=1]
[ext_resource path="res://Scenes/Scripts/Camera.gd" type="Script" id=2]
[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]
[sub_resource type="SpatialMaterial" id=1]
flags_unshaded = true
albedo_texture = ExtResource( 4 )
[sub_resource type="PlaneMesh" id=2]
material = SubResource( 1 )
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 )
[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
[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.001, 0 )
mesh = SubResource( 2 )
material/0 = null
[node name="BoardUI" parent="." instance=ExtResource( 5 )]
[node name="Cards" type="Spatial" parent="."]
[node name="Card" parent="Cards" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1.55435, -0.001, 1.13711 )
[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"]