initial commit

This commit is contained in:
CocoWaff 2024-04-09 20:28:02 -05:00
parent 0ddf244a1f
commit de89315876
66 changed files with 1652 additions and 0 deletions

View File

@ -0,0 +1,6 @@
[gd_scene load_steps=2 format=3 uid="uid://bcfv6elb47fs5"]
[ext_resource type="Script" path="res://Scripts/AttackManager.gd" id="1_ikclc"]
[node name="AttackManager" type="Node"]
script = ExtResource("1_ikclc")

19
Scenes/Bait.tscn Normal file
View File

@ -0,0 +1,19 @@
[gd_scene load_steps=4 format=3 uid="uid://di50jra7frllw"]
[ext_resource type="Texture2D" uid="uid://csmi3bgfpeh3l" path="res://Sprites/Bait.png" id="1_7hcc5"]
[ext_resource type="Script" path="res://Scripts/Bait.gd" id="1_we5hg"]
[sub_resource type="CircleShape2D" id="CircleShape2D_e3hpy"]
radius = 51.0392
[node name="Bait" type="Area2D"]
script = ExtResource("1_we5hg")
[node name="BaitSprite" type="Sprite2D" parent="."]
texture = ExtResource("1_7hcc5")
[node name="BaitCollision" type="CollisionShape2D" parent="."]
position = Vector2(-7, 0)
shape = SubResource("CircleShape2D_e3hpy")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]

20
Scenes/Death.tscn Normal file
View File

@ -0,0 +1,20 @@
[gd_scene load_steps=5 format=3 uid="uid://cx5mlw02qhhor"]
[ext_resource type="Texture2D" uid="uid://bmemuk5vda3oe" path="res://Sprites/Death Screen.png" id="1_ptiub"]
[ext_resource type="Script" path="res://Scripts/Death.gd" id="2_crek1"]
[ext_resource type="Texture2D" uid="uid://cbxcll0dvejsp" path="res://Sprites/StartOver.png" id="3_mtk0t"]
[ext_resource type="Texture2D" uid="uid://cvmauamus016g" path="res://Sprites/Quit.png" id="4_yg48p"]
[node name="Death" type="Sprite2D"]
process_mode = 2
z_index = 2
texture = ExtResource("1_ptiub")
script = ExtResource("2_crek1")
[node name="StartOver" type="Sprite2D" parent="."]
position = Vector2(2, -98)
texture = ExtResource("3_mtk0t")
[node name="Quit" type="Sprite2D" parent="."]
position = Vector2(199, 42)
texture = ExtResource("4_yg48p")

26
Scenes/Dynamite.tscn Normal file
View File

@ -0,0 +1,26 @@
[gd_scene load_steps=5 format=3 uid="uid://8yeiu67bl2i5"]
[ext_resource type="Script" path="res://Scripts/Dynamite.gd" id="1_7s622"]
[ext_resource type="Texture2D" uid="uid://cpcrj33uo4sx8" path="res://Sprites/Dynamite.png" id="1_fj38h"]
[ext_resource type="Texture2D" uid="uid://b0syrkop0p3fn" path="res://Sprites/Explosion.png" id="2_admom"]
[sub_resource type="CircleShape2D" id="CircleShape2D_y8tdw"]
radius = 1124.0
[node name="Dynamite" type="Area2D"]
show_behind_parent = true
script = ExtResource("1_7s622")
[node name="Dynamite" type="Sprite2D" parent="."]
texture = ExtResource("1_fj38h")
[node name="Explosion" type="Sprite2D" parent="."]
visible = false
position = Vector2(23, -50)
texture = ExtResource("2_admom")
[node name="ExplosionCollision" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_y8tdw")
disabled = true
[connection signal="body_entered" from="." to="." method="_on_body_entered"]

18
Scenes/GoldenBait.tscn Normal file
View File

@ -0,0 +1,18 @@
[gd_scene load_steps=4 format=3 uid="uid://dw8v4oau5ahlu"]
[ext_resource type="Texture2D" uid="uid://b0pqcncvub8ho" path="res://Sprites/GoldenBait.png" id="1_05atl"]
[ext_resource type="Script" path="res://Scripts/GoldenBait.gd" id="1_ptwu7"]
[sub_resource type="CircleShape2D" id="CircleShape2D_ckek7"]
radius = 58.0
[node name="GoldenBait" type="Area2D"]
script = ExtResource("1_ptwu7")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_05atl")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_ckek7")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]

28
Scenes/Hook.tscn Normal file
View File

@ -0,0 +1,28 @@
[gd_scene load_steps=5 format=3 uid="uid://b0jqcidlj5nqi"]
[ext_resource type="Script" path="res://Scripts/Hook.gd" id="1_33yxr"]
[ext_resource type="Texture2D" uid="uid://c8omthvaa0tvf" path="res://Sprites/Hook.png" id="1_t4axo"]
[sub_resource type="CircleShape2D" id="CircleShape2D_77i7p"]
radius = 35.0571
[sub_resource type="RectangleShape2D" id="RectangleShape2D_lov3l"]
size = Vector2(9, 56)
[node name="Hook" type="Area2D"]
show_behind_parent = true
script = ExtResource("1_33yxr")
[node name="HookSprite" type="Sprite2D" parent="."]
position = Vector2(0, -866)
texture = ExtResource("1_t4axo")
[node name="Hook Collision" type="CollisionShape2D" parent="."]
position = Vector2(-4, 35)
shape = SubResource("CircleShape2D_77i7p")
[node name="Hook Collision 2" type="CollisionShape2D" parent="."]
position = Vector2(28.5, 6)
shape = SubResource("RectangleShape2D_lov3l")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]

