Added a game manager and better gameplay loop

This commit is contained in:
winniewk 2024-08-19 21:09:36 -04:00
parent b3b955e0c4
commit 334167167f
119 changed files with 523 additions and 146 deletions

View File

@ -172,4 +172,4 @@ Anim={
"zfar": 4000.01, "zfar": 4000.01,
"znear": 0.05 "znear": 0.05
} }
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17848/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9465/@VSplitContainer@9284/@HSplitContainer@9286/@HSplitContainer@9288/@Control@9289/@SubViewportContainer@9290/@SubViewport@9291/RigidBody2D")]) selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17140/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9462/@VSplitContainer@9281/@HSplitContainer@9283/@HSplitContainer@9285/@Control@9286/@SubViewportContainer@9287/@SubViewport@9288/Game/CharacterBody2D")])

View File

@ -172,4 +172,4 @@ Anim={
"zfar": 4000.01, "zfar": 4000.01,
"znear": 0.05 "znear": 0.05
} }
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17848/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9465/@VSplitContainer@9284/@HSplitContainer@9286/@HSplitContainer@9288/@Control@9289/@SubViewportContainer@9290/@SubViewport@9291/RigidBody2D")]) selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17140/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9462/@VSplitContainer@9281/@HSplitContainer@9283/@HSplitContainer@9285/@Control@9286/@SubViewportContainer@9287/@SubViewport@9288/Game/CharacterBody2D")])

View File

@ -0,0 +1,3 @@
[folding]
sections_unfolded=PackedStringArray()

View File

@ -0,0 +1,3 @@
[folding]
sections_unfolded=PackedStringArray()

View File

@ -172,4 +172,4 @@ Anim={
"zfar": 4000.01, "zfar": 4000.01,
"znear": 0.05 "znear": 0.05
} }
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17848/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9465/@VSplitContainer@9284/@HSplitContainer@9286/@HSplitContainer@9288/@Control@9289/@SubViewportContainer@9290/@SubViewport@9291/RigidBody2D")]) selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17140/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9462/@VSplitContainer@9281/@HSplitContainer@9283/@HSplitContainer@9285/@Control@9286/@SubViewportContainer@9287/@SubViewport@9288/Game/CharacterBody2D")])

View File

@ -172,4 +172,4 @@ Anim={
"zfar": 4000.01, "zfar": 4000.01,
"znear": 0.05 "znear": 0.05
} }
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17848/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9465/@VSplitContainer@9284/@HSplitContainer@9286/@HSplitContainer@9288/@Control@9289/@SubViewportContainer@9290/@SubViewport@9291/RigidBody2D")]) selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17140/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9462/@VSplitContainer@9281/@HSplitContainer@9283/@HSplitContainer@9285/@Control@9286/@SubViewportContainer@9287/@SubViewport@9288/Game/CharacterBody2D")])

View File

@ -1,15 +1,14 @@
CanvasLayer
Label
HBoxContainer
VBoxContainer
Node
Timer Timer
RayCast2D RayCast2D
CollisionShape2D CollisionShape2D
AnimatedSprite2D AnimatedSprite2D
Area2D Area2D
Label
CanvasLayer
Node
Sprite2D Sprite2D
ParallaxLayer ParallaxLayer
ParallaxBackground ParallaxBackground
Node2D Node2D
AnimationPlayer
AnimatableBody2D
Camera2D

View File

@ -0,0 +1 @@
Character

View File

