mirror of
https://github.com/JohnBreaux/Boat-Battle.git
synced 2025-02-04 12:28:35 +00:00
Partial fire functionality added.
Currently hides all ship placement UI and makes visible all fire functionality. The crosshair currently does not snap to a grid. The ships are saved in an area of location objects holding the length, orientation, and coordinates of the ship.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=9 format=2]
|
||||
[gd_scene load_steps=11 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]
|
||||
@@ -8,6 +8,8 @@
|
||||
[ext_resource path="res://scenes/ships/3ShipB.tscn" type="PackedScene" id=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]
|
||||
[ext_resource path="res://assets/game/RedCrosshair.png" type="Texture" id=9]
|
||||
[ext_resource path="res://script/game/Gameplay/Crosshair.gd" type="Script" id=10]
|
||||
|
||||
[node name="Game" type="Control"]
|
||||
anchor_right = 1.0
|
||||
@@ -38,6 +40,11 @@ __meta__ = {
|
||||
"_edit_lock_": true
|
||||
}
|
||||
|
||||
[node name="Crosshair" type="Sprite" parent="."]
|
||||
visible = false
|
||||
texture = ExtResource( 9 )
|
||||
script = ExtResource( 10 )
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
anchor_left = 0.912
|
||||
anchor_top = 0.932
|
||||
@@ -131,7 +138,19 @@ __meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Fire" type="Button" parent="."]
|
||||
visible = false
|
||||
margin_left = 443.545
|
||||
margin_top = 264.473
|
||||
margin_right = 528.545
|
||||
margin_bottom = 318.473
|
||||
text = "FIRE"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[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"]
|
||||
[connection signal="pressed" from="Confirm Placement" to="." method="_on_Confirm_Placement_pressed"]
|
||||
[connection signal="pressed" from="Clear" to="." method="_on_Clear_pressed"]
|
||||
[connection signal="pressed" from="Fire" to="." method="_on_Fire_pressed"]
|
||||
|
||||
Reference in New Issue
Block a user