diff --git a/godot_ship/.import/2longShip.jpg-d5a7704611de10aab66ba918993cfefa.md5 b/godot_ship/.import/2longShip.jpg-d5a7704611de10aab66ba918993cfefa.md5 new file mode 100644 index 0000000..cdd3a21 --- /dev/null +++ b/godot_ship/.import/2longShip.jpg-d5a7704611de10aab66ba918993cfefa.md5 @@ -0,0 +1 @@ +source_md5="00168b53c9cd61265cf190664db29efd" diff --git a/godot_ship/.import/2longShip.png-e234fd36aa8437d68669bed6fb538b78.md5 b/godot_ship/.import/2longShip.png-e234fd36aa8437d68669bed6fb538b78.md5 new file mode 100644 index 0000000..fdbbf06 --- /dev/null +++ b/godot_ship/.import/2longShip.png-e234fd36aa8437d68669bed6fb538b78.md5 @@ -0,0 +1 @@ +source_md5="106a395014345c8cc774de6517b1daec" diff --git a/godot_ship/.import/2longShipA.jpg-814579ce623e33eb53adc6f83c55b97a.md5 b/godot_ship/.import/2longShipA.jpg-814579ce623e33eb53adc6f83c55b97a.md5 new file mode 100644 index 0000000..b90dfc9 --- /dev/null +++ b/godot_ship/.import/2longShipA.jpg-814579ce623e33eb53adc6f83c55b97a.md5 @@ -0,0 +1 @@ +source_md5="d7007c0826320bc9947330c594d307d2" diff --git a/godot_ship/.import/3longShipA.png-6a91dbb91ef918b23841c41f7093095a.md5 b/godot_ship/.import/3longShipA.png-6a91dbb91ef918b23841c41f7093095a.md5 new file mode 100644 index 0000000..b1bb591 --- /dev/null +++ b/godot_ship/.import/3longShipA.png-6a91dbb91ef918b23841c41f7093095a.md5 @@ -0,0 +1 @@ +source_md5="278bc0390207207f494ab806902f32fc" diff --git a/godot_ship/.import/3longShipB.jpg-938e9622961f078ec20adaae37353048.md5 b/godot_ship/.import/3longShipB.jpg-938e9622961f078ec20adaae37353048.md5 new file mode 100644 index 0000000..fcbc6cb --- /dev/null +++ b/godot_ship/.import/3longShipB.jpg-938e9622961f078ec20adaae37353048.md5 @@ -0,0 +1 @@ +source_md5="90a2843c6e6f4d35686a4d7df3fb80c5" diff --git a/godot_ship/.import/3longShipB.png-298804bab32e13c4fbcd46eeb80a354a.md5 b/godot_ship/.import/3longShipB.png-298804bab32e13c4fbcd46eeb80a354a.md5 new file mode 100644 index 0000000..c0fc52b --- /dev/null +++ b/godot_ship/.import/3longShipB.png-298804bab32e13c4fbcd46eeb80a354a.md5 @@ -0,0 +1 @@ +source_md5="e158daf627468a5021d76c094cebf989" diff --git a/godot_ship/.import/4longShip.jpg-37f799abec354802900e084382ced2c3.md5 b/godot_ship/.import/4longShip.jpg-37f799abec354802900e084382ced2c3.md5 new file mode 100644 index 0000000..3f87254 --- /dev/null +++ b/godot_ship/.import/4longShip.jpg-37f799abec354802900e084382ced2c3.md5 @@ -0,0 +1 @@ +source_md5="a9439f384e30ad2103fd9cb6d0e7a91f" diff --git a/godot_ship/.import/4longShip.png-66bb0a1a0592f7a7862593b8911af333.md5 b/godot_ship/.import/4longShip.png-66bb0a1a0592f7a7862593b8911af333.md5 new file mode 100644 index 0000000..da5d8b3 --- /dev/null +++ b/godot_ship/.import/4longShip.png-66bb0a1a0592f7a7862593b8911af333.md5 @@ -0,0 +1 @@ +source_md5="b82d0290f4d4ecad747ca2eaf9fbd88a" diff --git a/godot_ship/.import/5longShip.jpg-1c06cb236b6500b8cfce00baf4d21905.md5 b/godot_ship/.import/5longShip.jpg-1c06cb236b6500b8cfce00baf4d21905.md5 new file mode 100644 index 0000000..b165fda --- /dev/null +++ b/godot_ship/.import/5longShip.jpg-1c06cb236b6500b8cfce00baf4d21905.md5 @@ -0,0 +1 @@ +source_md5="6458cdf7b31cecf002293127c1a25a1f" diff --git a/godot_ship/.import/5longShip.png-88bbaaa618d18fc67afeb8ed8b3c60ab.md5 b/godot_ship/.import/5longShip.png-88bbaaa618d18fc67afeb8ed8b3c60ab.md5 new file mode 100644 index 0000000..ea89c08 --- /dev/null +++ b/godot_ship/.import/5longShip.png-88bbaaa618d18fc67afeb8ed8b3c60ab.md5 @@ -0,0 +1 @@ +source_md5="fb805474b6bfe87e83ccf640c32a76e6" diff --git a/godot_ship/.import/battleship.png-3ac5571985b46807aec666e8ab4daeab.md5 b/godot_ship/.import/battleship.png-3ac5571985b46807aec666e8ab4daeab.md5 new file mode 100644 index 0000000..86155cc --- /dev/null +++ b/godot_ship/.import/battleship.png-3ac5571985b46807aec666e8ab4daeab.md5 @@ -0,0 +1 @@ +source_md5="ec343778050c59c4d80eed9e7d983c10" diff --git a/godot_ship/.import/board.png-9e4a38787502ba50f20171816826c39a.md5 b/godot_ship/.import/board.png-9e4a38787502ba50f20171816826c39a.md5 new file mode 100644 index 0000000..870e2e2 --- /dev/null +++ b/godot_ship/.import/board.png-9e4a38787502ba50f20171816826c39a.md5 @@ -0,0 +1,3 @@ +source_md5="d170428fb8fee49a5eb5678c98b2250a" +dest_md5="b0ca5f775a2fc3f7bb0490efd7529b1f" + diff --git a/godot_ship/.import/board.png-9e4a38787502ba50f20171816826c39a.stex b/godot_ship/.import/board.png-9e4a38787502ba50f20171816826c39a.stex new file mode 100644 index 0000000..2cd0ce5 Binary files /dev/null and b/godot_ship/.import/board.png-9e4a38787502ba50f20171816826c39a.stex differ diff --git a/godot_ship/.import/board_blue.png-8626e50dfcb57a0efd28af7e65ef2b42.md5 b/godot_ship/.import/board_blue.png-8626e50dfcb57a0efd28af7e65ef2b42.md5 new file mode 100644 index 0000000..4238530 --- /dev/null +++ b/godot_ship/.import/board_blue.png-8626e50dfcb57a0efd28af7e65ef2b42.md5 @@ -0,0 +1,3 @@ +source_md5="b92638ab580fe79d74bb8107654c3251" +dest_md5="63739009bf08a9c44da9311804dd83ec" + diff --git a/godot_ship/.import/board_blue.png-8626e50dfcb57a0efd28af7e65ef2b42.stex b/godot_ship/.import/board_blue.png-8626e50dfcb57a0efd28af7e65ef2b42.stex new file mode 100644 index 0000000..515531d Binary files /dev/null and b/godot_ship/.import/board_blue.png-8626e50dfcb57a0efd28af7e65ef2b42.stex differ diff --git a/godot_ship/.import/board_dark.png-8ab92393097062ca3eabf40325bbb36d.md5 b/godot_ship/.import/board_dark.png-8ab92393097062ca3eabf40325bbb36d.md5 new file mode 100644 index 0000000..b81f750 --- /dev/null +++ b/godot_ship/.import/board_dark.png-8ab92393097062ca3eabf40325bbb36d.md5 @@ -0,0 +1,3 @@ +source_md5="63dd36a667b0c12811b2125ee52eccfa" +dest_md5="6d17cd95e250f32964311c12ff5cfaf8" + diff --git a/godot_ship/.import/board_dark.png-8ab92393097062ca3eabf40325bbb36d.stex b/godot_ship/.import/board_dark.png-8ab92393097062ca3eabf40325bbb36d.stex new file mode 100644 index 0000000..a229728 Binary files /dev/null and b/godot_ship/.import/board_dark.png-8ab92393097062ca3eabf40325bbb36d.stex differ diff --git a/godot_ship/Gameplay.gd b/godot_ship/Gameplay.gd new file mode 100644 index 0000000..bb9bd06 --- /dev/null +++ b/godot_ship/Gameplay.gd @@ -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 diff --git a/godot_ship/assets/game/2longShip.png b/godot_ship/assets/game/2longShip.png new file mode 100644 index 0000000..5f3b604 Binary files /dev/null and b/godot_ship/assets/game/2longShip.png differ diff --git a/godot_ship/assets/game/2longShip.png.import b/godot_ship/assets/game/2longShip.png.import new file mode 100644 index 0000000..0367f38 --- /dev/null +++ b/godot_ship/assets/game/2longShip.png.import @@ -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 diff --git a/godot_ship/assets/game/3longShipA.png b/godot_ship/assets/game/3longShipA.png new file mode 100644 index 0000000..c6ecb6a Binary files /dev/null and b/godot_ship/assets/game/3longShipA.png differ diff --git a/godot_ship/assets/game/3longShipA.png.import b/godot_ship/assets/game/3longShipA.png.import new file mode 100644 index 0000000..1261cb8 --- /dev/null +++ b/godot_ship/assets/game/3longShipA.png.import @@ -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 diff --git a/godot_ship/assets/game/3longShipB.png b/godot_ship/assets/game/3longShipB.png new file mode 100644 index 0000000..efeb5d8 Binary files /dev/null and b/godot_ship/assets/game/3longShipB.png differ diff --git a/godot_ship/assets/game/3longShipB.png.import b/godot_ship/assets/game/3longShipB.png.import new file mode 100644 index 0000000..6e7e327 --- /dev/null +++ b/godot_ship/assets/game/3longShipB.png.import @@ -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 diff --git a/godot_ship/assets/game/4longShip.png b/godot_ship/assets/game/4longShip.png new file mode 100644 index 0000000..4e9fbbb Binary files /dev/null and b/godot_ship/assets/game/4longShip.png differ diff --git a/godot_ship/assets/game/4longShip.png.import b/godot_ship/assets/game/4longShip.png.import new file mode 100644 index 0000000..e12c3b5 --- /dev/null +++ b/godot_ship/assets/game/4longShip.png.import @@ -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 diff --git a/godot_ship/assets/game/5longShip.png b/godot_ship/assets/game/5longShip.png new file mode 100644 index 0000000..e5691d5 Binary files /dev/null and b/godot_ship/assets/game/5longShip.png differ diff --git a/godot_ship/assets/game/5longShip.png.import b/godot_ship/assets/game/5longShip.png.import new file mode 100644 index 0000000..e40556f --- /dev/null +++ b/godot_ship/assets/game/5longShip.png.import @@ -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 diff --git a/godot_ship/assets/game/board.png.import b/godot_ship/assets/game/board.png.import new file mode 100644 index 0000000..10b024f --- /dev/null +++ b/godot_ship/assets/game/board.png.import @@ -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 diff --git a/godot_ship/assets/game/board_blue.png.import b/godot_ship/assets/game/board_blue.png.import new file mode 100644 index 0000000..9778702 --- /dev/null +++ b/godot_ship/assets/game/board_blue.png.import @@ -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 diff --git a/godot_ship/assets/game/board_dark.png.import b/godot_ship/assets/game/board_dark.png.import new file mode 100644 index 0000000..8662067 --- /dev/null +++ b/godot_ship/assets/game/board_dark.png.import @@ -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 diff --git a/godot_ship/scenes/Gameplay.tscn b/godot_ship/scenes/Gameplay.tscn index 9ac1f9a..db95b5f 100644 --- a/godot_ship/scenes/Gameplay.tscn +++ b/godot_ship/scenes/Gameplay.tscn @@ -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"] diff --git a/godot_ship/script/game/Gameplay.gd b/godot_ship/script/game/Gameplay.gd new file mode 100644 index 0000000..6e19146 --- /dev/null +++ b/godot_ship/script/game/Gameplay.gd @@ -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.