@ -4,7 +4,7 @@ dock_1_selected_tab_idx=0
dock_2_selected_tab_idx=0 dock_2_selected_tab_idx=0
dock_3_selected_tab_idx=0 dock_3_selected_tab_idx=0
dock_4_selected_tab_idx=0 dock_4_selected_tab_idx=0
dock_5_selected_tab_idx=0 dock_5_selected_tab_idx=1
dock_6_selected_tab_idx=0 dock_6_selected_tab_idx=0
dock_7_selected_tab_idx=0 dock_7_selected_tab_idx=0
dock_8_selected_tab_idx=0 dock_8_selected_tab_idx=0
@ -12,34 +12,34 @@ dock_floating={}
dock_split_2=0 dock_split_2=0
dock_split_3=0 dock_split_3=0
dock_hsplit_1=0 dock_hsplit_1=0
dock_hsplit_2=484 dock_hsplit_2=321
dock_hsplit_3=-270 dock_hsplit_3=-270
dock_hsplit_4=0 dock_hsplit_4=0
dock_filesystem_split=0 dock_filesystem_split=0
dock_filesystem_display_mode=0 dock_filesystem_display_mode=0
dock_filesystem_file_sort=0 dock_filesystem_file_sort=0
dock_filesystem_file_list_display_mode=1 dock_filesystem_file_list_display_mode=1
dock_filesystem_selected_paths=PackedStringArray("res://scripts/bullet.gd") dock_filesystem_selected_paths=PackedStringArray("res://scenes/game.tscn")
dock_filesystem_uncollapsed_paths=PackedStringArray("Favorites", "res://", "res://scripts/", "res://scenes/") dock_filesystem_uncollapsed_paths=PackedStringArray("Favorites", "res://", "res://scripts/", "res://scripts/resources/", "res://scenes/")
dock_3="Scene,Import" dock_3="Scene,Import"
dock_4="FileSystem" dock_4="FileSystem"
dock_5="Inspector,Node,History" dock_5="Inspector,Node,History"
[EditorNode] [EditorNode]
open_scenes=PackedStringArray("res://scenes/character.tscn", "res://scenes/bullet.tscn", "res://scenes/crate.tscn", "res://scenes/platform.tscn", "res://scenes/coin.tscn", "res://scenes/hud.tscn", "res://scenes/slimeEnemy.tscn", "res://scenes/game.tscn") open_scenes=PackedStringArray("res://scenes/character.tscn", "res://scenes/bullet.tscn", "res://scenes/crate.tscn", "res://scenes/platform.tscn", "res://scenes/coin.tscn", "res://scenes/hud.tscn", "res://scenes/slimeEnemy.tscn", "res://scenes/game.tscn", "res://scenes/ui.tscn")
current_scene="res://scenes/crate.tscn" current_scene="res://scenes/game.tscn"
center_split_offset=-272 center_split_offset=-272
selected_default_debugger_tab_idx=1 selected_default_debugger_tab_idx=0
selected_main_editor_idx=2 selected_main_editor_idx=2
selected_bottom_panel_item=1 selected_bottom_panel_item=0
[ScriptEditor] [ScriptEditor]
open_scripts=["res://scripts/bullet.gd", "res://scripts/characterBody.gd", "res://scripts/coin.gd", "res://scripts/enemy.gd", "res://scripts/gamecontroller.gd", "res://scripts/trigger.gd"] open_scripts=["res://scripts/bullet.gd", "res://scripts/characterBody.gd", "res://scripts/resources/characterStats.gd", "res://scripts/coin.gd", "res://scripts/enemy.gd", "res://scripts/gamecontroller.gd", "res://scripts/gameManager.gd", "res://scripts/ui.gd"]
selected_script="res://scripts/bullet.gd" selected_script="res://scripts/gamecontroller.gd"
open_help=["CharacterBody2D"] open_help=[]
script_split_offset=70 script_split_offset=162
list_split_offset=0 list_split_offset=0
[ShaderEditor] [ShaderEditor]

View File

View File