6
Scenes/Life.tscn Normal file
View File

@ -0,0 +1,6 @@
[gd_scene load_steps=2 format=3 uid="uid://bou8qh1x4de1k"]
[ext_resource type="Texture2D" uid="uid://b7yoj8tyi4eqe" path="res://Sprites/Life.png" id="1_5mtlq"]
[node name="Sprite2D" type="Sprite2D"]
texture = ExtResource("1_5mtlq")

7
Scenes/LifeManager.tscn Normal file
View File

@ -0,0 +1,7 @@
[gd_scene load_steps=2 format=3 uid="uid://bvoci5rf6go0y"]
[ext_resource type="Script" path="res://Scripts/LifeManager.gd" id="1_ycxff"]
[node name="LifeManager" type="Node2D"]
top_level = true
script = ExtResource("1_ycxff")

67
Scenes/Main.tscn Normal file
View File

@ -0,0 +1,67 @@
[gd_scene load_steps=11 format=3 uid="uid://c1g2l10lobpv8"]
[ext_resource type="Texture2D" uid="uid://cgg37qvciepi7" path="res://Sprites/Background.png" id="1_0e3so"]
[ext_resource type="PackedScene" uid="uid://bcfv6elb47fs5" path="res://Scenes/AttackManager.tscn" id="1_1rhdq"]
[ext_resource type="Texture2D" uid="uid://1j1ta0o1o5r2" path="res://Sprites/Ocean.png" id="2_s3rym"]
[ext_resource type="PackedScene" uid="uid://p4nituv2rgo4" path="res://Scenes/Player.tscn" id="3_k8nfq"]
[ext_resource type="PackedScene" uid="uid://bvoci5rf6go0y" path="res://Scenes/LifeManager.tscn" id="5_xfyvj"]
[ext_resource type="PackedScene" uid="uid://cx5mlw02qhhor" path="res://Scenes/Death.tscn" id="6_fpbwn"]
[sub_resource type="SegmentShape2D" id="SegmentShape2D_ja5gl"]
a = Vector2(-956.909, 451.573)
b = Vector2(-956.909, -435.676)
[sub_resource type="SegmentShape2D" id="SegmentShape2D_7mhq1"]
a = Vector2(956.688, 447.599)
b = Vector2(-964.857, 447.599)
[sub_resource type="SegmentShape2D" id="SegmentShape2D_py2uc"]
a = Vector2(950.727, -428.721)
b = Vector2(950.727, 458.528)
[sub_resource type="SegmentShape2D" id="SegmentShape2D_vjpve"]
a = Vector2(964.637, -426.734)
b = Vector2(-977.774, -426.734)
[node name="Main" type="Node2D" groups=["Game"]]
process_mode = 1
[node name="Background" type="Sprite2D" parent="."]
position = Vector2(4.00002, -449)
scale = Vector2(1.01042, 0.235185)
texture = ExtResource("1_0e3so")
[node name="Lake" type="Sprite2D" parent="."]
position = Vector2(3.11107, 89.5)
scale = Vector2(1.00648, 1.00648)
texture = ExtResource("2_s3rym")
[node name="Boundries" type="StaticBody2D" parent="Lake"]
[node name="LeftBound" type="CollisionShape2D" parent="Lake/Boundries"]
shape = SubResource("SegmentShape2D_ja5gl")
debug_color = Color(0.635294, 0.52549, 0, 0.419608)
[node name="BottomBound" type="CollisionShape2D" parent="Lake/Boundries"]
shape = SubResource("SegmentShape2D_7mhq1")
[node name="RightBound" type="CollisionShape2D" parent="Lake/Boundries"]
shape = SubResource("SegmentShape2D_py2uc")
debug_color = Color(0.184314, 0.643137, 0, 0.419608)
[node name="TopBound" type="CollisionShape2D" parent="Lake/Boundries"]
shape = SubResource("SegmentShape2D_vjpve")
debug_color = Color(0.996078, 0, 0.192157, 0.419608)
[node name="Fish" parent="." instance=ExtResource("3_k8nfq")]
z_index = 1
position = Vector2(-77, 147)
[node name="AttackManager" parent="." instance=ExtResource("1_1rhdq")]
[node name="LifeManager" parent="." instance=ExtResource("5_xfyvj")]
position = Vector2(-908, -484)
[node name="Camera2D" type="Camera2D" parent="."]
[node name="Death" parent="." instance=ExtResource("6_fpbwn")]

22
Scenes/Net.tscn Normal file
View File

@ -0,0 +1,22 @@
[gd_scene load_steps=4 format=3 uid="uid://ctd2myvpff1y7"]
[ext_resource type="Texture2D" uid="uid://carqvc2760qg5" path="res://Sprites/Net.png" id="1_1g6s8"]
[ext_resource type="Script" path="res://Scripts/Net.gd" id="1_w7m5o"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_x6qlj"]
size = Vector2(84.9533, 525.728)
[node name="Net" type="Area2D"]
script = ExtResource("1_w7m5o")
[node name="NetSprite" type="Sprite2D" parent="."]
show_behind_parent = true
position = Vector2(427, -318)
texture = ExtResource("1_1g6s8")
[node name="NetCollision" type="CollisionShape2D" parent="."]
position = Vector2(1.99997, 3.00003)
rotation = 0.785398
shape = SubResource("RectangleShape2D_x6qlj")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]

