1
0
mirror of https://github.com/JohnBreaux/Boat-Battle.git synced 2024-11-14 21:15:58 +00:00

added a grid and made Gameplay.gd

My boats :(
This commit is contained in:
Chance Atkinson 2021-10-20 21:21:15 -05:00
parent 57d6335016
commit d23bba5498
33 changed files with 345 additions and 2 deletions

View File

@ -0,0 +1 @@
source_md5="00168b53c9cd61265cf190664db29efd"

View File

@ -0,0 +1 @@
source_md5="106a395014345c8cc774de6517b1daec"

View File

@ -0,0 +1 @@
source_md5="d7007c0826320bc9947330c594d307d2"

View File

@ -0,0 +1 @@
source_md5="278bc0390207207f494ab806902f32fc"

View File

@ -0,0 +1 @@
source_md5="90a2843c6e6f4d35686a4d7df3fb80c5"

View File

@ -0,0 +1 @@
source_md5="e158daf627468a5021d76c094cebf989"

View File

@ -0,0 +1 @@
source_md5="a9439f384e30ad2103fd9cb6d0e7a91f"

View File

@ -0,0 +1 @@
source_md5="b82d0290f4d4ecad747ca2eaf9fbd88a"

View File

@ -0,0 +1 @@
source_md5="6458cdf7b31cecf002293127c1a25a1f"

View File

@ -0,0 +1 @@
source_md5="fb805474b6bfe87e83ccf640c32a76e6"

View File

@ -0,0 +1 @@
source_md5="ec343778050c59c4d80eed9e7d983c10"

View File

@ -0,0 +1,3 @@
source_md5="d170428fb8fee49a5eb5678c98b2250a"
dest_md5="b0ca5f775a2fc3f7bb0490efd7529b1f"

View File

@ -0,0 +1,3 @@
source_md5="b92638ab580fe79d74bb8107654c3251"
dest_md5="63739009bf08a9c44da9311804dd83ec"

View File

@ -0,0 +1,3 @@
source_md5="63dd36a667b0c12811b2125ee52eccfa"
dest_md5="6d17cd95e250f32964311c12ff5cfaf8"

16
godot_ship/Gameplay.gd Normal file
View File

@ -0,0 +1,16 @@
extends Control
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
valid=false
[deps]
source_file="res://assets/game/2longShip.png"
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
valid=false
[deps]
source_file="res://assets/game/3longShipA.png"
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
valid=false
[deps]
source_file="res://assets/game/3longShipB.png"
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
valid=false
[deps]
source_file="res://assets/game/4longShip.png"
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
valid=false
[deps]
source_file="res://assets/game/5longShip.png"
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/board.png-9e4a38787502ba50f20171816826c39a.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/game/board.png"
dest_files=[ "res://.import/board.png-9e4a38787502ba50f20171816826c39a.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/board_blue.png-8626e50dfcb57a0efd28af7e65ef2b42.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/game/board_blue.png"
dest_files=[ "res://.import/board_blue.png-8626e50dfcb57a0efd28af7e65ef2b42.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/board_dark.png-8ab92393097062ca3eabf40325bbb36d.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/game/board_dark.png"
dest_files=[ "res://.import/board_dark.png-8ab92393097062ca3eabf40325bbb36d.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -1,9 +1,50 @@
[gd_scene format=2]
[gd_scene load_steps=4 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]
[ext_resource path="res://script/game/Gameplay.gd" type="Script" id=3]
[node name="Game" type="Control"]
anchor_right = 1.0
anchor_bottom = 0.889
margin_bottom = 39.96
margin_left = -0.5
margin_top = 1.37003
margin_right = -0.5
margin_bottom = 41.33
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="board_blue" type="Sprite" parent="."]
position = Vector2( 187, 178 )
texture = ExtResource( 1 )
__meta__ = {
"_edit_lock_": true
}
[node name="Title-Screen-Background" type="Sprite" parent="."]
show_behind_parent = true
position = Vector2( 321.081, 179.931 )
texture = ExtResource( 2 )
flip_h = true
[node name="VBoxContainer" type="VBoxContainer" parent="."]
anchor_left = 0.912
anchor_top = 0.932
anchor_right = 0.912
anchor_bottom = 0.932
margin_left = 0.319946
margin_top = 0.47998
margin_right = 53.3199
margin_bottom = 20.48
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Forfeit" type="Button" parent="VBoxContainer"]
margin_right = 53.0
margin_bottom = 20.0
text = "Forfeit"
[connection signal="pressed" from="VBoxContainer/Forfeit" to="." method="_on_Forfeit_pressed"]

View File

@ -0,0 +1,19 @@
extends Control
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
func _on_Forfeit_pressed():
pass # Replace with function body.