@ -1,41 +1,42 @@
ea4bc82a6ad023ab7ee23ee620429895 ea4bc82a6ad023ab7ee23ee620429895
::res://::1723682052 ::res://::1724106264
icon.svg::CompressedTexture2D::9114977118871582245::1723383776::1723383776::1::::<><>:: icon.svg::CompressedTexture2D::9114977118871582245::1724105533::1724105533::1::::<><>::
::res://graphics/::1723682052 ::res://graphics/::1724105533
Terrain (32x32).png::CompressedTexture2D::8707534964839485024::1723383776::1723383776::1::::<><>:: Terrain (32x32).png::CompressedTexture2D::8707534964839485024::1724105533::1724105533::1::::<><>::
::res://graphics/background/::1723679592 ::res://graphics/background/::1724105533
Additional Sky.png::CompressedTexture2D::1244579229272977068::1723679592::1723679592::1::::<><>:: Additional Sky.png::CompressedTexture2D::1244579229272977068::1724105533::1724105533::1::::<><>::
Additional Water.png::CompressedTexture2D::5600863291548044975::1723679592::1723679592::1::::<><>:: Additional Water.png::CompressedTexture2D::5600863291548044975::1724105533::1724105533::1::::<><>::
BG Image.png::CompressedTexture2D::8171004012114145580::1723679592::1723679592::1::::<><>:: BG Image.png::CompressedTexture2D::8171004012114145580::1724105533::1724105533::1::::<><>::
::res://graphics/enemies/::1723679592 ::res://graphics/enemies/::1724105533
slime_purple.png::CompressedTexture2D::8000128190937998756::1723679592::1723679592::1::::<><>:: slime_purple.png::CompressedTexture2D::8000128190937998756::1724105533::1724105533::1::::<><>::
::res://graphics/items/::1723383776 ::res://graphics/items/::1724105533
cannister.png::CompressedTexture2D::7418095402531000042::1723383776::1723383776::1::::<><>:: cannister.png::CompressedTexture2D::7418095402531000042::1724105533::1724105533::1::::<><>::
::res://graphics/pickups/::1723679592 ::res://graphics/pickups/::1724105533
coin.png::CompressedTexture2D::4421146948747862835::1723679592::1723679592::1::::<><>:: coin.png::CompressedTexture2D::4421146948747862835::1724105533::1724105533::1::::<><>::
::res://graphics/playerDeath/::1723679592 ::res://graphics/playerDeath/::1724105533
Player Death 64x64.png::CompressedTexture2D::2301479042922018053::1723679592::1723679592::1::::<><>:: Player Death 64x64.png::CompressedTexture2D::2301479042922018053::1724105533::1724105533::1::::<><>::
::res://graphics/playerIdle/::1723682026 ::res://graphics/playerIdle/::1724105533
Player Idle 48x48.png::CompressedTexture2D::6544563428604246579::1723383776::1723682026::1::::<><>:: Player Idle 48x48.png::CompressedTexture2D::6544563428604246579::1724105533::1724105533::1::::<><>::
::res://graphics/playerJump/::1723682031 ::res://graphics/playerJump/::1724105533
player jump 48x48.png::CompressedTexture2D::1627608568707791839::1723383776::1723682031::1::::<><>:: player jump 48x48.png::CompressedTexture2D::1627608568707791839::1724105533::1724105533::1::::<><>::
::res://graphics/playerLand/::1723682046 ::res://graphics/playerLand/::1724105533
player land 48x48.png::CompressedTexture2D::3499637713582873633::1723383776::1723682046::1::::<><>:: player land 48x48.png::CompressedTexture2D::3499637713582873633::1724105533::1724105533::1::::<><>::
::res://graphics/playerRun/::1723682052 ::res://graphics/playerRun/::1724105533
player run 48x48.png::CompressedTexture2D::1502492849971408816::1723383776::1723682052::1::::<><>:: player run 48x48.png::CompressedTexture2D::1502492849971408816::1724105533::1724105533::1::::<><>::
::res://scenes/::1723682242 ::res://scenes/::1724108423
bullet.tscn::PackedScene::6880909734590904373::1723682242::0::1::::<><>::res://scripts/bullet.gd<>uid://ddxm7hj323fta::::res://graphics/items/cannister.png bullet.tscn::PackedScene::6880909734590904373::1724108422::0::1::::<><>::res://scripts/bullet.gd<>uid://ddxm7hj323fta::::res://graphics/items/cannister.png
character.tscn::PackedScene::451838158579532324::1723682242::0::1::::<><>::res://scripts/characterBody.gd<>uid://714a2jbwrdbp::::res://graphics/playerDeath/Player Death 64x64.png<>uid://c0iiaebonyhh0::::res://graphics/playerIdle/Player Idle 48x48.png<>uid://xgoqfqmvorcx::::res://graphics/playerJump/player jump 48x48.png<>uid://vn23qn3f0dvc::::res://graphics/playerRun/player run 48x48.png character.tscn::PackedScene::451838158579532324::1724108469::0::1::::<><>::res://scripts/characterBody.gd<>uid://714a2jbwrdbp::::res://graphics/playerDeath/Player Death 64x64.png<>uid://c0iiaebonyhh0::::res://graphics/playerIdle/Player Idle 48x48.png<>uid://xgoqfqmvorcx::::res://graphics/playerJump/player jump 48x48.png<>uid://vn23qn3f0dvc::::res://graphics/playerRun/player run 48x48.png
coin.tscn::PackedScene::2149639666289516704::1723682242::0::1::::<><>::uid://b38vv525jl8cd::::res://graphics/pickups/coin.png<>res://scripts/coin.gd coin.tscn::PackedScene::2149639666289516704::1724108608::0::1::::<><>::uid://b38vv525jl8cd::::res://graphics/pickups/coin.png<>res://scripts/coin.gd
crate.tscn::PackedScene::41931541512830250::1723682242::0::1::::<><>::uid://ddxm7hj323fta::::res://graphics/items/cannister.png crate.tscn::PackedScene::41931541512830250::1724108422::0::1::::<><>::uid://ddxm7hj323fta::::res://graphics/items/cannister.png
game.tscn::PackedScene::1738196330916037717::1723684315::0::1::::<><>::res://scripts/gamecontroller.gd<>uid://go4yc8hfo1gq::::res://scenes/character.tscn<>uid://dwb83f7uoweuy::::res://graphics/Terrain (32x32).png<>res://scripts/Trigger.gd<>uid://doodiicuxeb53::::res://graphics/background/BG Image.png<>uid://ry5bkalocmx5::::res://graphics/background/Additional Sky.png<>uid://cl2dnusewe0ch::::res://graphics/background/Additional Water.png<>uid://ukuu7p7vhlq::::res://scenes/crate.tscn<>uid://5vkisovypn7u::::res://scenes/coin.tscn<>uid://b07px1qf5obql::::res://scenes/slimeEnemy.tscn game.tscn::PackedScene::1738196330916037717::1724108423::0::1::::<><>::res://scripts/gamecontroller.gd<>uid://go4yc8hfo1gq::::res://scenes/character.tscn<>uid://dwb83f7uoweuy::::res://graphics/Terrain (32x32).png<>res://scripts/Trigger.gd<>uid://doodiicuxeb53::::res://graphics/background/BG Image.png<>uid://ry5bkalocmx5::::res://graphics/background/Additional Sky.png<>uid://cl2dnusewe0ch::::res://graphics/background/Additional Water.png<>uid://ukuu7p7vhlq::::res://scenes/crate.tscn<>uid://5vkisovypn7u::::res://scenes/coin.tscn<>uid://b07px1qf5obql::::res://scenes/slimeEnemy.tscn
hud.tscn::PackedScene::2846083967266652522::1723682242::0::1::::<><>:: hud.tscn::PackedScene::2846083967266652522::1724108423::0::1::::<><>::
platform.tscn::PackedScene::6925631844010706180::1723682242::0::1::::<><>:: platform.tscn::PackedScene::6925631844010706180::1724108422::0::1::::<><>::
slimeEnemy.tscn::PackedScene::4208155081516926623::1723682242::0::1::::<><>::uid://dl8k7bq5pkuvk::::res://graphics/enemies/slime_purple.png<>res://scripts/enemy.gd slimeEnemy.tscn::PackedScene::4208155081516926623::1724108423::0::1::::<><>::uid://dl8k7bq5pkuvk::::res://graphics/enemies/slime_purple.png<>res://scripts/enemy.gd
::res://scripts/::1723682076 ::res://scripts/::1724108406
bullet.gd::GDScript::-1::1723383776::0::1::::<>Area2D<>:: bullet.gd::GDScript::-1::1724105533::0::1::::<>Area2D<>::
characterBody.gd::GDScript::-1::1723679592::0::1::::<>CharacterBody2D<>:: characterBody.gd::GDScript::-1::1724108469::0::1::::<>CharacterBody2D<>::
coin.gd::GDScript::-1::1723679592::0::1::::<>Area2D<>:: coin.gd::GDScript::-1::1724107615::0::1::::Coin<>Area2D<>::
enemy.gd::GDScript::-1::1723682076::0::1::::<>Area2D<>:: enemy.gd::GDScript::-1::1724105533::0::1::::<>Area2D<>::
gamecontroller.gd::GDScript::-1::1723679592::0::1::::<>Node<>:: gamecontroller.gd::GDScript::-1::1724108608::0::1::::<>Node<>::
Trigger.gd::GDScript::-1::1723684315::0::1::::<>Area2D<>:: gameManager.gd::GDScript::-1::1724108406::0::1::::<>Node<>::
Trigger.gd::GDScript::-1::1724106138::0::1::::<>Area2D<>::