20
Scenes/Player.tscn Normal file
View File

@ -0,0 +1,20 @@
[gd_scene load_steps=4 format=3 uid="uid://p4nituv2rgo4"]
[ext_resource type="Texture2D" uid="uid://bttcv86ilmg4q" path="res://Sprites/Fish.png" id="1_gmqiy"]
[ext_resource type="Script" path="res://Scripts/Player.gd" id="1_rth0u"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_5r6vi"]
radius = 42.0
height = 106.0
[node name="Fish" type="CharacterBody2D" groups=["Fish"]]
script = ExtResource("1_rth0u")
[node name="FishSprite" type="Sprite2D" parent="."]
position = Vector2(11, 0)
texture = ExtResource("1_gmqiy")
[node name="FishCollision" type="CollisionShape2D" parent="."]
position = Vector2(-18, 0)
rotation = 1.5708
shape = SubResource("CapsuleShape2D_5r6vi")

7
Scenes/SceneManager.tscn Normal file
View File

@ -0,0 +1,7 @@
[gd_scene load_steps=2 format=3 uid="uid://djkbqla5k42wl"]
[ext_resource type="Script" path="res://Scripts/SceneManager.gd" id="1_uj21u"]
[node name="SceneManager" type="Node" groups=["BigBoss"]]
process_mode = 3
script = ExtResource("1_uj21u")

17
Scenes/Spear.tscn Normal file
View File

@ -0,0 +1,17 @@
[gd_scene load_steps=3 format=3 uid="uid://whd0o674ot6u"]
[ext_resource type="Script" path="res://Scripts/Spear.gd" id="1_82tvu"]
[ext_resource type="Texture2D" uid="uid://narrefbak446" path="res://Sprites/Spear.png" id="2_hafs4"]
[node name="Spear" type="Area2D"]
show_behind_parent = true
script = ExtResource("1_82tvu")
[node name="SpearSprite" type="Sprite2D" parent="."]
position = Vector2(-1, 53)
texture = ExtResource("2_hafs4")
[node name="SpearCollision" type="CollisionPolygon2D" parent="."]
polygon = PackedVector2Array(-34, 427, -3, 502, 29, 427)
[connection signal="body_entered" from="." to="." method="_on_body_entered"]

21
Scenes/Title.tscn Normal file
View File

@ -0,0 +1,21 @@
[gd_scene load_steps=5 format=3 uid="uid://bl07w8iywdpwi"]
[ext_resource type="Texture2D" uid="uid://cl83u6qtbydit" path="res://Sprites/Title.png" id="1_da8ud"]
[ext_resource type="Texture2D" uid="uid://cwjnfy0eum3sl" path="res://Sprites/Start.png" id="2_gn6bx"]
[ext_resource type="Script" path="res://Scripts/Title.gd" id="2_md8r0"]
[ext_resource type="Texture2D" uid="uid://cvmauamus016g" path="res://Sprites/Quit.png" id="3_a5nxc"]
[node name="Title" type="Sprite2D"]
process_mode = 3
texture = ExtResource("1_da8ud")
script = ExtResource("2_md8r0")
[node name="Start" type="Sprite2D" parent="."]
position = Vector2(848, -206)
texture = ExtResource("2_gn6bx")
[node name="Quit" type="Sprite2D" parent="."]
position = Vector2(756, -86)
texture = ExtResource("3_a5nxc")
[node name="Camera2D" type="Camera2D" parent="."]

10
Scenes/Win.tscn Normal file
View File

@ -0,0 +1,10 @@
[gd_scene load_steps=3 format=3 uid="uid://b8nfs8p8wca2c"]
[ext_resource type="Texture2D" uid="uid://cn2ivkgp5e7ox" path="res://Sprites/Win.png" id="1_11ccw"]
[ext_resource type="Script" path="res://Scripts/Win.gd" id="2_nhp6w"]
[node name="Win" type="Sprite2D"]
texture = ExtResource("1_11ccw")
script = ExtResource("2_nhp6w")
[node name="Camera2D" type="Camera2D" parent="."]

73
Scripts/AttackManager.gd Normal file
View File

@ -0,0 +1,73 @@
extends Node
var hook
var spear
var net
var bait
var dynamite
var gold
var time = 0
# Called when the node enters the scene tree for the first time.
func _ready():
hook = preload("res://Scenes/Hook.tscn")
spear = preload("res://Scenes/Spear.tscn")
net = preload("res://Scenes/Net.tscn")
bait = preload("res://Scenes/Bait.tscn")
dynamite = preload("res://Scenes/Dynamite.tscn")
gold = preload("res://Scenes/GoldenBait.tscn")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _physics_process(delta):
match time:
1*60: create(hook, 0, 5, 0)
3*60: create(hook, 0, 10, 1)
4*60: create(hook, 0, 20, 1)
4*60+30: create(hook, 400, 40, 0); create(hook, -400, 40, 0)
6*60: create(hook, 0, 20, 0); create(hook, 600, 60, 0); create(hook, -600, 60, 0)
7*60: create(hook,-900, 10, 0); create(hook,-700, 10, 0); create(hook,-400, 10, 0); create(hook,-100, 10, 0); create(hook,100, 10, 0); create(hook,400, 10, 0); create(hook,700, 10, 0); create(hook,900, 10, 0)
9*60: create(hook,-800, 20, 0); create(hook,-600, 20, 0); create(hook,-300, 20, 0); create(hook,0, 20, 0); create(hook,300, 20, 0); create(hook,600, 20, 0); create(hook,800, 20, 0)
15*60: create(spear,0, 50, 0)
17*60: create(spear, 0, 50 ,0)
18*60: create(spear,0, 50, 1)
19*60: create(spear,0, 50, 1)
19*60+30: create(spear,0, 50, 1)
19*60+30+15:create(spear,0, 50, 1)
20*60: create(spear,0, 50, 1)
20*60+15: create(spear,0, 50, 1)
20*60+30: create(spear,0, 50, 1)
21*60: create(hook,900, 60, 0); create(hook,700, 60, 0); create(hook,-900, 60, 0); create(hook,-700, 60, 0);
22*60: create(hook,0, 30, 1)
23*60: create(spear,0, 30, 1)
24*60: create(hook,0, 30, 1); create(hook, 400, 40, 0); create(hook, -400, 40, 0)
25*60: create(spear,-600, 40, 0); create(spear, 600, 40, 0); create(spear, 0, 30, 1)
27*60: create(spear,-800, 30, 0); create(hook,-600, 20, 0); create(spear,-300, 30, 0); create(hook,0, 20, 0); create(spear,300, 30, 0); create(hook,600, 20, 0); create(spear,800, 30, 0)
28*60+30+15: create(hook,-800, 20, 0); create(spear,-600, 30, 0); create(hook,-300, 20, 0); create(spear,0, 30, 0); create(hook,300, 20, 0); create(spear,600, 30, 0); create(hook,800, 20, 0)
32*60+30: create(bait,0, 5, 0)
35*60: create(net,-192, 60, 0)
36*60: create(net, 317, 60,0)
36*60+15: create(spear,0, 30, 0)
36*60+30: create(spear,200, 60, 0); create(spear,-200, 60, 0)
36*60+30+15: create(spear,300, 60, 0); create(spear,-300, 60, 0)
37*60: create(spear,400, 60, 0); create(spear,-400, 60, 0)
37*60+15: create(spear,500, 60, 0); create(spear,-500, 60, 0)
37*60+30: create(spear,600, 60, 0); create(spear,-600, 60, 0)
37*60+30+15: create(spear, 700, 60, 0); create(spear, -700, 60, 0)
38*60: create(spear, 800, 60, 0); create(spear, -800, 60, 0); create(dynamite, 0, 10, 0)
42*60:create(net,-192, 60, 0); create(spear, 900, 60, 0); create(spear, -900, 60, 0); create(bait,0, 10, 0)
44*60:create(net,317, 60, 0); create(hook, 0, 30, 0); create(hook, -100, 40, 0); create(hook, 100, 40, 0);
46*60: create(dynamite, -900, 30, 0); create(dynamite, 900, 30, 0)
48*60: create(dynamite,0, 30, 0); create(hook,800, 20, 0); create(hook,-800, 20, 0)
51*60: create(gold,0,5,0)
if Input.is_action_just_pressed("Debug"):
print("Guess what " + str(time) + " it is!")
time += 1
func create(scene, target, speed, ai):
var instance = scene.instantiate()
instance.target = target
instance.speed = speed
instance.ai = ai
add_child(instance)

44
Scripts/Bait.gd Normal file
View File

@ -0,0 +1,44 @@
extends Area2D
var fish = CharacterBody2D
@export
var target = 0
@export
var ai = 0
@export
var speed = 1
# Called when the node enters the scene tree for the first time.
func _ready():
fish = get_tree().get_first_node_in_group("Fish") #fish
match ai:
#set position
0:
position = Vector2(target, -1087)
#fish position
1:
position = Vector2(fish.position.x,-1087)
#predict position
2: pass
if position.x > 907:
position.x = 907
if position.x < -907:
position.x = -907
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _physics_process(delta):
goFish()
func goFish():
position.y = position.y + speed
if position.y > 1222:
queue_free()
func _on_body_entered(body):
if body.is_in_group("Fish"):
fish.lives += 1
queue_free()

48
Scripts/Death.gd Normal file
View File

@ -0,0 +1,48 @@
extends Sprite2D
var child
var selected = 0
var bigBoss = Node
# Called when the node enters the scene tree for the first time.
func _ready():
bigBoss = get_tree().get_first_node_in_group("BigBoss")
modulate.a = 0
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _physics_process(delta):
if get_tree().paused == true:
if modulate.a < 1:
modulate.a += .016
if get_tree().paused == false:
modulate.a = 0
child = get_child(selected)
child.modulate.b = 0
child.modulate.g = 130
if Input.is_action_just_pressed("Down") || Input.is_action_just_pressed("Right"):
child.modulate.b = 255
child.modulate.g = 255
if get_child(selected+1) != $StartOver && get_child(selected+1) != $Quit:
selected = 0
else:
selected += 1
if Input.is_action_just_pressed("Up") || Input.is_action_just_pressed("Left"):
child.modulate.b = 255
child.modulate.g = 255
if get_child(selected-1) != $StartOver && get_child(selected-1) != $Quit:
selected = 1
else:
selected -= 1
if Input.is_action_just_pressed("Accept"):
if get_child(selected) == $StartOver:
bigBoss.scene = 1
bigBoss.switch = true
get_tree().paused = false
get_tree().paused = false
print(get_tree().paused)
if get_child(selected) == $Quit:
get_tree().quit()

66
Scripts/Dynamite.gd Normal file
View File

@ -0,0 +1,66 @@
extends Area2D
var fish = CharacterBody2D
var sprite = Sprite2D
var explosion = CollisionObject2D
var size = 0.0
@export
var target = 0
@export
var ai = 0
@export
var speed = 1
# Called when the node enters the scene tree for the first time.
func _ready():
fish = get_tree().get_first_node_in_group("Fish") #fish
sprite = $Explosion
explosion = $ExplosionCollision
match ai:
#set position
0:
position = Vector2(target, -595)
#fish position
1:
position = Vector2(fish.position.x,-595)
#predict position
2: pass
if position.x > 858:
position.x = 858
if position.x < -858:
position.x = -858
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _physics_process(delta):
goFish()
func goFish():
position.y = position.y + speed
if position.y > 794:
position.y = 794
explode()
func explode():
if(size < 1):
explosion.scale = Vector2(size, size)
sprite.modulate.a= sprite.modulate.a - .02
sprite.scale = Vector2(size, size)
if size >1:
sprite.modulate.a= sprite.modulate.a - .1
size += .032
sprite.visible = true
if size < 1:
explosion.set_deferred("disabled", false)
else:
explosion.set_deferred("disabled", true)
if size > 2:
size = 2
queue_free()
func _on_body_entered(body):
if body.is_in_group("Fish"):
fish.hurt = true

37
Scripts/GoldenBait.gd Normal file
View File

@ -0,0 +1,37 @@
extends Area2D
var bigBoss = Node
@export
var target = 0
@export
var ai = 0
@export
var speed = 1
# Called when the node enters the scene tree for the first time.
func _ready():
bigBoss = get_tree().get_first_node_in_group("BigBoss")
match ai:
#set position
0:
position = Vector2(0, -1087)
#fish position
1:
position = Vector2(0,-1087)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _physics_process(delta):
goFish()
func goFish():
if position.y < 0:
position.y = position.y + speed
func _on_body_entered(body):
if body.is_in_group("Fish"):
bigBoss.switch = true
bigBoss.scene = 2
queue_free()

50
Scripts/Hook.gd Normal file
View File

@ -0,0 +1,50 @@
extends Area2D
var fish = CharacterBody2D
var cast = false
@export
var target = 0
@export
var ai = 0
@export
var speed = 1
# Called when the node enters the scene tree for the first time.
func _ready():
fish = get_tree().get_first_node_in_group("Fish") #fish
match ai:
#set position
0:
position = Vector2(target, -660)
#fish position
1:
position = Vector2(fish.position.x,-660)
#predict position
2: pass
if position.x > 907:
position.x = 907
if position.x < -907:
position.x = -907
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _physics_process(delta):
goFish()
func goFish():
if cast == false:
position.y = position.y + speed
else:
position.y = position.y - speed
if position.y > 1222:
cast = true
if position.y < -660:
queue_free()
func _on_body_entered(body):
if body.is_in_group("Fish"):
fish.hurt = true

29
Scripts/LifeManager.gd Normal file
View File

@ -0,0 +1,29 @@
extends Node2D
var fish = CharacterBody2D
var life
var lifePositon = 0
var lives = 1
# Called when the node enters the scene tree for the first time.
func _ready():
life = preload("res://Scenes/Life.tscn")
fish = get_tree().get_first_node_in_group("Fish") #fish
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
if fish == null:
fish = get_tree().get_first_node_in_group("Fish") #fish
lives = fish.lives
if get_child_count() < lives:
var instance = life.instantiate()
instance.position = Vector2(lifePositon, 0)
add_child(instance)
lifePositon += 108
if get_child_count() > lives && lives >= 0:
var child = get_child(lives)
child.queue_free()
lifePositon -= 108
if lives < 0:
get_tree().paused = true

42
Scripts/Net.gd Normal file
View File

@ -0,0 +1,42 @@
extends Area2D
var fish = CharacterBody2D
@export
var target = 0
@export
var ai = 0
@export
var speed = 1
# Called when the node enters the scene tree for the first time.
func _ready():
fish = get_tree().get_first_node_in_group("Fish") #fish
match ai:
#set position
0:
position = Vector2(-1857, target)
#fish position
1:
position = Vector2(-1857, fish.position.y)
#predict position
2: pass
if position.y > 317:
position.y = 317
if position.y < -192:
position.y = -192
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _physics_process(delta):
goFish()
func goFish():
position.x = position.x + speed
if position.x > 1494:
queue_free()
func _on_body_entered(body):
if body.is_in_group("Fish"):
fish.hurt = true

53
Scripts/Player.gd Normal file
View File

@ -0,0 +1,53 @@
extends CharacterBody2D
var speed = 750
var sprite = Sprite2D
var hurtTimer = 0
var hurt = false
var lives = 3
# Called when the node enters the scene tree for the first time.
func _ready():
sprite = $FishSprite
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _physics_process(delta):
movement()
animation()
damage()
func movement():
var direction = Input.get_vector("Left","Right","Up","Down")
velocity = direction * speed
move_and_slide()
func animation():
if Input.is_action_just_pressed("Left"):
sprite.flip_h = false
sprite.position = Vector2(11, 0)
if Input.is_action_just_pressed("Right"):
sprite.flip_h = true
sprite.position = Vector2(-49, 0)
func damage():
if hurtTimer > 0 && hurtTimer % 2 == 0:
sprite.visible = false
if hurtTimer > 0 && hurtTimer % 2 == 1:
sprite.visible = true
if hurt == true && hurtTimer == 0:
var direction = Input.get_vector("Left","Right","Up","Down")
velocity = -direction * speed * 10
move_and_slide()
lives -= 1
hurt = false
hurtTimer = 60
else: if hurt == true && hurtTimer != 0:
var direction = Input.get_vector("Left","Right","Up","Down")
velocity = -direction * speed * 10
move_and_slide()
hurt = false
if hurtTimer != 0:
hurtTimer -= 1

36
Scripts/SceneManager.gd Normal file
View File

@ -0,0 +1,36 @@
extends Node
var reset = false
var switch = false
var scene = 0
#0 is title, 1 is game
var title = Sprite2D
var game = Node2D
var win = Sprite2D
# Called when the node enters the scene tree for the first time.
func _ready():
title = preload("res://Scenes/Title.tscn")
game = preload("res://Scenes/Main.tscn")
win = preload("res://Scenes/Win.tscn")
var instance = title.instantiate()
add_child(instance)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
if switch == true:
get_child(0).queue_free()
match scene:
0:
var instance = title.instantiate()
add_child(instance)
1:
var instance = game.instantiate()
add_child(instance)
print("reload!")
reset = true
2:
var instance = win.instantiate()
add_child(instance)
switch = false

43
Scripts/Spear.gd Normal file
View File

@ -0,0 +1,43 @@
extends Area2D
var fish = CharacterBody2D
@export
var target = 0
@export
var ai = 0
@export
var speed = 1
# Called when the node enters the scene tree for the first time.
func _ready():
fish = get_tree().get_first_node_in_group("Fish") #fish
match ai:
#set position
0:
position = Vector2(target, -1087)
#fish position
1:
position = Vector2(fish.position.x,-1087)
#predict position
2: pass
if position.x > 907:
position.x = 907
if position.x < -907:
position.x = -907
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _physics_process(delta):
goFish()
func goFish():
position.y = position.y + speed
if position.y > 1222:
queue_free()
func _on_body_entered(body):
if body.is_in_group("Fish"):
fish.hurt = true

38
Scripts/Title.gd Normal file
View File

@ -0,0 +1,38 @@
extends Sprite2D
var child
var selected = 0
var bigBoss = Node
# Called when the node enters the scene tree for the first time.
func _ready():
bigBoss = get_tree().get_first_node_in_group("BigBoss")
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _physics_process(delta):
child = get_child(selected)
child.modulate.b = 0
child.modulate.g = 130
if Input.is_action_just_pressed("Down") || Input.is_action_just_pressed("Right") :
child.modulate.b = 255
child.modulate.g = 255
if get_child(selected+1) != $Start && get_child(selected+1) != $Quit:
selected = 0
else:
selected += 1
if Input.is_action_just_pressed("Up") || Input.is_action_just_pressed("Left"):
child.modulate.b = 255
child.modulate.g = 255
if get_child(selected-1) != $Start && get_child(selected-1) != $Quit:
selected = 1
else:
selected -= 1
if Input.is_action_just_pressed("Accept"):
if get_child(selected) == $Start:
bigBoss.scene = 1
bigBoss.switch = true
if get_child(selected) == $Quit:
get_tree().quit()

6
Scripts/Win.gd Normal file
View File

@ -0,0 +1,6 @@
extends Sprite2D
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
if Input.is_action_just_pressed("Accept"):
get_tree().quit()

BIN
Sprites/Background.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cgg37qvciepi7"
path="res://.godot/imported/Background.png-35d93eb57723ae0fb58ad0b59abe54b6.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Sprites/Background.png"
dest_files=["res://.godot/imported/Background.png-35d93eb57723ae0fb58ad0b59abe54b6.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
Sprites/Bait.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

34
Sprites/Bait.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://csmi3bgfpeh3l"
path="res://.godot/imported/Bait.png-eedd1311950e87cd143b604e52b397dd.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Sprites/Bait.png"
dest_files=["res://.godot/imported/Bait.png-eedd1311950e87cd143b604e52b397dd.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
Sprites/Death Screen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bmemuk5vda3oe"
path="res://.godot/imported/Death Screen.png-15d24d7001e2f81ffb13007e3e2cd0d4.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Sprites/Death Screen.png"
dest_files=["res://.godot/imported/Death Screen.png-15d24d7001e2f81ffb13007e3e2cd0d4.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
Sprites/Dynamite.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cpcrj33uo4sx8"
path="res://.godot/imported/Dynamite.png-256d57645eff2c877f2d38cd9d773aeb.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Sprites/Dynamite.png"
dest_files=["res://.godot/imported/Dynamite.png-256d57645eff2c877f2d38cd9d773aeb.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
Sprites/Explosion.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 446 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b0syrkop0p3fn"
path="res://.godot/imported/Explosion.png-4cec69c6d6c03527ba22cbc120bf0a6e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Sprites/Explosion.png"
dest_files=["res://.godot/imported/Explosion.png-4cec69c6d6c03527ba22cbc120bf0a6e.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
Sprites/Fish.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

34
Sprites/Fish.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bttcv86ilmg4q"
path="res://.godot/imported/Fish.png-e950489b2cf738ee02cddebf5ebce624.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Sprites/Fish.png"
dest_files=["res://.godot/imported/Fish.png-e950489b2cf738ee02cddebf5ebce624.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
Sprites/GoldenBait.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b0pqcncvub8ho"
path="res://.godot/imported/GoldenBait.png-fd78d39d28cdc14078a08978ce41b24d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Sprites/GoldenBait.png"
dest_files=["res://.godot/imported/GoldenBait.png-fd78d39d28cdc14078a08978ce41b24d.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
Sprites/Hook.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

34
Sprites/Hook.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c8omthvaa0tvf"
path="res://.godot/imported/Hook.png-78c9d60f08e45f88d5845ff0b6d7dc19.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Sprites/Hook.png"
dest_files=["res://.godot/imported/Hook.png-78c9d60f08e45f88d5845ff0b6d7dc19.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
Sprites/Life.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

34
Sprites/Life.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b7yoj8tyi4eqe"
path="res://.godot/imported/Life.png-bfca79e9f757732e8ba733a5807ca94a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Sprites/Life.png"
dest_files=["res://.godot/imported/Life.png-bfca79e9f757732e8ba733a5807ca94a.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
Sprites/Net.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

34
Sprites/Net.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://carqvc2760qg5"
path="res://.godot/imported/Net.png-091deda3632ef4b43c76dcec9590a355.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Sprites/Net.png"
dest_files=["res://.godot/imported/Net.png-091deda3632ef4b43c76dcec9590a355.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
Sprites/Ocean.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

34
Sprites/Ocean.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://1j1ta0o1o5r2"
path="res://.godot/imported/Ocean.png-239e6220c32fbee3c4748a44f7ba11ea.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Sprites/Ocean.png"
dest_files=["res://.godot/imported/Ocean.png-239e6220c32fbee3c4748a44f7ba11ea.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
Sprites/Quit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

34
Sprites/Quit.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cvmauamus016g"
path="res://.godot/imported/Quit.png-502cc89cfc03a3b3bdc92081de6321a1.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Sprites/Quit.png"
dest_files=["res://.godot/imported/Quit.png-502cc89cfc03a3b3bdc92081de6321a1.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
Sprites/Spear.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

34
Sprites/Spear.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://narrefbak446"
path="res://.godot/imported/Spear.png-41335d5329e0b776d4ee4462f652af40.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Sprites/Spear.png"
dest_files=["res://.godot/imported/Spear.png-41335d5329e0b776d4ee4462f652af40.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
Sprites/Start.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

34
Sprites/Start.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cwjnfy0eum3sl"
path="res://.godot/imported/Start.png-f06e5c2e003e6517baa8fbf2fc2c2b52.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Sprites/Start.png"
dest_files=["res://.godot/imported/Start.png-f06e5c2e003e6517baa8fbf2fc2c2b52.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
Sprites/StartOver.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cbxcll0dvejsp"
path="res://.godot/imported/StartOver.png-b03ce3e252dd7f835474e38ab7275121.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Sprites/StartOver.png"
dest_files=["res://.godot/imported/StartOver.png-b03ce3e252dd7f835474e38ab7275121.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
Sprites/Title.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 KiB

34
Sprites/Title.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cl83u6qtbydit"
path="res://.godot/imported/Title.png-7362e0bee3c99d95e13efe8bc4e072d5.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Sprites/Title.png"
dest_files=["res://.godot/imported/Title.png-7362e0bee3c99d95e13efe8bc4e072d5.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
Sprites/Win.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB

34
Sprites/Win.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cn2ivkgp5e7ox"
path="res://.godot/imported/Win.png-5367da45349391a61ac1ff640fb79f55.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Sprites/Win.png"
dest_files=["res://.godot/imported/Win.png-5367da45349391a61ac1ff640fb79f55.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

108
export_presets.cfg Normal file
View File

@ -0,0 +1,108 @@
[preset.0]
name="Linux/X11"
platform="Linux/X11"
runnable=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="../../../Downloads/Games/Linux/Hsif/Hsif.zip"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
[preset.0.options]
custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=1
binary_format/embed_pck=false
texture_format/bptc=true
texture_format/s3tc=true
texture_format/etc=false
texture_format/etc2=false
binary_format/architecture="x86_64"
ssh_remote_deploy/enabled=false
ssh_remote_deploy/host="user@host_ip"
ssh_remote_deploy/port="22"
ssh_remote_deploy/extra_args_ssh=""
ssh_remote_deploy/extra_args_scp=""
ssh_remote_deploy/run_script="#!/usr/bin/env bash
export DISPLAY=:0
unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\"
\"{temp_dir}/{exe_name}\" {cmd_args}"
ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash
kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\")
rm -rf \"{temp_dir}\""
dotnet/include_scripts_content=false
dotnet/include_debug_symbols=true
dotnet/embed_build_outputs=false
[preset.1]
name="Windows Desktop"
platform="Windows Desktop"
runnable=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="../../../Downloads/Games/Windows/Hsif/Hsif.zip"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
[preset.1.options]
custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=1
binary_format/embed_pck=false
texture_format/bptc=true
texture_format/s3tc=true
texture_format/etc=false
texture_format/etc2=false
binary_format/architecture="x86_64"
codesign/enable=false
codesign/timestamp=true
codesign/timestamp_server_url=""
codesign/digest_algorithm=1
codesign/description=""
codesign/custom_options=PackedStringArray()
application/modify_resources=true
application/icon="res://Sprites/Life.png"
application/console_wrapper_icon="res://Sprites/Life.png"
application/icon_interpolation=0
application/file_version=""
application/product_version=""
application/company_name=""
application/product_name=""
application/file_description=""
application/copyright=""
application/trademarks=""
application/export_angle=0
ssh_remote_deploy/enabled=false
ssh_remote_deploy/host="user@host_ip"
ssh_remote_deploy/port="22"
ssh_remote_deploy/extra_args_ssh=""
ssh_remote_deploy/extra_args_scp=""
ssh_remote_deploy/run_script="Expand-Archive -LiteralPath '{temp_dir}\\{archive_name}' -DestinationPath '{temp_dir}'
$action = New-ScheduledTaskAction -Execute '{temp_dir}\\{exe_name}' -Argument '{cmd_args}'
$trigger = New-ScheduledTaskTrigger -Once -At 00:00
$settings = New-ScheduledTaskSettingsSet
$task = New-ScheduledTask -Action $action -Trigger $trigger -Settings $settings
Register-ScheduledTask godot_remote_debug -InputObject $task -Force:$true
Start-ScheduledTask -TaskName godot_remote_debug
while (Get-ScheduledTask -TaskName godot_remote_debug | ? State -eq running) { Start-Sleep -Milliseconds 100 }
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue"
ssh_remote_deploy/cleanup_script="Stop-ScheduledTask -TaskName godot_remote_debug -ErrorAction:SilentlyContinue
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue
Remove-Item -Recurse -Force '{temp_dir}'"
dotnet/include_scripts_content=false
dotnet/include_debug_symbols=true
dotnet/embed_build_outputs=false

1
icon.svg Normal file
View File

@ -0,0 +1 @@
<svg height="128" width="128" xmlns="http://www.w3.org/2000/svg"><rect x="2" y="2" width="124" height="124" rx="14" fill="#363d52" stroke="#212532" stroke-width="4"/><g transform="scale(.101) translate(122 122)"><g fill="#fff"><path d="M105 673v33q407 354 814 0v-33z"/><path fill="#478cbf" d="m105 673 152 14q12 1 15 14l4 67 132 10 8-61q2-11 15-15h162q13 4 15 15l8 61 132-10 4-67q3-13 15-14l152-14V427q30-39 56-81-35-59-83-108-43 20-82 47-40-37-88-64 7-51 8-102-59-28-123-42-26 43-46 89-49-7-98 0-20-46-46-89-64 14-123 42 1 51 8 102-48 27-88 64-39-27-82-47-48 49-83 108 26 42 56 81zm0 33v39c0 276 813 276 813 0v-39l-134 12-5 69q-2 10-14 13l-162 11q-12 0-16-11l-10-65H447l-10 65q-4 11-16 11l-162-11q-12-3-14-13l-5-69z"/><path d="M483 600c3 34 55 34 58 0v-86c-3-34-55-34-58 0z"/><circle cx="725" cy="526" r="90"/><circle cx="299" cy="526" r="90"/></g><g fill="#414042"><circle cx="307" cy="532" r="60"/><circle cx="717" cy="532" r="60"/></g></g></svg>

After

Width:  |  Height:  |  Size: 950 B

37
icon.svg.import Normal file
View File

@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bmol4pbve6xjo"
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://icon.svg"
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
svg/scale=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false

69
project.godot Normal file
View File

@ -0,0 +1,69 @@
; Engine configuration file.
; It's best edited using the editor UI and not directly,
; since the parameters that go here are not all obvious.
;
; Format:
; [section] ; section goes between []
; param=value ; assign values to parameters
config_version=5
[application]
config/name="Hsif"
run/main_scene="res://Scenes/SceneManager.tscn"
config/features=PackedStringArray("4.2", "GL Compatibility")
boot_splash/bg_color=Color(0.141176, 0.141176, 0.141176, 1)
boot_splash/show_image=false
config/icon="res://Sprites/Life.png"
[display]
window/size/viewport_width=1920
window/size/viewport_height=1080
window/size/borderless=true
window/stretch/mode="viewport"
window/vsync/vsync_mode=0
[dotnet]
project/assembly_name="Hsif"
[input]
Up={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":119,"echo":false,"script":null)
]
}
Down={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":115,"echo":false,"script":null)
]
}
Left={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":97,"echo":false,"script":null)
]
}
Right={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":100,"echo":false,"script":null)
]
}
Accept={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194309,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}
Debug={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":32,"key_label":0,"unicode":32,"echo":false,"script":null)
]
}
[rendering]
textures/canvas_textures/default_texture_filter=0
renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility"