massive work towards godot 4

This commit is contained in:
2023-02-01 04:43:50 -05:00
parent 42259a89ed
commit 5dac6ced93
484 changed files with 5935 additions and 5084 deletions

43
scenes/dev/test_zone.tscn Normal file
View File

@ -0,0 +1,43 @@
[gd_scene load_steps=6 format=3 uid="uid://b7x8ttm1g41lc"]
[ext_resource type="PackedScene" uid="uid://de3exlu8jniam" path="res://nodes/player.tscn" id="1"]
[ext_resource type="TileSet" uid="uid://cluemfplimly4" path="res://assets/tiles.tres" id="2_l7xjr"]
[ext_resource type="PackedScene" path="res://nodes/exit.tscn" id="3"]
[ext_resource type="PackedScene" uid="uid://blr7x54kkvyf7" path="res://nodes/Enemies/basic_enemy.tscn" id="4"]
[sub_resource type="GDScript" id="1"]
script/source = "extends Node2D
# 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():
$Player/Camera2D.current = true
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
"
[node name="World3D" type="Node2D"]
script = SubResource("1")
[node name="Player" parent="." instance=ExtResource("1")]
[node name="tile_map" type="TileMap" parent="."]
unique_name_in_owner = true
texture_filter = 1
tile_set = ExtResource("2_l7xjr")
format = 2
layer_0/tile_data = PackedInt32Array(1048591, 0, 0, 1048592, 0, 0, 1048593, 0, 0, 1048594, 0, 0, 1048595, 0, 0, 1048596, 0, 0, 1048597, 0, 0, 1048598, 0, 0, 1114135, 0, 0, 1114136, 0, 0, 1114137, 0, 0, 1114138, 0, 0, 1114139, 0, 0, 1114140, 0, 0, 1114141, 0, 0, 1114142, 0, 0, 1114143, 0, 0, 1114144, 0, 0, 1048608, 0, 0, 1048609, 0, 0, 983072, 0, 0, 983071, 0, 0, 983070, 0, 0, 983069, 0, 0, 983068, 0, 0, 983067, 0, 0, 983066, 0, 0, 983065, 0, 0, 917529, 0, 0, 917528, 0, 0, 917527, 0, 0, 917526, 0, 0, 917525, 0, 0, 917524, 0, 0, 917523, 0, 0, 917522, 0, 0, 917521, 0, 0, 917520, 0, 0, 983056, 0, 0, 983055, 0, 0, 983057, 0, 0, 983058, 0, 0, 983059, 0, 0, 983060, 0, 0, 983061, 0, 0, 983062, 0, 0, 983063, 0, 0, 1048599, 0, 0, 1048600, 0, 0, 1048601, 0, 0, 1048602, 0, 0, 1048603, 0, 0, 1048604, 0, 0, 1048605, 0, 0, 1048606, 0, 0, 1048607, 0, 0, 983064, 0, 0, 1048573, 0, 0, 1114109, 0, 0, 1048574, 0, 0, 1114110, 0, 0, 1048575, 0, 0, 1114111, 0, 0, 983040, 0, 0, 1048576, 0, 0, 983041, 0, 0, 1048577, 0, 0, 983042, 0, 0, 1048578, 0, 0, 983043, 0, 0, 1048579, 0, 0, 983044, 0, 0, 1048580, 0, 0, 983045, 0, 0, 1048581, 0, 0, 983046, 0, 0, 1048582, 0, 0, 983047, 0, 0, 1048583, 0, 0, 983048, 0, 0, 1048584, 0, 0, 983049, 0, 0, 1048585, 0, 0, 983050, 0, 0, 1048586, 0, 0, 983051, 0, 0, 1048587, 0, 0, 983052, 0, 0, 1048588, 0, 0, 983053, 0, 0, 1048589, 0, 0, 983054, 0, 0, 1048590, 0, 0, 983037, 0, 0, 983038, 0, 0, 983039, 0, 0, 917504, 0, 0, 917505, 0, 0, 917506, 0, 0, 917507, 0, 0, 917508, 0, 0, 917509, 0, 0, 917510, 0, 0, 917511, 0, 0, 917512, 0, 0, 917513, 0, 0, 917514, 0, 0, 917515, 0, 0, 917516, 0, 0, 917517, 0, 0, 917518, 0, 0, 917519, 0, 0, 786441, 0, 0, 851977, 0, 0, 983073, 0, 0, 1114145, 0, 0, 983074, 0, 0, 1048610, 0, 0, 1114146, 0, 0, 983075, 0, 0, 1048611, 0, 0, 1114147, 0, 0, 720909, 1, 0, 786445, 1, 0, 851981, 1, 0)
[node name="Exit" parent="." instance=ExtResource("3")]
position = Vector2(519, 232)
[node name="CanvasModulate" type="CanvasModulate" parent="."]
color = Color(0.713726, 0.713726, 0.713726, 1)
[node name="Basic Enemy" parent="." instance=ExtResource("4")]
position = Vector2(388.203, 157.958)

89
scenes/game.tscn Normal file
View File

@ -0,0 +1,89 @@
[gd_scene load_steps=12 format=3 uid="uid://lvot4p62fxa8"]
[ext_resource type="Script" path="res://scripts/map_generation.gd" id="1_w8dyh"]
[ext_resource type="Theme" uid="uid://x4at2pluavto" path="res://general_theme.tres" id="2"]
[ext_resource type="PackedScene" uid="uid://de3exlu8jniam" path="res://nodes/player.tscn" id="2_earhp"]
[ext_resource type="PackedScene" path="res://nodes/light.tscn" id="3_bv6rn"]
[ext_resource type="Script" path="res://scripts/game.gd" id="4_3v8j0"]
[ext_resource type="PackedScene" path="res://nodes/pickup.tscn" id="4_kkigm"]
[ext_resource type="PackedScene" uid="uid://blr7x54kkvyf7" path="res://nodes/Enemies/basic_enemy.tscn" id="5_8nu0p"]
[ext_resource type="PackedScene" path="res://nodes/exit.tscn" id="6_rjol2"]
[ext_resource type="AudioStream" uid="uid://gnl0w5o4vuf5" path="res://assets/music/dos-88/checking_manifest.ogg" id="7_elffc"]
[ext_resource type="TileSet" uid="uid://cluemfplimly4" path="res://assets/tiles.tres" id="9_m551d"]
[sub_resource type="GDScript" id="1"]
script/source = "extends Node
var WAIT_TIME = 1
var timer: Timer
func _ready():
start_timer(WAIT_TIME)
func start_timer(seconds):
timer = Timer.new()
add_child(timer)
timer.connect(\"timeout\",Callable(self,\"get_the_timeout\"))
timer.start(seconds)
func get_the_timeout():
get_parent().defaultGenerator()
timer.queue_free()
func hideSelf():
queue_free()
"
[node name="World3D" type="Node2D"]
script = ExtResource("1_w8dyh")
player_scene = ExtResource("2_earhp")
light = ExtResource("3_bv6rn")
pickup = ExtResource("4_kkigm")
basic_enemy = ExtResource("5_8nu0p")
exit = ExtResource("6_rjol2")
music = ExtResource("7_elffc")
[node name="LoadingScreen" type="CanvasLayer" parent="."]
script = SubResource("1")
[node name="ColorRect" type="ColorRect" parent="LoadingScreen"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
color = Color(0, 0, 0, 1)
[node name="Label" type="Label" parent="LoadingScreen"]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -117.226
offset_top = -39.4122
offset_right = 176.774
offset_bottom = -23.4122
theme = ExtResource("2")
text = "Generating a new map..."
[node name="GenerationProgress" type="Label" parent="LoadingScreen"]
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 13.604
offset_top = -22.878
offset_right = 307.604
offset_bottom = -6.87799
theme = ExtResource("2")
[node name="tile_map" type="TileMap" parent="."]
unique_name_in_owner = true
tile_set = ExtResource("9_m551d")
format = 2
[node name="Camera2D" type="Camera2D" parent="."]
scale = Vector2(10, 10)
current = true
script = ExtResource("4_3v8j0")
[node name="CanvasModulate" type="CanvasModulate" parent="."]
color = Color(0.713726, 0.713726, 0.713726, 1)

49
scenes/intro.tscn Normal file
View File

@ -0,0 +1,49 @@
[gd_scene load_steps=3 format=3 uid="uid://bgdfqoiw4n45u"]
[ext_resource type="Script" path="res://scripts/manage_intro.gd" id="1_qo7l0"]
[ext_resource type="PackedScene" uid="uid://xkrdgb50o36j" path="res://scenes/title_screen.tscn" id="2_1k5vh"]
[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 0
anchor_right = 1.0
anchor_bottom = 1.0
color = Color(0, 0, 0, 1)
[node name="Label" type="Label" parent="."]
layout_mode = 0
offset_right = 1024.0
offset_bottom = 2030.0
size_flags_horizontal = 3
size_flags_vertical = 7
text = "gis init
Gathering resources...
Gathered: Humanskeleton.yaml
Gathered: Joints.yaml
Gathered: Ligaments.yaml
Gathered: Muscularsystem.yaml
Gathered: Tendons.yaml
Gathered: Digestivesystem.yaml
Gathered: Mouth.yaml
Gathered: Teeth.yaml
Gathered: Tongue.yaml
Gathered: Pharynx.yaml
Gathered Nervoussystem.yaml
Supressing: Frontallobe.yaml
Gathered: Esophagus.yaml
Gathered: Stomach.yaml
Gathered: Smallintestine.yaml
Gathered: Liver.yaml
Gathered: Gallbladder.yaml
Gathered: Pancreas.yaml
Intializing..."
script = ExtResource("1_qo7l0")
title_screen = ExtResource("2_1k5vh")

197
scenes/title_screen.tscn Normal file
View File

@ -0,0 +1,197 @@
[gd_scene load_steps=14 format=3 uid="uid://xkrdgb50o36j"]
[ext_resource type="Theme" uid="uid://x4at2pluavto" path="res://general_theme.tres" id="1"]
[ext_resource type="Script" path="res://scripts/title_screen.gd" id="2_o32of"]
[ext_resource type="AudioStream" uid="uid://dyywryu8rhlhx" path="res://assets/music/dos-88/race_to_mars.ogg" id="3_otmaj"]
[ext_resource type="PackedScene" uid="uid://lvot4p62fxa8" path="res://scenes/game.tscn" id="4_3155t"]
[ext_resource type="Texture2D" uid="uid://d08p0mamsxnvh" path="res://assets/art/general_bkg.png" id="5_y6rms"]
[ext_resource type="Texture2D" uid="uid://b5q202ja5gj34" path="res://assets/art/Grid/agrid1.png" id="6_xwd2a"]
[ext_resource type="Texture2D" uid="uid://duebi3omvs87x" path="res://assets/art/Grid/agrid2.png" id="7_qnlu0"]
[ext_resource type="Texture2D" uid="uid://dkudsaa5hejwp" path="res://assets/art/Grid/agrid3.png" id="8_whr7k"]
[ext_resource type="Texture2D" uid="uid://d1tcq3mhsacsy" path="res://assets/art/Grid/agrid4.png" id="9_oss5l"]
[ext_resource type="Texture2D" uid="uid://bgx16te786fit" path="res://assets/art/Grid/agrid5.png" id="10_32ivq"]
[ext_resource type="Texture2D" uid="uid://dxkqp2gnkbodl" path="res://assets/art/logo.png" id="11_vtvqe"]
[sub_resource type="AnimatedTexture" id="1"]
frames = 5
frame_0/texture = ExtResource("6_xwd2a")
frame_1/texture = ExtResource("7_qnlu0")
frame_1/duration = 1.0
frame_2/texture = ExtResource("8_whr7k")
frame_2/duration = 1.0
frame_3/texture = ExtResource("9_oss5l")
frame_3/duration = 1.0
frame_4/texture = ExtResource("10_32ivq")
frame_4/duration = 1.0
[sub_resource type="GDScript" id="2"]
script/source = "extends Control
func _ready():
$BackButton.connect(\"button_down\",Callable(self,\"on_button_down\"))
func on_button_down():
hide()"
[node name="Title" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1")
script = ExtResource("2_o32of")
music = ExtResource("3_otmaj")
new_game_scene = ExtResource("4_3155t")
[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 0
anchor_right = 1.0
anchor_bottom = 1.0
color = Color(0, 0, 0, 1)
[node name="Staticbkg" type="TextureRect" parent="."]
modulate = Color(0.509804, 0.509804, 0.509804, 1)
texture_filter = 1
layout_mode = 0
anchor_right = 1.0
anchor_bottom = 1.0
texture = ExtResource("5_y6rms")
expand_mode = 1
[node name="Animatedbkg" type="TextureRect" parent="."]
modulate = Color(0.423529, 0.423529, 0.423529, 1)
texture_filter = 1
layout_mode = 0
anchor_right = 1.0
anchor_bottom = 1.0
texture = SubResource("1")
expand_mode = 1
stretch_mode = 5
[node name="ColorRect2" type="ColorRect" parent="."]
layout_mode = 0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_top = -31.0
offset_bottom = 107.0
color = Color(0, 0, 0, 1)
[node name="New Game" type="Button" parent="."]
layout_mode = 0
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -59.6334
offset_top = -28.0
offset_right = 58.3666
offset_bottom = 7.0
text = "[Start Game]"
[node name="Credits" type="Button" parent="."]
layout_mode = 0
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -59.6334
offset_top = 20.0
offset_right = 58.3666
offset_bottom = 55.0
text = "[Credits]"
[node name="Quit" type="Button" parent="."]
layout_mode = 0
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -59.6334
offset_top = 68.0
offset_right = 58.3666
offset_bottom = 103.0
text = "[Quit]"
[node name="Label" type="Label" parent="."]
layout_mode = 0
anchor_top = 1.0
anchor_bottom = 1.0
offset_top = -16.0
offset_right = 80.0
text = "develop"
[node name="TextureRect" type="TextureRect" parent="."]
texture_filter = 1
layout_mode = 0
anchor_left = 0.5
anchor_right = 0.5
offset_left = -216.5
offset_top = 16.0
offset_right = 216.5
offset_bottom = 227.0
texture = ExtResource("11_vtvqe")
expand_mode = 1
[node name="CreditsMenu" type="Control" parent="."]
visible = false
anchors_preset = 0
anchor_right = 1.0
anchor_bottom = 1.0
script = SubResource("2")
[node name="ColorRect" type="ColorRect" parent="CreditsMenu"]
layout_mode = 0
anchor_right = 1.0
anchor_bottom = 1.0
color = Color(0, 0, 0, 1)
[node name="TextureRect2" type="TextureRect" parent="CreditsMenu"]
texture_filter = 1
layout_mode = 0
anchor_left = 0.5
anchor_right = 0.5
offset_left = -216.5
offset_top = 16.0
offset_right = 216.5
offset_bottom = 227.0
texture = ExtResource("11_vtvqe")
expand_mode = 1
[node name="BackButton" type="Button" parent="CreditsMenu"]
layout_mode = 0
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -144.0
offset_top = -56.0
offset_right = -26.0
offset_bottom = -21.0
text = "[Back]"
[node name="Label" type="Label" parent="CreditsMenu"]
layout_mode = 0
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -254.0
offset_top = -36.5
offset_right = 254.0
offset_bottom = 36.5
text = "Designed and Programmed by Layla Manley
Music Provided by DOS-88
Sound Provdided by danereid1024"
[node name="Fader" type="ColorRect" parent="."]
modulate = Color(1, 1, 1, 0)
layout_mode = 0
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
color = Color(0, 0, 0, 1)