View File

@ -1,12 +1,18 @@
res://scenes/character.tscn
res://scenes/slimeEnemy.tscn
res://scripts/enemy.gd
res://scenes/game.tscn res://scenes/game.tscn
res://scenes/character.tscn
res://scripts/Trigger.gd
res://scenes/bullet.tscn res://scenes/bullet.tscn
res://scenes/crate.tscn res://scenes/crate.tscn
res://scenes/platform.tscn res://scenes/platform.tscn
res://scenes/coin.tscn res://scenes/coin.tscn
res://scenes/hud.tscn res://scenes/hud.tscn
res://scripts/Trigger.gd res://scenes/slimeEnemy.tscn
res://scripts/trigger.gd res://scripts/gameManager.gd
res://scripts/bullet.gd res://scripts/coin.gd
res://scripts/gamecontroller.gd
res://scripts/characterBody.gd
res://scripts/resources/characterStats.gd
res://scripts/resources/slimeStats.tres
res://scripts/enemy.gd
res://scenes/ui.tscn
res://scripts/ui.gd

View File

@ -1,14 +1,14 @@
[editor_states] [editor_states]
Anim={ Anim={
"visible": true "visible": false
} }
2D={ 2D={
"grid_offset": Vector2(0, 0), "grid_offset": Vector2(0, 0),
"grid_snap_active": false, "grid_snap_active": false,
"grid_step": Vector2(8, 8), "grid_step": Vector2(8, 8),
"grid_visibility": 1, "grid_visibility": 1,
"ofs": Vector2(-228.526, -228.286), "ofs": Vector2(-190.468, -147.293),
"primary_grid_step": Vector2i(8, 8), "primary_grid_step": Vector2i(8, 8),
"show_edit_locks": true, "show_edit_locks": true,
"show_guides": true, "show_guides": true,
@ -32,7 +32,7 @@ Anim={
"snap_rotation_step": 0.261799, "snap_rotation_step": 0.261799,
"snap_scale": false, "snap_scale": false,
"snap_scale_step": 0.1, "snap_scale_step": 0.1,
"zoom": 0.943874 "zoom": 1.5874
} }
3D={ 3D={
"fov": 70.01, "fov": 70.01,
@ -172,4 +172,4 @@ Anim={
"zfar": 4000.01, "zfar": 4000.01,
"znear": 0.05 "znear": 0.05
} }
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17848/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9465/@VSplitContainer@9284/@HSplitContainer@9286/@HSplitContainer@9288/@Control@9289/@SubViewportContainer@9290/@SubViewport@9291/RigidBody2D")]) selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17140/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9462/@VSplitContainer@9281/@HSplitContainer@9283/@HSplitContainer@9285/@Control@9286/@SubViewportContainer@9287/@SubViewport@9288/Game/CharacterBody2D")])

