From baa96e18cab39a2899e5195db910c3249d79652f Mon Sep 17 00:00:00 2001 From: bip Date: Mon, 12 Aug 2024 21:01:40 -0400 Subject: [PATCH] coins, enemies, etc. --- ...lding-d8b27d524c55c751f790b95800ba03e2.cfg | 3 + ...lding-aa3680043b1211abf6e7d6fc641abc10.cfg | 3 + ...state-e196a632ea77e9a0d8baa608f164a4d2.cfg | 175 ++++++++++++++++++ ...lding-e196a632ea77e9a0d8baa608f164a4d2.cfg | 5 + ...state-6d8e6ff1e6f20a36e0402d27c623c86c.cfg | 2 +- ...state-b6bd7a241034177d7fe082a7597ba8ea.cfg | 6 +- ...lding-80a47dad698f065f8d4e0255ce133510.cfg | 3 + ...state-96b2131180b71dd158e52c5527d22dd4.cfg | 175 ++++++++++++++++++ ...lding-96b2131180b71dd158e52c5527d22dd4.cfg | 5 + ...state-65637dc57c83dac3d15ec1cb22439bd7.cfg | 2 +- .godot/editor/create_recent.Node | 15 +- .godot/editor/editor_layout.cfg | 22 ++- .godot/editor/filesystem_cache8 | 54 ++++-- .godot/editor/filesystem_update4 | 8 +- ...state-c2a7af834e91ff64325daddf58e45dc0.cfg | 6 +- ...lding-c2a7af834e91ff64325daddf58e45dc0.cfg | 4 +- ...lding-f1f331c27a8a747c68def87f3a691aa7.cfg | 2 +- ...state-cc2f727180cd42d9c13434cb55b1ce69.cfg | 2 +- .godot/editor/project_metadata.cfg | 11 +- .godot/editor/recent_dirs | 6 +- .godot/editor/script_editor_cache.cfg | 50 +++-- ....png-0c545090cde9f2fc7e943a672b099c59.ctex | Bin 0 -> 94 bytes ...y.png-0c545090cde9f2fc7e943a672b099c59.md5 | 3 + ....png-bf782f3705a1acaec1e3ab97da39a373.ctex | Bin 0 -> 94 bytes ...r.png-bf782f3705a1acaec1e3ab97da39a373.md5 | 3 + ....png-a4c16c98f815c26fe14456abfb54be92.ctex | Bin 0 -> 142 bytes ...e.png-a4c16c98f815c26fe14456abfb54be92.md5 | 3 + ....png-07d55bb7914f74cde65b4e7813845f63.ctex | Bin 0 -> 910 bytes ...4.png-07d55bb7914f74cde65b4e7813845f63.md5 | 3 + ....png-066c13364c835b926ef316365230dd27.ctex | Bin 0 -> 910 bytes ...8.png-066c13364c835b926ef316365230dd27.md5 | 3 + ....png-1a4f832699b00a99e538d3c588e44dd9.ctex | Bin 0 -> 332 bytes ...n.png-1a4f832699b00a99e538d3c588e44dd9.md5 | 3 + ....png-73c91dc4cbca5202b885de6adb8bd3f1.ctex | Bin 0 -> 332 bytes ...n.png-73c91dc4cbca5202b885de6adb8bd3f1.md5 | 3 + ....png-b04a16f8896ddd41f884de642ba05be4.ctex | Bin 0 -> 332 bytes ...n.png-b04a16f8896ddd41f884de642ba05be4.md5 | 3 + ....png-b869b996dcf5a53b113106c729a33303.ctex | Bin 0 -> 738 bytes ...8.png-b869b996dcf5a53b113106c729a33303.md5 | 3 + ....png-6020c5c4d945c2c77d3b3740032a54d3.ctex | Bin 0 -> 1578 bytes ...8.png-6020c5c4d945c2c77d3b3740032a54d3.md5 | 3 + ....png-bf0a0059a4be2cb1b3bbf91305f9550d.ctex | Bin 0 -> 698 bytes ...e.png-bf0a0059a4be2cb1b3bbf91305f9550d.md5 | 3 + .godot/uid_cache.bin | Bin 546 -> 1139 bytes graphics/background/Additional Sky.png | Bin 0 -> 123 bytes graphics/background/Additional Sky.png.import | 34 ++++ graphics/background/Additional Water.png | Bin 0 -> 122 bytes .../background/Additional Water.png.import | 34 ++++ graphics/background/BG Image.png | Bin 0 -> 586 bytes graphics/background/BG Image.png.import | 34 ++++ graphics/pickups/coin.png | Bin 0 -> 500 bytes graphics/pickups/coin.png.import | 34 ++++ .../player animations/Player Death 64x64.png | Bin 0 -> 1584 bytes .../Player Death 64x64.png.import | 34 ++++ .../Player Idle 48x48.png | Bin .../Player Idle 48x48.png.import | 6 +- .../player jump 48x48.png | Bin .../player jump 48x48.png.import | 6 +- .../player run 48x48.png | Bin .../player run 48x48.png.import | 6 +- graphics/slime_purple.png | Bin 0 -> 1030 bytes graphics/slime_purple.png.import | 34 ++++ scenes/badguy.tscn | 73 ++++++++ scenes/character.tscn | 128 ++++++++++--- scenes/coin.tscn | 112 +++++++++++ scenes/game.tscn | 100 ++++++++-- scripts/CharacterBody2D.gd | 162 ++++++++-------- scripts/badguy.gd | 40 ++++ scripts/coin.gd | 19 ++ scripts/gamecontroller.gd | 21 ++- 70 files changed, 1270 insertions(+), 199 deletions(-) create mode 100644 .godot/editor/Trigger.gd-folding-d8b27d524c55c751f790b95800ba03e2.cfg create mode 100644 .godot/editor/badguy.gd-folding-aa3680043b1211abf6e7d6fc641abc10.cfg create mode 100644 .godot/editor/badguy.tscn-editstate-e196a632ea77e9a0d8baa608f164a4d2.cfg create mode 100644 .godot/editor/badguy.tscn-folding-e196a632ea77e9a0d8baa608f164a4d2.cfg create mode 100644 .godot/editor/coin.gd-folding-80a47dad698f065f8d4e0255ce133510.cfg create mode 100644 .godot/editor/coin.tscn-editstate-96b2131180b71dd158e52c5527d22dd4.cfg create mode 100644 .godot/editor/coin.tscn-folding-96b2131180b71dd158e52c5527d22dd4.cfg create mode 100644 .godot/imported/Additional Sky.png-0c545090cde9f2fc7e943a672b099c59.ctex create mode 100644 .godot/imported/Additional Sky.png-0c545090cde9f2fc7e943a672b099c59.md5 create mode 100644 .godot/imported/Additional Water.png-bf782f3705a1acaec1e3ab97da39a373.ctex create mode 100644 .godot/imported/Additional Water.png-bf782f3705a1acaec1e3ab97da39a373.md5 create mode 100644 .godot/imported/BG Image.png-a4c16c98f815c26fe14456abfb54be92.ctex create mode 100644 .godot/imported/BG Image.png-a4c16c98f815c26fe14456abfb54be92.md5 create mode 100644 .godot/imported/Player Death 64x64.png-07d55bb7914f74cde65b4e7813845f63.ctex create mode 100644 .godot/imported/Player Death 64x64.png-07d55bb7914f74cde65b4e7813845f63.md5 create mode 100644 .godot/imported/Player Idle 48x48.png-066c13364c835b926ef316365230dd27.ctex create mode 100644 .godot/imported/Player Idle 48x48.png-066c13364c835b926ef316365230dd27.md5 create mode 100644 .godot/imported/coin.png-1a4f832699b00a99e538d3c588e44dd9.ctex create mode 100644 .godot/imported/coin.png-1a4f832699b00a99e538d3c588e44dd9.md5 create mode 100644 .godot/imported/coin.png-73c91dc4cbca5202b885de6adb8bd3f1.ctex create mode 100644 .godot/imported/coin.png-73c91dc4cbca5202b885de6adb8bd3f1.md5 create mode 100644 .godot/imported/coin.png-b04a16f8896ddd41f884de642ba05be4.ctex create mode 100644 .godot/imported/coin.png-b04a16f8896ddd41f884de642ba05be4.md5 create mode 100644 .godot/imported/player jump 48x48.png-b869b996dcf5a53b113106c729a33303.ctex create mode 100644 .godot/imported/player jump 48x48.png-b869b996dcf5a53b113106c729a33303.md5 create mode 100644 .godot/imported/player run 48x48.png-6020c5c4d945c2c77d3b3740032a54d3.ctex create mode 100644 .godot/imported/player run 48x48.png-6020c5c4d945c2c77d3b3740032a54d3.md5 create mode 100644 .godot/imported/slime_purple.png-bf0a0059a4be2cb1b3bbf91305f9550d.ctex create mode 100644 .godot/imported/slime_purple.png-bf0a0059a4be2cb1b3bbf91305f9550d.md5 create mode 100644 graphics/background/Additional Sky.png create mode 100644 graphics/background/Additional Sky.png.import create mode 100644 graphics/background/Additional Water.png create mode 100644 graphics/background/Additional Water.png.import create mode 100644 graphics/background/BG Image.png create mode 100644 graphics/background/BG Image.png.import create mode 100644 graphics/pickups/coin.png create mode 100644 graphics/pickups/coin.png.import create mode 100644 graphics/player animations/Player Death 64x64.png create mode 100644 graphics/player animations/Player Death 64x64.png.import rename graphics/{ => player animations}/Player Idle 48x48.png (100%) rename graphics/{ => player animations}/Player Idle 48x48.png.import (68%) rename graphics/{ => player animations}/player jump 48x48.png (100%) rename graphics/{ => player animations}/player jump 48x48.png.import (68%) rename graphics/{ => player animations}/player run 48x48.png (100%) rename graphics/{ => player animations}/player run 48x48.png.import (68%) create mode 100644 graphics/slime_purple.png create mode 100644 graphics/slime_purple.png.import create mode 100644 scenes/badguy.tscn create mode 100644 scenes/coin.tscn create mode 100644 scripts/badguy.gd create mode 100644 scripts/coin.gd diff --git a/.godot/editor/Trigger.gd-folding-d8b27d524c55c751f790b95800ba03e2.cfg b/.godot/editor/Trigger.gd-folding-d8b27d524c55c751f790b95800ba03e2.cfg new file mode 100644 index 0000000..762d715 --- /dev/null +++ b/.godot/editor/Trigger.gd-folding-d8b27d524c55c751f790b95800ba03e2.cfg @@ -0,0 +1,3 @@ +[folding] + +sections_unfolded=PackedStringArray("Resource") diff --git a/.godot/editor/badguy.gd-folding-aa3680043b1211abf6e7d6fc641abc10.cfg b/.godot/editor/badguy.gd-folding-aa3680043b1211abf6e7d6fc641abc10.cfg new file mode 100644 index 0000000..e860dd4 --- /dev/null +++ b/.godot/editor/badguy.gd-folding-aa3680043b1211abf6e7d6fc641abc10.cfg @@ -0,0 +1,3 @@ +[folding] + +sections_unfolded=PackedStringArray() diff --git a/.godot/editor/badguy.tscn-editstate-e196a632ea77e9a0d8baa608f164a4d2.cfg b/.godot/editor/badguy.tscn-editstate-e196a632ea77e9a0d8baa608f164a4d2.cfg new file mode 100644 index 0000000..9760522 --- /dev/null +++ b/.godot/editor/badguy.tscn-editstate-e196a632ea77e9a0d8baa608f164a4d2.cfg @@ -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(-43.2845, -16.7919), +"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": 7.55099 +} +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/GameController/Timer")]) diff --git a/.godot/editor/badguy.tscn-folding-e196a632ea77e9a0d8baa608f164a4d2.cfg b/.godot/editor/badguy.tscn-folding-e196a632ea77e9a0d8baa608f164a4d2.cfg new file mode 100644 index 0000000..6bb0792 --- /dev/null +++ b/.godot/editor/badguy.tscn-folding-e196a632ea77e9a0d8baa608f164a4d2.cfg @@ -0,0 +1,5 @@ +[folding] + +node_unfolds=[NodePath("AnimatedSprite2D"), PackedStringArray("Animation")] +resource_unfolds=["res://scenes/badguy.tscn::SpriteFrames_t8k3l", PackedStringArray(), "res://scenes/badguy.tscn::RectangleShape2D_nrtm8", PackedStringArray()] +nodes_folded=[] diff --git a/.godot/editor/bullet.tscn-editstate-6d8e6ff1e6f20a36e0402d27c623c86c.cfg b/.godot/editor/bullet.tscn-editstate-6d8e6ff1e6f20a36e0402d27c623c86c.cfg index 52d505a..578046d 100644 --- a/.godot/editor/bullet.tscn-editstate-6d8e6ff1e6f20a36e0402d27c623c86c.cfg +++ b/.godot/editor/bullet.tscn-editstate-6d8e6ff1e6f20a36e0402d27c623c86c.cfg @@ -172,4 +172,4 @@ Anim={ "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")]) +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/GameController/Timer")]) diff --git a/.godot/editor/character.tscn-editstate-b6bd7a241034177d7fe082a7597ba8ea.cfg b/.godot/editor/character.tscn-editstate-b6bd7a241034177d7fe082a7597ba8ea.cfg index 0b2d3d3..c2f578c 100644 --- a/.godot/editor/character.tscn-editstate-b6bd7a241034177d7fe082a7597ba8ea.cfg +++ b/.godot/editor/character.tscn-editstate-b6bd7a241034177d7fe082a7597ba8ea.cfg @@ -8,7 +8,7 @@ Anim={ "grid_snap_active": false, "grid_step": Vector2(8, 8), "grid_visibility": 1, -"ofs": Vector2(-234.664, -212.684), +"ofs": Vector2(-78.6272, -67.7781), "primary_grid_step": Vector2i(8, 8), "show_edit_locks": true, "show_guides": true, @@ -32,7 +32,7 @@ Anim={ "snap_rotation_step": 0.261799, "snap_scale": false, "snap_scale_step": 0.1, -"zoom": 1.7818 +"zoom": 5.33936 } 3D={ "fov": 70.01, @@ -172,4 +172,4 @@ Anim={ "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")]) +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/GameController/Timer")]) diff --git a/.godot/editor/coin.gd-folding-80a47dad698f065f8d4e0255ce133510.cfg b/.godot/editor/coin.gd-folding-80a47dad698f065f8d4e0255ce133510.cfg new file mode 100644 index 0000000..e860dd4 --- /dev/null +++ b/.godot/editor/coin.gd-folding-80a47dad698f065f8d4e0255ce133510.cfg @@ -0,0 +1,3 @@ +[folding] + +sections_unfolded=PackedStringArray() diff --git a/.godot/editor/coin.tscn-editstate-96b2131180b71dd158e52c5527d22dd4.cfg b/.godot/editor/coin.tscn-editstate-96b2131180b71dd158e52c5527d22dd4.cfg new file mode 100644 index 0000000..a651642 --- /dev/null +++ b/.godot/editor/coin.tscn-editstate-96b2131180b71dd158e52c5527d22dd4.cfg @@ -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(-37.3845, -20.7875), +"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": 12.6992 +} +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/GameController/Timer")]) diff --git a/.godot/editor/coin.tscn-folding-96b2131180b71dd158e52c5527d22dd4.cfg b/.godot/editor/coin.tscn-folding-96b2131180b71dd158e52c5527d22dd4.cfg new file mode 100644 index 0000000..aa3a261 --- /dev/null +++ b/.godot/editor/coin.tscn-folding-96b2131180b71dd158e52c5527d22dd4.cfg @@ -0,0 +1,5 @@ +[folding] + +node_unfolds=[NodePath("AnimatedSprite2D"), PackedStringArray("Animation", "Texture")] +resource_unfolds=["res://scenes/coin.tscn::SpriteFrames_kfu8w", PackedStringArray(), "res://scenes/coin.tscn::CircleShape2D_6jtug", PackedStringArray()] +nodes_folded=[] diff --git a/.godot/editor/crate.tscn-editstate-65637dc57c83dac3d15ec1cb22439bd7.cfg b/.godot/editor/crate.tscn-editstate-65637dc57c83dac3d15ec1cb22439bd7.cfg index cc999ce..4bc2b30 100644 --- a/.godot/editor/crate.tscn-editstate-65637dc57c83dac3d15ec1cb22439bd7.cfg +++ b/.godot/editor/crate.tscn-editstate-65637dc57c83dac3d15ec1cb22439bd7.cfg @@ -172,4 +172,4 @@ Anim={ "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")]) +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/GameController/Timer")]) diff --git a/.godot/editor/create_recent.Node b/.godot/editor/create_recent.Node index ee8f3fa..ba90154 100644 --- a/.godot/editor/create_recent.Node +++ b/.godot/editor/create_recent.Node @@ -1,11 +1,14 @@ +Timer +RayCast2D +AnimatedSprite2D +CollisionShape2D +Area2D +Node +Sprite2D +ParallaxLayer +ParallaxBackground Node2D AnimationPlayer -CollisionShape2D AnimatableBody2D -Sprite2D TileMap Camera2D -Node -AnimatedSprite2D -Area2D -RayCast2D diff --git a/.godot/editor/editor_layout.cfg b/.godot/editor/editor_layout.cfg index 8a143c2..aeaee88 100644 --- a/.godot/editor/editor_layout.cfg +++ b/.godot/editor/editor_layout.cfg @@ -19,24 +19,24 @@ dock_filesystem_split=0 dock_filesystem_display_mode=0 dock_filesystem_file_sort=0 dock_filesystem_file_list_display_mode=1 -dock_filesystem_selected_paths=PackedStringArray("res://scenes/platform.tscn") -dock_filesystem_uncollapsed_paths=PackedStringArray("Favorites", "res://", "res://scripts/", "res://scenes/", "res://graphics/") +dock_filesystem_selected_paths=PackedStringArray("res://graphics/player animations/Player Death 64x64.png") +dock_filesystem_uncollapsed_paths=PackedStringArray("Favorites", "res://", "res://scripts/", "res://scenes/", "res://graphics/", "res://graphics/player animations/") dock_3="Scene,Import" dock_4="FileSystem" dock_5="Inspector,Node,History" [EditorNode] -open_scenes=PackedStringArray("res://scenes/game.tscn", "res://scenes/character.tscn", "res://scenes/bullet.tscn", "res://scenes/crate.tscn", "res://scenes/platform.tscn") +open_scenes=PackedStringArray("res://scenes/game.tscn", "res://scenes/character.tscn", "res://scenes/bullet.tscn", "res://scenes/crate.tscn", "res://scenes/platform.tscn", "res://scenes/coin.tscn", "res://scenes/badguy.tscn") current_scene="res://scenes/game.tscn" -center_split_offset=-361 +center_split_offset=-304 selected_default_debugger_tab_idx=0 -selected_main_editor_idx=0 +selected_main_editor_idx=2 selected_bottom_panel_item=0 [ScriptEditor] -open_scripts=["res://scripts/bullet.gd", "res://scripts/CharacterBody2D.gd", "res://scripts/gamecontroller.gd", "res://scripts/Trigger.gd"] +open_scripts=["res://scripts/badguy.gd", "res://scripts/bullet.gd", "res://scripts/CharacterBody2D.gd", "res://scripts/coin.gd", "res://scripts/gamecontroller.gd", "res://scripts/Trigger.gd"] selected_script="res://scripts/gamecontroller.gd" open_help=[] script_split_offset=70 @@ -47,3 +47,13 @@ list_split_offset=0 open_shaders=[] split_offset=0 selected_shader="" + +[editor_log] + +log_filter_0=true +log_filter_2=true +log_filter_1=true +log_filter_3=true +log_filter_4=true +collapse=false +show_search=true diff --git a/.godot/editor/filesystem_cache8 b/.godot/editor/filesystem_cache8 index e38ff6a..756a2a3 100644 --- a/.godot/editor/filesystem_cache8 +++ b/.godot/editor/filesystem_cache8 @@ -1,21 +1,35 @@ ea4bc82a6ad023ab7ee23ee620429895 -::res://::1722298098 -icon.svg::CompressedTexture2D::9114977118871582245::1722291758::1722291758::1::::<><>:: -README.md::TextFile::-1::1722291758::0::1::::<><>:: -::res://graphics/::1722298098 -bullet.png::CompressedTexture2D::4481112836284868801::1722298085::1722298098::1::::<><>:: -crate.png::CompressedTexture2D::8555584700510586149::1722291758::1722291758::1::::<><>:: -Player Idle 48x48.png::CompressedTexture2D::3529809544777189649::1722291758::1722291758::1::::<><>:: -player jump 48x48.png::CompressedTexture2D::3342890448265989669::1722291758::1722291758::1::::<><>:: -player run 48x48.png::CompressedTexture2D::2400852804432818940::1722291758::1722291758::1::::<><>:: -Terrain (32x32).png::CompressedTexture2D::6866676332079345064::1722291758::1722291758::1::::<><>:: -::res://scenes/::1722298098 -bullet.tscn::PackedScene::6880909734590904373::1722297856::0::1::::<><>::res://scripts/bullet.gd -character.tscn::PackedScene::451838158579532324::1722297856::0::1::::<><>::res://scripts/CharacterBody2D.gd<>uid://bqj4phkget2pp::::res://graphics/Player Idle 48x48.png<>uid://bnvk6gm188vsv::::res://graphics/player jump 48x48.png<>uid://bag8xvlev6yxg::::res://graphics/player run 48x48.png -crate.tscn::PackedScene::7138073747019797840::1722297856::0::1::::<><>::uid://dt5nh26eq2a5r::::res://graphics/crate.png -game.tscn::PackedScene::1738196330916037717::1722297856::0::1::::<><>::res://scripts/gamecontroller.gd<>uid://go4yc8hfo1gq::::res://scenes/character.tscn<>uid://c43jfkjw11rsq::::res://graphics/Terrain (32x32).png<>res://scripts/Trigger.gd<>uid://c8x0bcxa8t74o::::res://scenes/crate.tscn -::res://scripts/::1722293659 -bullet.gd::GDScript::-1::1722293659::0::1::::<>Area2D<>:: -CharacterBody2D.gd::GDScript::-1::1722293659::0::1::::<>CharacterBody2D<>:: -gamecontroller.gd::GDScript::-1::1722291758::0::1::::<>Node2D<>:: -Trigger.gd::GDScript::-1::1722291758::0::1::::<>Area2D<>:: +::res://::1723508951 +icon.svg::CompressedTexture2D::9114977118871582245::1723500338::1723500338::1::::<><>:: +README.md::TextFile::-1::1723500338::0::1::::<><>:: +::res://graphics/::1723508951 +bullet.png::CompressedTexture2D::4481112836284868801::1723500338::1723500338::1::::<><>:: +crate.png::CompressedTexture2D::8555584700510586149::1723500338::1723500338::1::::<><>:: +slime_purple.png::CompressedTexture2D::1169879343296382357::1723506273::1723506273::1::::<><>:: +Terrain (32x32).png::CompressedTexture2D::6866676332079345064::1723500338::1723500338::1::::<><>:: +::res://graphics/background/::1723502313 +Additional Sky.png::CompressedTexture2D::3499877156509682826::1723501223::1723501212::1::::<><>:: +Additional Water.png::CompressedTexture2D::4095518979319428373::1723501223::1723501212::1::::<><>:: +BG Image.png::CompressedTexture2D::2982006258268107973::1723501223::1723501212::1::::<><>:: +::res://graphics/pickups/::1723502327 +coin.png::CompressedTexture2D::8822567149024268114::1723502302::1723502327::1::::<><>:: +::res://graphics/player animations/::1723508981 +Player Death 64x64.png::CompressedTexture2D::4461411006036685561::1723508981::1723508981::1::::<><>:: +Player Idle 48x48.png::CompressedTexture2D::3529809544777189649::1723500338::1723508951::1::::<><>:: +player jump 48x48.png::CompressedTexture2D::3342890448265989669::1723500338::1723508951::1::::<><>:: +player run 48x48.png::CompressedTexture2D::2400852804432818940::1723500338::1723508951::1::::<><>:: +::res://scenes/::1723508954 +badguy.tscn::PackedScene::1001283511600753306::1723508878::0::1::::<><>::res://scripts/badguy.gd<>uid://qwx0hufw5cxp::::res://graphics/slime_purple.png +bullet.tscn::PackedScene::6880909734590904373::1723508878::0::1::::<><>::res://scripts/bullet.gd<>uid://b43xjkoc8qrmv::::res://graphics/bullet.png +character.tscn::PackedScene::451838158579532324::1723508954::0::1::::<><>::res://scripts/CharacterBody2D.gd<>uid://bqj4phkget2pp::::res://graphics/player animations/Player Idle 48x48.png<>uid://bnvk6gm188vsv::::res://graphics/player animations/player jump 48x48.png<>uid://bag8xvlev6yxg::::res://graphics/player animations/player run 48x48.png +coin.tscn::PackedScene::39001951564700926::1723508878::0::1::::<><>::uid://dxxynldiswq5g::::res://graphics/pickups/coin.png<>res://scripts/coin.gd +crate.tscn::PackedScene::7138073747019797840::1723508878::0::1::::<><>::uid://dt5nh26eq2a5r::::res://graphics/crate.png +game.tscn::PackedScene::1738196330916037717::1723508878::0::1::::<><>::res://scripts/gamecontroller.gd<>uid://go4yc8hfo1gq::::res://scenes/character.tscn<>uid://c43jfkjw11rsq::::res://graphics/Terrain (32x32).png<>res://scripts/Trigger.gd<>uid://c8x0bcxa8t74o::::res://scenes/crate.tscn<>uid://biqrhb0shtygr::::res://graphics/background/BG Image.png<>uid://bp4mp3bh45b6i::::res://graphics/background/Additional Sky.png<>uid://byl5umyabyltt::::res://graphics/background/Additional Water.png<>uid://cdgbcjrseeoka::::res://scenes/platform.tscn<>uid://s5mebw76f4y::::res://scenes/coin.tscn<>uid://oja81cvx8jvu::::res://scenes/badguy.tscn +platform.tscn::PackedScene::4995858953200417260::1723508878::0::1::::<><>:: +::res://scripts/::1723508876 +badguy.gd::GDScript::-1::1723508876::0::1::::<>Area2D<>:: +bullet.gd::GDScript::-1::1723500338::0::1::::<>Area2D<>:: +CharacterBody2D.gd::GDScript::-1::1723504296::0::1::::<>CharacterBody2D<>:: +coin.gd::GDScript::-1::1723504919::0::1::::<>Area2D<>:: +gamecontroller.gd::GDScript::-1::1723508737::0::1::::<>Node<>:: +Trigger.gd::GDScript::-1::1723505565::0::1::::<>Area2D<>:: diff --git a/.godot/editor/filesystem_update4 b/.godot/editor/filesystem_update4 index 5f56c92..9bc33c9 100644 --- a/.godot/editor/filesystem_update4 +++ b/.godot/editor/filesystem_update4 @@ -2,7 +2,11 @@ res://scenes/game.tscn res://scenes/character.tscn res://scenes/bullet.tscn res://scenes/crate.tscn -res://scripts/CharacterBody2D.gd -res://scripts/bullet.gd res://scenes/platform.tscn +res://scenes/coin.tscn +res://scripts/coin.gd res://scripts/gamecontroller.gd +res://scripts/CharacterBody2D.gd +res://scripts/Trigger.gd +res://scenes/badguy.tscn +res://scripts/badguy.gd diff --git a/.godot/editor/game.tscn-editstate-c2a7af834e91ff64325daddf58e45dc0.cfg b/.godot/editor/game.tscn-editstate-c2a7af834e91ff64325daddf58e45dc0.cfg index 8b96d7d..348d9fe 100644 --- a/.godot/editor/game.tscn-editstate-c2a7af834e91ff64325daddf58e45dc0.cfg +++ b/.godot/editor/game.tscn-editstate-c2a7af834e91ff64325daddf58e45dc0.cfg @@ -8,7 +8,7 @@ Anim={ "grid_snap_active": false, "grid_step": Vector2(8, 8), "grid_visibility": 1, -"ofs": Vector2(-39.9296, 9.56621), +"ofs": Vector2(-234.664, -212.684), "primary_grid_step": Vector2i(8, 8), "show_edit_locks": true, "show_guides": true, @@ -32,7 +32,7 @@ Anim={ "snap_rotation_step": 0.261799, "snap_scale": false, "snap_scale_step": 0.1, -"zoom": 1.49831 +"zoom": 1.7818 } 3D={ "fov": 70.01, @@ -172,4 +172,4 @@ Anim={ "zfar": 4000.01, "znear": 0.05 } -selected_nodes=Array[NodePath]([]) +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/GameController/Timer")]) diff --git a/.godot/editor/game.tscn-folding-c2a7af834e91ff64325daddf58e45dc0.cfg b/.godot/editor/game.tscn-folding-c2a7af834e91ff64325daddf58e45dc0.cfg index 9c633f0..67151f5 100644 --- a/.godot/editor/game.tscn-folding-c2a7af834e91ff64325daddf58e45dc0.cfg +++ b/.godot/editor/game.tscn-folding-c2a7af834e91ff64325daddf58e45dc0.cfg @@ -1,5 +1,5 @@ [folding] -node_unfolds=[NodePath("."), PackedStringArray("Transform"), NodePath("TileMap"), PackedStringArray("tile_set"), NodePath("level/StaticBody2D"), PackedStringArray("Transform"), NodePath("CharacterBody2D"), PackedStringArray("Transform"), NodePath("CharacterBody2D/Camera2D"), PackedStringArray("Position Smoothing"), NodePath("Area2D"), PackedStringArray("Transform"), NodePath("Platform"), PackedStringArray("Transform")] +node_unfolds=[NodePath("."), PackedStringArray("Transform"), NodePath("TileMap"), PackedStringArray("tile_set"), NodePath("ParallaxBackground/ParallaxLayer"), PackedStringArray("Motion"), NodePath("ParallaxBackground/ParallaxLayer/bg"), PackedStringArray("Transform"), NodePath("ParallaxBackground/ParallaxLayer/sky"), PackedStringArray("Transform"), NodePath("ParallaxBackground/ParallaxLayer/water"), PackedStringArray("Transform"), NodePath("level/StaticBody2D"), PackedStringArray("Transform"), NodePath("CharacterBody2D"), PackedStringArray("Transform"), NodePath("CharacterBody2D/Camera2D"), PackedStringArray("Position Smoothing"), NodePath("Area2D"), PackedStringArray("Transform"), NodePath("Platform"), PackedStringArray("Transform"), NodePath("Coins/Area2D2"), PackedStringArray("Transform"), NodePath("Coins/Area2D3"), PackedStringArray("Transform"), NodePath("Coins/Area2D5"), PackedStringArray("Transform"), NodePath("Coins/Area2D6"), PackedStringArray("Transform"), NodePath("Coins/Area2D8"), PackedStringArray("Transform"), NodePath("Coins/Area2D9"), PackedStringArray("Transform")] resource_unfolds=["res://scenes/game.tscn::TileSet_25cld", PackedStringArray("terrain_set_0/terrain__array", "physics_layer__array"), "res://scenes/game.tscn::WorldBoundaryShape2D_3u4a8", PackedStringArray("Resource"), "res://scenes/game.tscn::CircleShape2D_x8qck", PackedStringArray("Resource")] -nodes_folded=[NodePath("RigidBody2D")] +nodes_folded=[NodePath("RigidBody2D"), NodePath("Coins")] diff --git a/.godot/editor/gamecontroller.gd-folding-f1f331c27a8a747c68def87f3a691aa7.cfg b/.godot/editor/gamecontroller.gd-folding-f1f331c27a8a747c68def87f3a691aa7.cfg index e860dd4..762d715 100644 --- a/.godot/editor/gamecontroller.gd-folding-f1f331c27a8a747c68def87f3a691aa7.cfg +++ b/.godot/editor/gamecontroller.gd-folding-f1f331c27a8a747c68def87f3a691aa7.cfg @@ -1,3 +1,3 @@ [folding] -sections_unfolded=PackedStringArray() +sections_unfolded=PackedStringArray("Resource") diff --git a/.godot/editor/platform.tscn-editstate-cc2f727180cd42d9c13434cb55b1ce69.cfg b/.godot/editor/platform.tscn-editstate-cc2f727180cd42d9c13434cb55b1ce69.cfg index 32d2c94..ab24c91 100644 --- a/.godot/editor/platform.tscn-editstate-cc2f727180cd42d9c13434cb55b1ce69.cfg +++ b/.godot/editor/platform.tscn-editstate-cc2f727180cd42d9c13434cb55b1ce69.cfg @@ -172,4 +172,4 @@ Anim={ "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")]) +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/GameController/Timer")]) diff --git a/.godot/editor/project_metadata.cfg b/.godot/editor/project_metadata.cfg index e6ab239..71c0966 100644 --- a/.godot/editor/project_metadata.cfg +++ b/.godot/editor/project_metadata.cfg @@ -1,6 +1,6 @@ [editor_metadata] -executable_path="/home/timberg/Documents/software/godot/Godot_v4.2.1-stable_linux.x86_64" +executable_path="/home/timboyo/Documents/software/godot/Godot_v4.2.1-stable_linux.x86_64" use_advanced_connections=false tile_source_sort=0 tile_snap_option=0 @@ -15,8 +15,8 @@ run_deploy_remote_debug=false [recent_files] -scenes=["res://scenes/platform.tscn", "res://scenes/crate.tscn", "res://scenes/bullet.tscn", "res://scenes/character.tscn", "res://scenes/game.tscn"] -scripts=["res://scripts/Trigger.gd", "res://scripts/bullet.gd", "res://scripts/CharacterBody2D.gd", "res://scripts/gamecontroller.gd"] +scenes=["res://scenes/character.tscn", "res://scenes/badguy.tscn", "res://scenes/coin.tscn", "res://scenes/platform.tscn", "res://scenes/crate.tscn", "res://scenes/bullet.tscn", "res://scenes/game.tscn"] +scripts=["res://scripts/badguy.gd", "res://scripts/coin.gd", "res://scripts/Trigger.gd", "res://scripts/bullet.gd", "res://scripts/CharacterBody2D.gd", "res://scripts/gamecontroller.gd"] [linked_properties] @@ -33,6 +33,11 @@ Camera2D:scale=true TileMap:scale=true Sprite2D:scale=true AnimatableBody2D:scale=true +ParallaxBackground:scroll_base_scale=true +ParallaxBackground:scale=true +ParallaxLayer:motion_scale=true +ParallaxLayer:scale=true +MultiNodeEdit:scale=true [dialog_bounds] diff --git a/.godot/editor/recent_dirs b/.godot/editor/recent_dirs index 21e4d30..a2d4b54 100644 --- a/.godot/editor/recent_dirs +++ b/.godot/editor/recent_dirs @@ -1,3 +1,5 @@ -res://scenes -res://graphics +res://graphics/player animations res://scripts +res://graphics +res://scenes +res://graphics/pickups diff --git a/.godot/editor/script_editor_cache.cfg b/.godot/editor/script_editor_cache.cfg index 3f8c6fd..7b535d8 100644 --- a/.godot/editor/script_editor_cache.cfg +++ b/.godot/editor/script_editor_cache.cfg @@ -3,11 +3,11 @@ state={ "bookmarks": PackedInt32Array(), "breakpoints": PackedInt32Array(), -"column": 5, +"column": 31, "folded_lines": Array[int]([]), "h_scroll_position": 0, -"row": 13, -"scroll_position": 0.0, +"row": 40, +"scroll_position": 20.0, "selection": false, "syntax_highlighter": "GDScript" } @@ -17,16 +17,12 @@ state={ state={ "bookmarks": PackedInt32Array(), "breakpoints": PackedInt32Array(), -"column": 3, +"column": 7, "folded_lines": Array[int]([]), "h_scroll_position": 0, -"row": 53, -"scroll_position": 76.0, -"selection": true, -"selection_from_column": 3, -"selection_from_line": 53, -"selection_to_column": 53, -"selection_to_line": 53, +"row": 43, +"scroll_position": 16.0, +"selection": false, "syntax_highlighter": "GDScript" } @@ -49,10 +45,38 @@ state={ state={ "bookmarks": PackedInt32Array(), "breakpoints": PackedInt32Array(), -"column": 0, +"column": 7, "folded_lines": Array[int]([]), "h_scroll_position": 0, -"row": 8, +"row": 7, +"scroll_position": 0.0, +"selection": false, +"syntax_highlighter": "GDScript" +} + +[res://scripts/coin.gd] + +state={ +"bookmarks": PackedInt32Array(), +"breakpoints": PackedInt32Array(), +"column": 20, +"folded_lines": Array[int]([]), +"h_scroll_position": 0, +"row": 10, +"scroll_position": 0.0, +"selection": false, +"syntax_highlighter": "GDScript" +} + +[res://scripts/badguy.gd] + +state={ +"bookmarks": PackedInt32Array(), +"breakpoints": PackedInt32Array(), +"column": 13, +"folded_lines": Array[int]([]), +"h_scroll_position": 0, +"row": 38, "scroll_position": 0.0, "selection": false, "syntax_highlighter": "GDScript" diff --git a/.godot/imported/Additional Sky.png-0c545090cde9f2fc7e943a672b099c59.ctex b/.godot/imported/Additional Sky.png-0c545090cde9f2fc7e943a672b099c59.ctex new file mode 100644 index 0000000000000000000000000000000000000000..28f01e6b8e0345789109b89397a25eb27a90e450 GIT binary patch literal 94 zcmZ<{4l!b6U|>*yVj#u)9|(Xn954Y{3Sbos46H!58W0D0y1B^#>2O!4fUp1yA3-2n XU;Y3)1AD;ZGV?9}8#`XqGcW)EV)+oI literal 0 HcmV?d00001 diff --git a/.godot/imported/Additional Sky.png-0c545090cde9f2fc7e943a672b099c59.md5 b/.godot/imported/Additional Sky.png-0c545090cde9f2fc7e943a672b099c59.md5 new file mode 100644 index 0000000..813be63 --- /dev/null +++ b/.godot/imported/Additional Sky.png-0c545090cde9f2fc7e943a672b099c59.md5 @@ -0,0 +1,3 @@ +source_md5="ef05607ab18b6e14047ef305d4967bca" +dest_md5="c4a79c607243be25d3669dc2144fdbe8" + diff --git a/.godot/imported/Additional Water.png-bf782f3705a1acaec1e3ab97da39a373.ctex b/.godot/imported/Additional Water.png-bf782f3705a1acaec1e3ab97da39a373.ctex new file mode 100644 index 0000000000000000000000000000000000000000..bed577dd21ff5b074e21fb880566a3e5b017453c GIT binary patch literal 94 zcmZ<{4l!b6U|>*yVj#u)9|(Xn954Y{3Sbos46H!58W0D0y1B^#>2O!4fUp1yA3-2n XU;Y3)1N((5Ue|X1Z|rzc&%gixY+DhI literal 0 HcmV?d00001 diff --git a/.godot/imported/Additional Water.png-bf782f3705a1acaec1e3ab97da39a373.md5 b/.godot/imported/Additional Water.png-bf782f3705a1acaec1e3ab97da39a373.md5 new file mode 100644 index 0000000..3ab7479 --- /dev/null +++ b/.godot/imported/Additional Water.png-bf782f3705a1acaec1e3ab97da39a373.md5 @@ -0,0 +1,3 @@ +source_md5="707fe1be51389c0a7dc6bce6b8df1ad8" +dest_md5="a1f827ff5491bfc85a30898cd8164541" + diff --git a/.godot/imported/BG Image.png-a4c16c98f815c26fe14456abfb54be92.ctex b/.godot/imported/BG Image.png-a4c16c98f815c26fe14456abfb54be92.ctex new file mode 100644 index 0000000000000000000000000000000000000000..224819e708c56d7eaa5264d802882345323fd665 GIT binary patch literal 142 zcmZ<{4l!b6U|?tf5)D8a2zdVk0fY%5nSfLSV*{AO3M9jTILOn@%@0V2yE+Ag1z7kv z0onTX2jv;$6$Cu~oD{pM%&W-wv3{Cz*b9**xd$>I)z0JV%QbpQYW literal 0 HcmV?d00001 diff --git a/.godot/imported/BG Image.png-a4c16c98f815c26fe14456abfb54be92.md5 b/.godot/imported/BG Image.png-a4c16c98f815c26fe14456abfb54be92.md5 new file mode 100644 index 0000000..0a89380 --- /dev/null +++ b/.godot/imported/BG Image.png-a4c16c98f815c26fe14456abfb54be92.md5 @@ -0,0 +1,3 @@ +source_md5="7f10db4045810c42977343e59a782178" +dest_md5="c50c902db0eea75f65be64479d81b3ae" + diff --git a/.godot/imported/Player Death 64x64.png-07d55bb7914f74cde65b4e7813845f63.ctex b/.godot/imported/Player Death 64x64.png-07d55bb7914f74cde65b4e7813845f63.ctex new file mode 100644 index 0000000000000000000000000000000000000000..80fda5e2e955b4e0260f678fd151b8ed2c0595ed GIT binary patch literal 910 zcmV;919ALEQ&chm0002s0RR9n00000000gD|Ns900000000000000020002s0Wbgn z00005000110{{S0Nk&Fa0{{S5MM6+kP&iCM0{{Ro-@ywIx1cDJq^7G7z%NO_3jRMC z52#TZNmA7Aav%mY`Ah7d1`0({g({Mj>=zxVKmhU)3j3JAF@k`g$p6s-{%d&df@=Nn zXcvli;a(0DQo`jA)Z)P@2lP(CfN0xR)JDYw%&1oU|6i@|zNcP+bZ$idCAe)QNfIMs zX7=`EWp~zg|DgI$sXDXxIX_3UQv95sp;;|{&aVOXKK!V=EQR)-~<}Og+h@AYB z}`&&i&W_6gcAtiDlrZ#82kt2>TqgXD6)Qqq3aJw2*;mjXhrNipYfhM_Ya zB&Br5G4{#*eovEi@GxLJb=gH;IrlHRw8~scXCEd7W^cog;b2n0+lSU;GwGa60c#kn z=bTasVHjbXT(7q~)s+Ru!rF&#UOm%@^mDSlGP<}_b>AW1(b z<=0H(SX$>14Y$YRae$a8Z_6Mjk6QHdat_RK@gNyZk@nO2f9eOwASaWD8dZ1Y1U=95 zoorr2DGta=Hp-o29yy7;SFpPhf^t&JNb`OggT_dA1trPJT z^93767`m>@G-th(nzoJ7&%W=uW{OI2_3MjVP@vhMWr$*HDkLErDQ z>A6Nk0#(5+^fAK8>2u1-rIvab7X5~x{Z2^IIX9|nhV`tCj7G`nY-P@A3?k)(*KY7l z0{fM=d~)iM(w>`b$r_0osl`((c24Jvl_ur%R;@@fCqqTn0KHFMBRyqhR`m{RKcgZP kfi5|Dil4JJR+^PFShaE=o_5X;qN>2E?*&!){0^=P0P}0CKL7v# literal 0 HcmV?d00001 diff --git a/.godot/imported/Player Death 64x64.png-07d55bb7914f74cde65b4e7813845f63.md5 b/.godot/imported/Player Death 64x64.png-07d55bb7914f74cde65b4e7813845f63.md5 new file mode 100644 index 0000000..ec35684 --- /dev/null +++ b/.godot/imported/Player Death 64x64.png-07d55bb7914f74cde65b4e7813845f63.md5 @@ -0,0 +1,3 @@ +source_md5="e5256a9ceb0ab699f4b89ff036b2a902" +dest_md5="9cd9459a73f825afbfd37992d6a40bfb" + diff --git a/.godot/imported/Player Idle 48x48.png-066c13364c835b926ef316365230dd27.ctex b/.godot/imported/Player Idle 48x48.png-066c13364c835b926ef316365230dd27.ctex new file mode 100644 index 0000000000000000000000000000000000000000..25ed9e30f1fdb361b59fe3b93662aca9824580af GIT binary patch literal 910 zcmV;919ALEQ&chm0002s0RR9n00000000gD|Ns900000000000000020002s0Wbgn z00005000110{{S0Nk&Fa0{{S5MM6+kP&iCN0{{Ro-@ywIx1cDJq^7G7z%NO_3jRMC z52#TZNmA7Aav%mY`Ah7d1`0({g({Mj>=zxVKmhU)3j3JAF@k`g$p6s-{%d&df@=Nn zXcvli;a(0DQo`jA)Z)P@2lP(CkRaP`)L3SW6EHC}_Wsujk_Zo3bpJ7;{|+Nb4I4-S z3yGy8Tz!xdB3GE7tfk~r_6GmmBOnqCw^~wb6nT`f2IM>?szWvb9BKS>UXN! zTX$8CkH;73b??HR-6zf~o+AKMxWh7>_`T`Mg)z61pkvw2u0zko%fsJep4?$6PW;~R zxtw=C4l5My?7+^W!(EAUMC2$tpH9CMzc+j?r=1dW7`G0^JNplu;q2Xti(XeEJ)h&D z)9H8O_Xf`e;Pk6h!2oCffinP~BerN@jw8)czZ1VVUAgqV_wz!S!!QP;oVe#mSTrif zVc^7BHT zqm?Wgo?|Ia{N9x1(l-sMY>zW-HDT{?9}J(P1ig(GRp<{+!f`7?JXx(_*@XqhE%q|*|wx+ z>P*17I1~1qN;#I{gy$0QxgeZv+Up(5c2-++W}6am#(1_ir#M$mF~FWXo?{_S%-)iC zDEM3~bylR>y%MbmoQn+x%5hGaA9@i^%--Z+)Z{|CmYnZmoF|!^v!#`&GdkQ{Y%oZU zvNM$61nliF7MLTO@(J`vc#SG^GvyD;l9%{+?w!z8v z49o@Ytg72|N>Keyb8@MSaB}9}yxy?6;Lge%XDc{ix!i!$shx{M^*hbUrLw^(wsVp8 kxssuHXQkh%eQ)mDU0|ExdrT_o{ literal 0 HcmV?d00001 diff --git a/.godot/imported/Player Idle 48x48.png-066c13364c835b926ef316365230dd27.md5 b/.godot/imported/Player Idle 48x48.png-066c13364c835b926ef316365230dd27.md5 new file mode 100644 index 0000000..3dd0db8 --- /dev/null +++ b/.godot/imported/Player Idle 48x48.png-066c13364c835b926ef316365230dd27.md5 @@ -0,0 +1,3 @@ +source_md5="25eca82a8943e0cb7df742fc2f8287eb" +dest_md5="40424c46e7e7da6cb6f8f38becacd5fa" + diff --git a/.godot/imported/coin.png-1a4f832699b00a99e538d3c588e44dd9.ctex b/.godot/imported/coin.png-1a4f832699b00a99e538d3c588e44dd9.ctex new file mode 100644 index 0000000000000000000000000000000000000000..f11888e0066345e005cb681bc1ce6d1cab9d58ca GIT binary patch literal 332 zcmZ<{4l!b6U|=`^!~#GJ1ib%&0K$ZjOhD=YRF)OU76EDq@^o|K0n*{FP61&77CsC> zw*LMD%mVrjVhKj|6ZdXhBIF>&b!%Iq*YZCH=f*ZV2%Y#hi<_hCkG$?b>0Qn(EF2TE zZ};A=@M1jT$^7F5Ljdz*JLaqPx_$Oc=U;dHvo4VKoVZ6Qxa|7_{%EOvKYZkWGFk6C zuZz=v%uZoeVm2 zX7Wr)X$9p}hPBK2-g&j1Ie)1(W`#zx(OOPngFwY57p++iGp&TZ7q4)U+G!;G?9?JT zR^e*VyfcNbnR<2_-dM}c$HvmA{#Ccc&-mLn?_3x8AX6)>*zUI-kdDruQbJu^^ OTlar|wg3P99~c3SFoYuj literal 0 HcmV?d00001 diff --git a/.godot/imported/coin.png-1a4f832699b00a99e538d3c588e44dd9.md5 b/.godot/imported/coin.png-1a4f832699b00a99e538d3c588e44dd9.md5 new file mode 100644 index 0000000..a9421a9 --- /dev/null +++ b/.godot/imported/coin.png-1a4f832699b00a99e538d3c588e44dd9.md5 @@ -0,0 +1,3 @@ +source_md5="9972ae36d7f15087663eef880c2522c7" +dest_md5="6323bfa165d4025b36e466114be0533d" + diff --git a/.godot/imported/coin.png-73c91dc4cbca5202b885de6adb8bd3f1.ctex b/.godot/imported/coin.png-73c91dc4cbca5202b885de6adb8bd3f1.ctex new file mode 100644 index 0000000000000000000000000000000000000000..f11888e0066345e005cb681bc1ce6d1cab9d58ca GIT binary patch literal 332 zcmZ<{4l!b6U|=`^!~#GJ1ib%&0K$ZjOhD=YRF)OU76EDq@^o|K0n*{FP61&77CsC> zw*LMD%mVrjVhKj|6ZdXhBIF>&b!%Iq*YZCH=f*ZV2%Y#hi<_hCkG$?b>0Qn(EF2TE zZ};A=@M1jT$^7F5Ljdz*JLaqPx_$Oc=U;dHvo4VKoVZ6Qxa|7_{%EOvKYZkWGFk6C zuZz=v%uZoeVm2 zX7Wr)X$9p}hPBK2-g&j1Ie)1(W`#zx(OOPngFwY57p++iGp&TZ7q4)U+G!;G?9?JT zR^e*VyfcNbnR<2_-dM}c$HvmA{#Ccc&-mLn?_3x8AX6)>*zUI-kdDruQbJu^^ OTlar|wg3P99~c3SFoYuj literal 0 HcmV?d00001 diff --git a/.godot/imported/coin.png-73c91dc4cbca5202b885de6adb8bd3f1.md5 b/.godot/imported/coin.png-73c91dc4cbca5202b885de6adb8bd3f1.md5 new file mode 100644 index 0000000..a9421a9 --- /dev/null +++ b/.godot/imported/coin.png-73c91dc4cbca5202b885de6adb8bd3f1.md5 @@ -0,0 +1,3 @@ +source_md5="9972ae36d7f15087663eef880c2522c7" +dest_md5="6323bfa165d4025b36e466114be0533d" + diff --git a/.godot/imported/coin.png-b04a16f8896ddd41f884de642ba05be4.ctex b/.godot/imported/coin.png-b04a16f8896ddd41f884de642ba05be4.ctex new file mode 100644 index 0000000000000000000000000000000000000000..f11888e0066345e005cb681bc1ce6d1cab9d58ca GIT binary patch literal 332 zcmZ<{4l!b6U|=`^!~#GJ1ib%&0K$ZjOhD=YRF)OU76EDq@^o|K0n*{FP61&77CsC> zw*LMD%mVrjVhKj|6ZdXhBIF>&b!%Iq*YZCH=f*ZV2%Y#hi<_hCkG$?b>0Qn(EF2TE zZ};A=@M1jT$^7F5Ljdz*JLaqPx_$Oc=U;dHvo4VKoVZ6Qxa|7_{%EOvKYZkWGFk6C zuZz=v%uZoeVm2 zX7Wr)X$9p}hPBK2-g&j1Ie)1(W`#zx(OOPngFwY57p++iGp&TZ7q4)U+G!;G?9?JT zR^e*VyfcNbnR<2_-dM}c$HvmA{#Ccc&-mLn?_3x8AX6)>*zUI-kdDruQbJu^^ OTlar|wg3P99~c3SFoYuj literal 0 HcmV?d00001 diff --git a/.godot/imported/coin.png-b04a16f8896ddd41f884de642ba05be4.md5 b/.godot/imported/coin.png-b04a16f8896ddd41f884de642ba05be4.md5 new file mode 100644 index 0000000..a9421a9 --- /dev/null +++ b/.godot/imported/coin.png-b04a16f8896ddd41f884de642ba05be4.md5 @@ -0,0 +1,3 @@ +source_md5="9972ae36d7f15087663eef880c2522c7" +dest_md5="6323bfa165d4025b36e466114be0533d" + diff --git a/.godot/imported/player jump 48x48.png-b869b996dcf5a53b113106c729a33303.ctex b/.godot/imported/player jump 48x48.png-b869b996dcf5a53b113106c729a33303.ctex new file mode 100644 index 0000000000000000000000000000000000000000..dece7b15339b0f1ce6f64e542e27048749978f83 GIT binary patch literal 738 zcmV<80v-KFQ&chm0001x0000m00000000gD|Ns900000000000000020001x05AXm z00005000200ssI~Nk&GZ0ssJ4MM6+kP&iDM0ssInkH8BMx1cDJq^7G7z%NO_3jRMC z52#TZNmA7Aav%mY`Ah7d1`0({g({Mj>=zxVKmhU)3j3JAF@k`g$p6s-{%d&df@=Nn zXcvli;a(0DQo`jA)Z)P@2lP(CkZs#i)mUIa>4*^%@c)0cVOL?5^trx7^dEx2ws9L! z?A?x(vrm}+4*Fs>d@Ze<_a;@ZrQ^Gk-cW1&po8+Px{WbwJwbOZZpd0sqMH_XL#?5M z{{9Fdj84!cpn8{K{AR3X{i|GR<^kszl6yxy`J2E_oU){Qbufv60I%}4-T6$pA?J8_k zW>(@&y6BI5JTen^*^ENeg#>*G@nPXv#mw`(gb+R)E1tWNMdh2lnncW()*Lqxvk#du ztXam~#BDCeO@+YJlAJqd?=#N(9ow1}@IKI_N3A4)JNQg%NzR=y05RXk5!;q!Tu8b# z2?^mi-k>AGxyv~qCut=EgsuZgOHsgk$I$jH#8(_cDSD8oXQ|TQ@p!b5C)9dfg^_a( zgPv7w%?db(3WAZ*1`?tX; zrz#CxbK{iaJ;4=dwaa^POb`?>Qcz$G9Ho?fS7n+YXi~%4W(}-$t&?*p?Yl-V%O1K- zdRPmd3c0S#^`QZ6?Sz(MEg1;Q<&+M)r2$b&IzT}7ksJ~g<_BPOup}x$X_(b1W0Xm0NG#h*=^x?(YD)5` UmXlf)i~2LdFd7oYE-d570698GF#rGn literal 0 HcmV?d00001 diff --git a/.godot/imported/player jump 48x48.png-b869b996dcf5a53b113106c729a33303.md5 b/.godot/imported/player jump 48x48.png-b869b996dcf5a53b113106c729a33303.md5 new file mode 100644 index 0000000..c3a4d5b --- /dev/null +++ b/.godot/imported/player jump 48x48.png-b869b996dcf5a53b113106c729a33303.md5 @@ -0,0 +1,3 @@ +source_md5="32c25d5ee4a6233bebc766fa35137e71" +dest_md5="e2c6a646cfe3495563ee0fd7127f6784" + diff --git a/.godot/imported/player run 48x48.png-6020c5c4d945c2c77d3b3740032a54d3.ctex b/.godot/imported/player run 48x48.png-6020c5c4d945c2c77d3b3740032a54d3.ctex new file mode 100644 index 0000000000000000000000000000000000000000..ccf024fb9f141d30d57d0970beb672e465eadeb7 GIT binary patch literal 1578 zcmV+_2G#jTQ&chm0001h0RR9n00000000gD|Ns900000000000000020001h0Wbgn z000050002;1pok2Nk&HM1pok7MM6+kP&iE91pojqf58h7x1c7Hq^PSdrbxjCGVq`L zctDNPNRpxsgC`I2m)JiI6pEq>K_n^J8B$Pz0OTVS_A!Ds5D*mkKU%d~Ud^qKR-YJ+RAW4xG5uqKqZRAMZljFw5{{OAhF88=5+!l!FKO{+V z!#1--`3md;O5OlTlH|CJ-~dFJ`~Ls80@KZz0Ym4A{zGshNs$!UwRn(~O@DwONpjl; zqya@{g8ctm4|@mfIj5?K{zGuv$dSbA0xn;-Yr-GGf3ilZ8#2N_xL+LGINq9X|Ns8M z{odHdqRzjF4TAUu!M*Yv-=qWDyqIyX&+V<6Hlb|?tv6X^VRaextx ze7--oHyOiZbQGS8cz_XYe7--ow;$U9Ii6+_lTgm>d3A2@gs%^$8Z05XIq%MmG?p6b zQhIw%noBYu;?$E{@6)$sL_ z(ag8dbr~k7mWj*&pALXYM>v*jthZ%Tr zgJ7O#Es4+_(x=BIrOb_MTrRm8U24NQ(#)0SKEdhihxty*#$}tq2M1abi+mSYDI>>O zLa~q%jB1nkG+$E6+?Y0~#(RD~FUIxR*-TY|v`SyUZi za6p@zL(5<`yt7$T$!JinAo1v)Y~=(G(&6uTzwyDdfKVLRwtWYNVZ@qDtEwYD$H@ij z!OBuE1vN)hJ_xj7K-b&F$75M6trI;VCH=SSXe=sHl3h|&N(t*L@05AAKx?by);Cb)|CS zjHQPaSI#N9(7D}iH{C4kb1OeOm4HWMmF^cZ7w0zZ%m z;&K27D^Dd-h*&y@Qy)z7Y-;j|Z`h{_js>hPv>Q1`MkSin6r}{leF|x9R%l-$bR%To zTs**F@KnkSCvF{MrAt9KiA0SlZiI|6p0>-9_$IXj4eKCu3Pc>y;w451wJ(iulpMwATr6&prRh#RKQ!d2_!VHyoqB${Xis3($%EffP6hwW-B zi|o#YHA_ubGudg~Lc&HZFGpg8{xn!wLU4ws<3tEP5O*HTdtN2X>T1Gq7^7tIwQ>Mt zhLNyE+zl$4MCs7a<;C=gVxk!d3KU-bQfWZsGn3wtpoR0E-ver2qf` literal 0 HcmV?d00001 diff --git a/.godot/imported/player run 48x48.png-6020c5c4d945c2c77d3b3740032a54d3.md5 b/.godot/imported/player run 48x48.png-6020c5c4d945c2c77d3b3740032a54d3.md5 new file mode 100644 index 0000000..f9bbe2d --- /dev/null +++ b/.godot/imported/player run 48x48.png-6020c5c4d945c2c77d3b3740032a54d3.md5 @@ -0,0 +1,3 @@ +source_md5="01ad20affe3a719d2248d3eb59a0b3dd" +dest_md5="c7e49f2c0ac84ac6a6d941074f19bd68" + diff --git a/.godot/imported/slime_purple.png-bf0a0059a4be2cb1b3bbf91305f9550d.ctex b/.godot/imported/slime_purple.png-bf0a0059a4be2cb1b3bbf91305f9550d.ctex new file mode 100644 index 0000000000000000000000000000000000000000..e3520a064efa6ec7a91af57b405bcc8cb1ac1cc8 GIT binary patch literal 698 zcmV;r0!95tQ&chm0001B0000;00000000gD|Ns900000000000000020001B07w7; z000050001j0ssI~Nk&F`0ssJ4MM6+kP&iC&0ssInU%(L%Z=fc!)#!IrxH$bgzz8BB zN0o^U1(9q}Cxgmr31PJPD~%*Y8jmLl@*xRAN51DyKv3lWXaNBD|BqDwCQ*PS>%di* z?&o<*3%4G~(e}S>8@OJ1o-{_ z6sXiKqW=)wNKzy@7mhCmUQzuYt@gCpG;Ox++kVN01Lx)i4Xva#pty}}?yjy-X&d_x z<5%Fh%{%9@4I8kH8&(oEHB`0Lb}*+lZdh@HWmXrr**$E&t3B)LJ=Xb7shz=pL*kVONAm^PpxsNJAeL)t*{Kyd>RSXSNuc*z6}e0vLfVj(H;_C~+&~1Dl{Wz1pSq!%ezlSOJMg^Z8Lu*XcBG}-$2o&@ z&fuIIwYj^xn%0LHzY-A&wXUE*b_dJ|)a&~qmEUnA9 z2hn|k0`ZO_mkibRFxPj1xKQ?+myA}zuXcD6#yZ^fDmfiB{PgV~YPESJ^ g&=ArF)GyQe#ONV;fErj{#yvz}88@H~mY6*=0C4g?e*gdg literal 0 HcmV?d00001 diff --git a/.godot/imported/slime_purple.png-bf0a0059a4be2cb1b3bbf91305f9550d.md5 b/.godot/imported/slime_purple.png-bf0a0059a4be2cb1b3bbf91305f9550d.md5 new file mode 100644 index 0000000..f186d88 --- /dev/null +++ b/.godot/imported/slime_purple.png-bf0a0059a4be2cb1b3bbf91305f9550d.md5 @@ -0,0 +1,3 @@ +source_md5="54f57af24a12b9a7016da6f96c55a77d" +dest_md5="d56883b02fd383d0809e6e9ecbe5df3b" + diff --git a/.godot/uid_cache.bin b/.godot/uid_cache.bin index 162fa2eb58e69344523858eca245941237c45498..efd3713b9f65a34e3a99640c98056e21fb29d283 100644 GIT binary patch literal 1139 zcmb1SU|=}-!uV^VjDejbkX@8oY^ATCUX)mnk(peqpH!NYlUkxzke9CNx_SARuH9u4 zn2M5%5=&A+Y6Ly4JVny~7^q;X3CKyTOf6FIOvy=AFtMmGu>hNS?!#`i&=fr^>I)$1 zvr2Od5bFPYGC%gbD^O7x(|oA#zJQDSmQYLOmDS%Bz@ z?+zXO$>JEwz##=v66&Jd78M{bA%?CbJux>GY{(nS^0oH2LtLfMRRFzOl9peT3s$9C zre2l$ysnN9t|~J*KTof?EM2tJg!h8UH48ns3?fz&le5!{@=Nnl^c_=DGD|Y^^Ad9u z!hx|^1PY0+9%ugD{F4lHh}9XKT?x{6^b3F86SE{uHN5(q+!Z`?6Vt&7CdhyOA7Q?N zDl9RSgm7bWer6uXe3)uPu)=+Wu0$Tw2?d$S*`)==`Y@&c=JeMHPUvF5hykzyP#n$D z%C6yYd&-NMA`(;5ODnmiIhnbs@dc$t1vx0W!wietAgMhuFEck0 y6dT3*c=HQUCg9CMro^}bTb}y4>8kP?*;lsa#25hegiC5-Nrr-%NrjmSC>jCvO^YA^ delta 72 zcmey&v519*kAZ<9ZhT`MGYL?v~^nRo75UoU1oyBMep2{fokzCXh3@iSrjC6K76tDnm{ Hr-UW|@_8UB literal 0 HcmV?d00001 diff --git a/graphics/background/Additional Water.png.import b/graphics/background/Additional Water.png.import new file mode 100644 index 0000000..11bf6ee --- /dev/null +++ b/graphics/background/Additional Water.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://byl5umyabyltt" +path="res://.godot/imported/Additional Water.png-bf782f3705a1acaec1e3ab97da39a373.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/background/Additional Water.png" +dest_files=["res://.godot/imported/Additional Water.png-bf782f3705a1acaec1e3ab97da39a373.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 diff --git a/graphics/background/BG Image.png b/graphics/background/BG Image.png new file mode 100644 index 0000000000000000000000000000000000000000..3f2a66cdec1b972eb949fe533eeaa80f766ed3f1 GIT binary patch literal 586 zcmeAS@N?(olHy`uVBq!ia0y~yU~B-g8#vg2B-4g{+(3%4ILO_JVcj{Imp~yFPZ!6K ziaBp@8uBtZ2)H^bgex&#*I3}nq09ARf`ez#j)ZRW#ShB$tIKO_^L{fpoXf0YU@&H3 zQ1D`4STrc8YtR4Ay~l8%p>*Gxm%I!-1&j)|>BJL8*qp)78&qol`;+0G-xy AkpKVy literal 0 HcmV?d00001 diff --git a/graphics/background/BG Image.png.import b/graphics/background/BG Image.png.import new file mode 100644 index 0000000..a63d98d --- /dev/null +++ b/graphics/background/BG Image.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://biqrhb0shtygr" +path="res://.godot/imported/BG Image.png-a4c16c98f815c26fe14456abfb54be92.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/background/BG Image.png" +dest_files=["res://.godot/imported/BG Image.png-a4c16c98f815c26fe14456abfb54be92.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 diff --git a/graphics/pickups/coin.png b/graphics/pickups/coin.png new file mode 100644 index 0000000000000000000000000000000000000000..01ae33d70b398db7f1f7bcafe883a0a469805201 GIT binary patch literal 500 zcmV^r!6hi!Wct>kSmw76A*+mkqIDVjdDL!Rb}5E?Td;C@2y9S zHih2xK(yTWh+gXdrTqK8Uwx^_$MoI4V|67Hn26^Qp-rJ*c_3P5d_*tx|6%^yEznE& zeE6^KHvJ|vI7934d=L#ytZIR)9hxaN1Jm8sZ6_j{Yx1#nTWt!D2<;1?{VNX?M*l~R zzukKP+i+D+FAlB;7qkOXfaGA?&h>EX&+$Oxqgs>{d4C#zhd05hUS`kO@{&+Bb`?-H zKXwYn7Ms9B!`F}PQh%-o65r;4=uy!A4;g>*6iCRL!wF!o{9{X0YM%Mf@U=DvM2}Kx zY#A;!e+4Y{Qh#m^NPMe5dkcj0f5`ZIy8@JYG2kpkh}LrU76{dHI?&Z}2LKX(>v1MX z4k6>OaQ_N1p97frj@jdSpELonJ&y=&3jN9h(K6#Bda3^x^WUBW>`ee7IfzLSUk<|l qVg27u071wNc?u+CjZ6R`YyJS*Ofbr5QwY-l00006ha{(mSDs~=&eemLQhsu5De5)C{a8JIe3wvJ+;t7 zrHbvvg27;Ok>XiYQVE4ttTBeFjoM_}te8c|!|qIHrt@dByV-f4?e_yqH#3{$H|g#? z?>zJFtOx)A00000000000000000000000000000000000?h~e#Z+hk1W%sTV_47V@ zs=JOzTTgp_0Dykm>iFJp@rqk!EA9CK0E*RGfRhT9h9agtKL9|v2eJ-;+R;h}0KMvI zLBkHT(g8pr3b1ap(g8rJT3gUY;&<>h&8%)R?fF}V_BJ~C0o1CVBjBh)rKxyn&)-V4 zx6#QDVAEa%wsJ&7rpI!Dh0ne8zPC;pTIm3w zQ0fuz!)-ZPyIs^+m|7mKbYOFsbOxKG7U15_-OlB!i{94>?Ps}o{Q_Vr4o2%G7#oJ`Ip9}%D2bK2G-+)79C zj@w2L4T`Makpu=1pBxksk*Sw2g&$_^HjrO6CY`|=RnLNc^6|&akH7pTM?PMYg_0xt zcRv(ZUzx-tBI0Z}+s$X4pUaCkUT9#{t>w$FffGK5t&n#vesZ=bQBJ6J=!Z$+2#w`Mgamg^FCmw^Ue9#m4$!)lQy%{v~6p1TRgOL5KH^cpZs?6y=%ke z%vJ6jIi~-@GakdSdrXjLOo9ul&W={YV8{ck2`i-Cz`ZV_1e^6jiLZ3g-6P*sO5qT^+F zzb|Z%dIVf4zLCbxEgFg5(L1-+*6N7WJP|E*M?~k5Fo3c{XI8yih|L32+-It7K}TNj zA?ChZUs{rlQmN)p7O?W%wX1OSnZVcXAR?k0VI}fsOM8Bwz&>a^KNweZ1CJj&w-~n` zXsW~lTq+DpNBc_DD({K!Yt;sd@Om-+idk7Xb#UH{=Le13eompX2x~$9Y-!IgB68~B zyi{J#W;{RWh$LfR<KYVZZqWO8bH?sI@P$~?|dU0L)`^qi#E7$tnRVqHt&p#k4+|J8itGi6`?;Vjl zpOKL{5zF>D;r#Dh{lkce6E%P!f8(`U{=)6N6z;@7-Yvdj;cGcfwZ+%9BX{>hB>MZV$nuSDQ@E3N7X|*9mX4Yo5s`dbL6(2DdxRLn z%dhdsUC5ucs-FKg7T?MM!rRCA4gfsfX#w9wcEVRIt6YF5ZGK9_ix~OK8l6As9B{qu zSlcEsg}29acP_^cDlB{(QsD0yIxjCjy#9St!_$@1_XNH)!Gj0000$4CBvg?)Ed z_vO50>IiWPSm-r%m!<3^wh~P~_4RS~ zpI=Gub+-QhIeq%h`RaxX{5TJNc>dLzfkEQSwe9u4|AzdIT*^2{!A86~-QWe|7ymwB zC>Ti{|81}_`+UPPl@+TN=sEg&On58UrMgnvLQXF0_ys@bQ1@EdnLWo=s>t&5b6*sD zcFMcwU?tm(D_Xg)W-Wc$-E!h}Crjk()1K3gUwWA?xq;Wdw18cHo3k~Zx-$Fb`AU$*-@DD zmGPf?jG6V$dCTQj>{2>(Zt>F0fcfj}50vb4xa*Xko3|y%e%9UPUyOMTg5ncDvEEv- z-pIj{ckVgygWdnMA2Z(bzqjb#^{`seQ^pPQ$9_6a&90O2#S*<mC1;UMyZZkxfN& z@uKHWkGnrH91Z`H^EmwCk41a3FUGWg-!^5J_|wx1K5Uz!#D3x7Zw}ELVrNTt9P8IR z_1(WOXsY%rc>^6i*W&vj&+HC_UuW8s@vbNLPX_a0: + faceLeft = false + + if direction: + velocity.x = direction * SPEED + animated_sprite.flip_h = true if direction <0 else false else: - #facing left - myBullet.transform = marker_left.global_transform - myBullet.setSpeed(-750) - pass - - # Get the input direction and handle the movement/deceleration. - # As good practice, you should replace UI actions with custom gameplay actions. - var direction = Input.get_axis("ui_left", "ui_right") - if direction <0: - faceLeft = true - if direction >0: - faceLeft = false - - if direction: - velocity.x = direction * SPEED - animated_sprite.flip_h = true if direction <0 else false - else: - velocity.x = move_toward(velocity.x, 0, SPEED) - if is_on_floor(): - if direction == 0: - animated_sprite.play("idle") + velocity.x = move_toward(velocity.x, 0, SPEED) + if is_on_floor(): + if direction == 0: + animated_sprite.play("idle") + else: + animated_sprite.play("run") else: - animated_sprite.play("run") - else: - animated_sprite.play("jump") + animated_sprite.play("jump") - move_and_slide() - if right_ray.is_colliding(): - print("right ray is colliding") - var collider = right_ray.get_collider() - #what did we hit? - if collider is Node: - if collider.is_in_group("boxes"): - print("This is a pushable box") - pushRightEnabled = true - pushTarget = collider - else: - pushRightEnabled = false - - if left_ray.is_colliding(): - print("left ray is colliding") - var collider = left_ray.get_collider() - if collider is Node: - if collider.is_in_group("boxes"): - pushLeftEnabled = true - pushTarget = collider - else: - pushLeftEnabled = false - - #loop through the collisions - for i in get_slide_collision_count(): - var c = get_slide_collision(i) - if c.get_collider() is RigidBody2D: - c.get_collider().apply_central_impulse(-c.get_normal()* BUMP_FORCE) + move_and_slide() + if right_ray.is_colliding(): + print("right ray is colliding") + var collider = right_ray.get_collider() + #what did we hit? + if collider is Node: + if collider.is_in_group("boxes"): + print("This is a pushable box") + pushRightEnabled = true + pushTarget = collider + else: + pushRightEnabled = false + + if left_ray.is_colliding(): + print("left ray is colliding") + var collider = left_ray.get_collider() + if collider is Node: + if collider.is_in_group("boxes"): + pushLeftEnabled = true + pushTarget = collider + else: + pushLeftEnabled = false + + #loop through the collisions + for i in get_slide_collision_count(): + var c = get_slide_collision(i) + if c.get_collider() is RigidBody2D: + c.get_collider().apply_central_impulse(-c.get_normal()* BUMP_FORCE) diff --git a/scripts/badguy.gd b/scripts/badguy.gd new file mode 100644 index 0000000..bd59431 --- /dev/null +++ b/scripts/badguy.gd @@ -0,0 +1,40 @@ +extends Area2D + +@export var speed = 60.0 +var direction = 1 + +@onready var right_cast = $RightCast +@onready var left_cast = $LeftCast +@onready var sprite = $AnimatedSprite2D +@onready var right_floor_cast = $RightFloorCast +@onready var left_floor_cast = $LeftFloorCast +@onready var game = %GameController + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + if right_cast.is_colliding(): + if not right_cast.get_collider().is_in_group("player"): + direction = -1 + if left_cast.is_colliding(): + if not left_cast.get_collider().is_in_group("player"): + direction = 1 + if not right_floor_cast.is_colliding(): + direction = -1 + if not left_floor_cast.is_colliding(): + direction = 1 + if direction == -1: + sprite.flip_h = true + else: + sprite.flip_h = false + #movement + position.x += direction * speed * delta + + +func _on_body_entered(body): + if body.is_in_group("player"): + game.playerDeath() diff --git a/scripts/coin.gd b/scripts/coin.gd new file mode 100644 index 0000000..03939fa --- /dev/null +++ b/scripts/coin.gd @@ -0,0 +1,19 @@ +extends Area2D +@onready var game = %GameController + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass + + +func _on_body_entered(body): + if body.is_in_group("player"): + print("somebody entered a coin") + game.coinCollected() + queue_free() diff --git a/scripts/gamecontroller.gd b/scripts/gamecontroller.gd index fbcee54..4231f72 100644 --- a/scripts/gamecontroller.gd +++ b/scripts/gamecontroller.gd @@ -1,8 +1,12 @@ -extends Node2D +extends Node #preloading crate and marker for box trap var myBox = preload("res://scenes/crate.tscn") -@onready var box_trap = $BoxTrap +@onready var box_trap = $"../BoxTrap" +@onready var timer = $Timer +@onready var player = $"../CharacterBody2D" + +var totalCoins = 0 # Called when the node enters the scene tree for the first time. func _ready(): @@ -22,5 +26,16 @@ func _on_area_2d_areatrigger(effect, body): if body.is_in_group("player"): for n in 3: var box = myBox.instantiate() - add_child(box) + owner.add_child(box) box.transform = box_trap.transform + +func coinCollected(): + totalCoins += 1 + print("I have " + str(totalCoins) + " coins") + +func playerDeath(): + player.die() + timer.start() + +func resetWorld(): + get_tree().reload_current_scene()