mirror of
https://github.com/JohnBreaux/Boat-Battle.git
synced 2025-02-04 12:28:35 +00:00
Snap only when on board
- snaps only when placed on board - Returns to original position if it isn't
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=10 format=2]
|
||||
[gd_scene load_steps=9 format=2]
|
||||
|
||||
[ext_resource path="res://assets/game/board_blue.png" type="Texture" id=1]
|
||||
[ext_resource path="res://script/title screen/Title-Screen-Background.png" type="Texture" id=2]
|
||||
@@ -9,9 +9,6 @@
|
||||
[ext_resource path="res://scenes/ships/3shipA.tscn" type="PackedScene" id=7]
|
||||
[ext_resource path="res://scenes/ships/4Ship.tscn" type="PackedScene" id=8]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 7.27765, 175.36 )
|
||||
|
||||
[node name="Game" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.889
|
||||
@@ -72,41 +69,33 @@ __meta__ = {
|
||||
|
||||
[node name="2Ship" parent="." instance=ExtResource( 4 )]
|
||||
position = Vector2( 529.802, 70.7151 )
|
||||
collision_layer = 3
|
||||
contacts_reported = 1
|
||||
contact_monitor = true
|
||||
|
||||
[node name="3ShipA" parent="." instance=ExtResource( 7 )]
|
||||
position = Vector2( 434.236, 114.21 )
|
||||
collision_layer = 3
|
||||
contacts_reported = 1
|
||||
contact_monitor = true
|
||||
|
||||
[node name="3ShipB" parent="." instance=ExtResource( 6 )]
|
||||
position = Vector2( 443.216, 266.865 )
|
||||
collision_layer = 3
|
||||
contacts_reported = 1
|
||||
contact_monitor = true
|
||||
|
||||
[node name="4Ship" parent="." instance=ExtResource( 8 )]
|
||||
position = Vector2( 522.911, 218.599 )
|
||||
collision_layer = 3
|
||||
contacts_reported = 1
|
||||
contact_monitor = true
|
||||
|
||||
[node name="5Ship" parent="." instance=ExtResource( 5 )]
|
||||
position = Vector2( 607.096, 211.864 )
|
||||
|
||||
[node name="Borders" type="Area2D" parent="."]
|
||||
position = Vector2( 8.87946, 176.974 )
|
||||
gravity_vec = Vector2( 0, 0 )
|
||||
gravity = 0.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Borders"]
|
||||
shape = SubResource( 1 )
|
||||
one_way_collision_margin = 0.0
|
||||
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Borders"]
|
||||
position = Vector2( 343, 0 )
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="CollisionShape2D3" type="CollisionShape2D" parent="Borders"]
|
||||
position = Vector2( 171.26, -168.324 )
|
||||
rotation = 1.5708
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="CollisionShape2D4" type="CollisionShape2D" parent="Borders"]
|
||||
position = Vector2( 171.26, 173.677 )
|
||||
rotation = 1.5708
|
||||
shape = SubResource( 1 )
|
||||
collision_layer = 3
|
||||
contacts_reported = 1
|
||||
contact_monitor = true
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/Forfeit" to="." method="_on_Forfeit_pressed"]
|
||||
[connection signal="about_to_show" from="ConfirmationDialog" to="." method="_on_ConfirmationDialog_about_to_show"]
|
||||
|
||||
Reference in New Issue
Block a user