View File

@ -1,5 +1,5 @@
[folding] [folding]
node_unfolds=[NodePath("."), PackedStringArray("Transform"), NodePath("TileMap"), PackedStringArray("tile_set", "Transform"), NodePath("ParallaxBackground/ParallaxLayer"), PackedStringArray("Motion"), NodePath("ParallaxBackground/ParallaxLayer/Sprite2D"), PackedStringArray("Transform"), NodePath("ParallaxBackground/ParallaxLayer/Sprite2D2"), PackedStringArray("Transform"), NodePath("ParallaxBackground/ParallaxLayer/Sprite2D3"), PackedStringArray("Transform"), NodePath("level"), PackedStringArray("Transform"), NodePath("level/StaticBody2D"), PackedStringArray("Transform"), NodePath("AreaTrigger"), PackedStringArray("Transform"), NodePath("Coins/Area2D"), PackedStringArray("Transform"), NodePath("SlimeEnemy"), PackedStringArray("Transform")] node_unfolds=[NodePath("."), PackedStringArray("Transform"), NodePath("TileMap"), PackedStringArray("tile_set", "Transform"), NodePath("ParallaxBackground/ParallaxLayer"), PackedStringArray("Motion"), NodePath("ParallaxBackground/ParallaxLayer/Sprite2D"), PackedStringArray("Transform"), NodePath("ParallaxBackground/ParallaxLayer/Sprite2D2"), PackedStringArray("Transform"), NodePath("ParallaxBackground/ParallaxLayer/Sprite2D3"), PackedStringArray("Transform"), NodePath("level"), PackedStringArray("Transform"), NodePath("level/StaticBody2D"), PackedStringArray("Transform"), NodePath("AreaTrigger"), PackedStringArray("Transform"), NodePath("Coins/Area2D"), PackedStringArray("Transform"), NodePath("Enemies/SlimeEnemy"), PackedStringArray("Transform")]
resource_unfolds=["res://scenes/game.tscn::TileSet_47g5u", PackedStringArray("terrain_set_0/terrain__array", "physics_layer__array", "custom_data_layer__array"), "res://scenes/game.tscn::WorldBoundaryShape2D_3u4a8", PackedStringArray("Resource"), "res://scenes/game.tscn::CircleShape2D_x8qck", PackedStringArray("Resource")] resource_unfolds=["res://scenes/game.tscn::TileSet_47g5u", PackedStringArray("terrain_set_0/terrain__array", "physics_layer__array", "custom_data_layer__array"), "res://scenes/game.tscn::WorldBoundaryShape2D_3u4a8", PackedStringArray("Resource"), "res://scenes/game.tscn::CircleShape2D_x8qck", PackedStringArray("Resource")]
nodes_folded=[NodePath("GameController"), NodePath("ParallaxBackground"), NodePath("level"), NodePath("CharacterBody2D"), NodePath("AreaTrigger"), NodePath("crates"), NodePath("Coins")] nodes_folded=[NodePath("GameController"), NodePath("ParallaxBackground"), NodePath("level"), NodePath("CharacterBody2D"), NodePath("AreaTrigger"), NodePath("crates"), NodePath("Coins"), NodePath("Enemies")]

View File

@ -0,0 +1,3 @@
[folding]
sections_unfolded=PackedStringArray()

View File

@ -172,4 +172,4 @@ Anim={
"zfar": 4000.01, "zfar": 4000.01,
"znear": 0.05 "znear": 0.05
} }
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17848/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9465/@VSplitContainer@9284/@HSplitContainer@9286/@HSplitContainer@9288/@Control@9289/@SubViewportContainer@9290/@SubViewport@9291/RigidBody2D")]) selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17140/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9462/@VSplitContainer@9281/@HSplitContainer@9283/@HSplitContainer@9285/@Control@9286/@SubViewportContainer@9287/@SubViewport@9288/Game/CharacterBody2D")])

View File

@ -172,4 +172,4 @@ Anim={
"zfar": 4000.01, "zfar": 4000.01,
"znear": 0.05 "znear": 0.05
} }
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17848/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9465/@VSplitContainer@9284/@HSplitContainer@9286/@HSplitContainer@9288/@Control@9289/@SubViewportContainer@9290/@SubViewport@9291/RigidBody2D")]) selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17140/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9462/@VSplitContainer@9281/@HSplitContainer@9283/@HSplitContainer@9285/@Control@9286/@SubViewportContainer@9287/@SubViewport@9288/Game/CharacterBody2D")])

View File

@ -0,0 +1,3 @@
[folding]
sections_unfolded=PackedStringArray()

View File

@ -1,6 +1,6 @@
[editor_metadata] [editor_metadata]
executable_path="/Applications/Godot.app/Contents/MacOS/Godot" executable_path="/home/timbosga/Documents/software/godot/Godot_v4.2.1-stable_linux.x86_64"
use_advanced_connections=false use_advanced_connections=false
tile_source_sort=0 tile_source_sort=0
tile_snap_option=0 tile_snap_option=0
@ -10,12 +10,12 @@ tile_snap_subdiv=4.0
run_live_debug=true run_live_debug=true
run_reload_scripts=true run_reload_scripts=true
run_debug_collisions=true run_debug_collisions=false
[recent_files] [recent_files]
scenes=["res://scenes/game.tscn", "res://scenes/character.tscn", "res://scenes/slimeEnemy.tscn", "res://scenes/hud.tscn", "res://scenes/coin.tscn", "res://scenes/platform.tscn", "res://scenes/crate.tscn", "res://scenes/bullet.tscn", "res://scenes/enemy.tscn"] scenes=["res://scenes/ui.tscn", "res://scenes/game.tscn", "res://scenes/slimeEnemy.tscn", "res://scenes/hud.tscn", "res://scenes/coin.tscn", "res://scenes/platform.tscn", "res://scenes/crate.tscn", "res://scenes/bullet.tscn", "res://scenes/character.tscn", "res://scenes/enemy.tscn"]
scripts=["CharacterBody2D", "res://scripts/enemy.gd", "res://scripts/coin.gd", "res://scripts/Trigger.gd", "res://scripts/bullet.gd", "res://scripts/CharacterBody2D.gd", "res://scripts/gamecontroller.gd"] scripts=["res://scripts/ui.gd", "res://scripts/resources/characterStats.gd", "res://scripts/gameManager.gd", "CharacterBody2D", "res://scripts/enemy.gd", "res://scripts/coin.gd", "res://scripts/Trigger.gd", "res://scripts/bullet.gd", "res://scripts/CharacterBody2D.gd", "res://scripts/gamecontroller.gd"]
[linked_properties] [linked_properties]
@ -40,10 +40,12 @@ ParallaxLayer:scale=true
Label:scale=true Label:scale=true
CanvasLayer:scale=true CanvasLayer:scale=true
Control:scale=true Control:scale=true
VBoxContainer:scale=true
HBoxContainer:scale=true
[dialog_bounds] [dialog_bounds]
create_new_node=Rect2(354, 197, 900, 883) create_new_node=Rect2(679, 94, 900, 883)
project_settings=Rect2(510, 190, 900, 700) project_settings=Rect2(510, 190, 900, 700)
[color_picker] [color_picker]
@ -60,4 +62,4 @@ advanced_mode=true
[scripts_panel] [scripts_panel]
show_scripts_panel=false show_scripts_panel=true

View File

@ -1,8 +1,6 @@
res://graphics/playerDeath
res://scripts res://scripts
res://graphics/enemies
res://scenes res://scenes
res://scripts/resources/
res://graphics/playerDeath
res://graphics/enemies
res://graphics/pickups res://graphics/pickups
res://graphics/Player Jump
res://graphics/Player Run
res://graphics/Player Idle

View File

@ -6,7 +6,7 @@ state={
"column": 0, "column": 0,
"folded_lines": Array[int]([]), "folded_lines": Array[int]([]),
"h_scroll_position": 0, "h_scroll_position": 0,
"row": 28, "row": 39,
"scroll_position": 17.0, "scroll_position": 17.0,
"selection": false, "selection": false,
"syntax_highlighter": "GDScript" "syntax_highlighter": "GDScript"
@ -17,10 +17,10 @@ state={
state={ state={
"bookmarks": PackedInt32Array(), "bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(), "breakpoints": PackedInt32Array(),
"column": 0, "column": 3,
"folded_lines": Array[int]([]), "folded_lines": Array[int]([]),
"h_scroll_position": 0, "h_scroll_position": 0,
"row": 9, "row": 13,
"scroll_position": 0.0, "scroll_position": 0.0,
"selection": false, "selection": false,
"syntax_highlighter": "GDScript" "syntax_highlighter": "GDScript"
@ -31,10 +31,10 @@ state={
state={ state={
"bookmarks": PackedInt32Array(), "bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(), "breakpoints": PackedInt32Array(),
"column": 5, "column": 11,
"folded_lines": Array[int]([]), "folded_lines": Array[int]([]),
"h_scroll_position": 0, "h_scroll_position": 0,
"row": 10, "row": 5,
"scroll_position": 0.0, "scroll_position": 0.0,
"selection": false, "selection": false,
"syntax_highlighter": "GDScript" "syntax_highlighter": "GDScript"
@ -45,11 +45,11 @@ state={
state={ state={
"bookmarks": PackedInt32Array(), "bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(), "breakpoints": PackedInt32Array(),
"column": 15, "column": 0,
"folded_lines": Array[int]([]), "folded_lines": Array[int]([]),
"h_scroll_position": 0, "h_scroll_position": 0,
"row": 32, "row": 1,
"scroll_position": 0.0, "scroll_position": 22.0,
"selection": false, "selection": false,
"syntax_highlighter": "GDScript" "syntax_highlighter": "GDScript"
} }
@ -59,25 +59,57 @@ state={
state={ state={
"bookmarks": PackedInt32Array(), "bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(), "breakpoints": PackedInt32Array(),
"column": 21, "column": 17,
"folded_lines": Array[int]([]), "folded_lines": Array[int]([]),
"h_scroll_position": 0, "h_scroll_position": 0,
"row": 5, "row": 115,
"scroll_position": 0.0, "scroll_position": 101.0,
"selection": false, "selection": false,
"syntax_highlighter": "GDScript" "syntax_highlighter": "GDScript"
} }
[res://scripts/trigger.gd] [res://scripts/gameManager.gd]
state={ state={
"bookmarks": PackedInt32Array(), "bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(), "breakpoints": PackedInt32Array(),
"column": 31, "column": 14,
"folded_lines": Array[int]([]), "folded_lines": Array[int]([]),
"h_scroll_position": 0, "h_scroll_position": 0,
"row": 6, "row": 23,
"scroll_position": 0.0, "scroll_position": 0.0,
"selection": false, "selection": false,
"syntax_highlighter": "GDScript" "syntax_highlighter": "GDScript"
} }
[res://scripts/resources/characterStats.gd]
state={
"bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(),
"column": 36,
"folded_lines": Array[int]([]),
"h_scroll_position": 0,
"row": 4,
"scroll_position": 0.0,
"selection": false,
"syntax_highlighter": "GDScript"
}
[res://scripts/ui.gd]
state={
"bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(),
"column": 0,
"folded_lines": Array[int]([]),
"h_scroll_position": 0,
"row": 4,
"scroll_position": 0.0,
"selection": true,
"selection_from_column": 0,
"selection_from_line": 4,
"selection_to_column": 14,
"selection_to_line": 5,
"syntax_highlighter": "GDScript"
}

View File

@ -1,7 +1,7 @@
[editor_states] [editor_states]
Anim={ Anim={
"visible": true "visible": false
} }
2D={ 2D={
"grid_offset": Vector2(0, 0), "grid_offset": Vector2(0, 0),
@ -172,4 +172,4 @@ Anim={
"zfar": 4000.01, "zfar": 4000.01,
"znear": 0.05 "znear": 0.05
} }
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17848/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9465/@VSplitContainer@9284/@HSplitContainer@9286/@HSplitContainer@9288/@Control@9289/@SubViewportContainer@9290/@SubViewport@9291/RigidBody2D")]) selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17140/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9462/@VSplitContainer@9281/@HSplitContainer@9283/@HSplitContainer@9285/@Control@9286/@SubViewportContainer@9287/@SubViewport@9288/Game/CharacterBody2D")])

View File

@ -0,0 +1,3 @@
[folding]
sections_unfolded=PackedStringArray()

View File

@ -0,0 +1,3 @@
[folding]
sections_unfolded=PackedStringArray()

View File

@ -0,0 +1,175 @@
[editor_states]
Anim={
"visible": false
}
2D={
"grid_offset": Vector2(0, 0),
"grid_snap_active": false,
"grid_step": Vector2(8, 8),
"grid_visibility": 1,
"ofs": Vector2(-165, -110),
"primary_grid_step": Vector2i(8, 8),
"show_edit_locks": true,
"show_guides": true,
"show_helpers": false,
"show_origin": true,
"show_rulers": true,
"show_transformation_gizmos": true,
"show_viewport": true,
"show_zoom_control": true,
"smart_snap_active": false,
"snap_guides": true,
"snap_node_anchors": true,
"snap_node_center": true,
"snap_node_parent": true,
"snap_node_sides": true,
"snap_other_nodes": true,
"snap_pixel": true,
"snap_relative": false,
"snap_rotation": false,
"snap_rotation_offset": 0.0,
"snap_rotation_step": 0.261799,
"snap_scale": false,
"snap_scale_step": 0.1,
"zoom": 1.0
}
3D={
"fov": 70.01,
"gizmos_status": {
"AudioListener3D": 0,
"AudioStreamPlayer3D": 0,
"CPUParticles3D": 0,
"CSGShape3D": 0,
"Camera3D": 0,
"CollisionObject3D": 0,
"CollisionPolygon3D": 0,
"CollisionShape3D": 0,
"Decal": 0,
"FogVolume": 0,
"GPUParticles3D": 0,
"GPUParticlesCollision3D": 0,
"Joint3D": 0,
"Light3D": 0,
"LightmapGI": 0,
"LightmapProbe": 0,
"Marker3D": 0,
"NavigationLink3D": 0,
"NavigationRegion3D": 0,
"OccluderInstance3D": 0,
"Path3D": 0,
"PhysicalBone3D": 0,
"RayCast3D": 0,
"ReflectionProbe": 0,
"ShapeCast3D": 0,
"Skeleton3D": 0,
"SoftBody3D": 0,
"SpringArm3D": 0,
"VehicleWheel3D": 0,
"VisibleOnScreenNotifier3D": 0,
"VoxelGI": 0
},
"local_coords": false,
"preview_sun_env": {
"environ_ao_enabled": false,
"environ_enabled": true,
"environ_energy": 1.0,
"environ_gi_enabled": false,
"environ_glow_enabled": true,
"environ_ground_color": Color(0.2, 0.169, 0.133, 1),
"environ_sky_color": Color(0.385, 0.454, 0.55, 1),
"environ_tonemap_enabled": true,
"sun_color": Color(1, 1, 1, 1),
"sun_enabled": true,
"sun_energy": 1.0,
"sun_max_distance": 100.0,
"sun_rotation": Vector2(-1.0472, 2.61799)
},
"rotate_snap": 15.0,
"scale_snap": 10.0,
"show_grid": true,
"show_origin": true,
"snap_enabled": false,
"translate_snap": 1.0,
"viewport_mode": 1,
"viewports": [{
"auto_orthogonal": false,
"auto_orthogonal_enabled": true,
"cinematic_preview": false,
"display_mode": 20,
"distance": 4.0,
"doppler": false,
"frame_time": false,
"gizmos": true,
"half_res": false,
"information": false,
"listener": true,
"lock_rotation": false,
"orthogonal": false,
"position": Vector3(0, 0, 0),
"use_environment": false,
"view_type": 0,
"x_rotation": 0.5,
"y_rotation": -0.5
}, {
"auto_orthogonal": false,
"auto_orthogonal_enabled": true,
"cinematic_preview": false,
"display_mode": 20,
"distance": 4.0,
"doppler": false,
"frame_time": false,
"gizmos": true,
"half_res": false,
"information": false,
"listener": false,
"lock_rotation": false,
"orthogonal": false,
"position": Vector3(0, 0, 0),
"use_environment": false,
"view_type": 0,
"x_rotation": 0.5,
"y_rotation": -0.5
}, {
"auto_orthogonal": false,
"auto_orthogonal_enabled": true,
"cinematic_preview": false,
"display_mode": 20,
"distance": 4.0,
"doppler": false,
"frame_time": false,
"gizmos": true,
"half_res": false,
"information": false,
"listener": false,
"lock_rotation": false,
"orthogonal": false,
"position": Vector3(0, 0, 0),
"use_environment": false,
"view_type": 0,
"x_rotation": 0.5,
"y_rotation": -0.5
}, {
"auto_orthogonal": false,
"auto_orthogonal_enabled": true,
"cinematic_preview": false,
"display_mode": 20,
"distance": 4.0,
"doppler": false,
"frame_time": false,
"gizmos": true,
"half_res": false,
"information": false,
"listener": false,
"lock_rotation": false,
"orthogonal": false,
"position": Vector3(0, 0, 0),
"use_environment": false,
"view_type": 0,
"x_rotation": 0.5,
"y_rotation": -0.5
}],
"zfar": 4000.01,
"znear": 0.05
}
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17140/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9462/@VSplitContainer@9281/@HSplitContainer@9283/@HSplitContainer@9285/@Control@9286/@SubViewportContainer@9287/@SubViewport@9288/Game/CharacterBody2D")])

View File

@ -0,0 +1,5 @@
[folding]
node_unfolds=[NodePath("VBoxContainer/HBoxContainer/Health"), PackedStringArray("Layout", "Layout/Container Sizing"), NodePath("VBoxContainer/HBoxContainer/Coins"), PackedStringArray("Layout", "Layout/Transform", "Layout/Container Sizing")]
resource_unfolds=[]
nodes_folded=[]

View File

@ -1 +1,19 @@
list=Array[Dictionary]([]) list=Array[Dictionary]([{
"base": &"Resource",
"class": &"Character",
"icon": "",
"language": &"GDScript",
"path": "res://scripts/resources/characterStats.gd"
}, {
"base": &"Area2D",
"class": &"Coin",
"icon": "",
"language": &"GDScript",
"path": "res://scripts/coin.gd"
}, {
"base": &"Area2D",
"class": &"Enemy",
"icon": "",
"language": &"GDScript",
"path": "res://scripts/enemy.gd"
}])

Some files were not shown because too many files have changed in this diff Show More