Added coins, enemies, player death
This commit is contained in:
parent
f2241640ae
commit
660d311752
@ -172,4 +172,4 @@ Anim={
|
|||||||
"zfar": 4000.01,
|
"zfar": 4000.01,
|
||||||
"znear": 0.05
|
"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/TileMap")])
|
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")])
|
||||||
|
@ -172,4 +172,4 @@ Anim={
|
|||||||
"zfar": 4000.01,
|
"zfar": 4000.01,
|
||||||
"znear": 0.05
|
"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/TileMap")])
|
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")])
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
[folding]
|
||||||
|
|
||||||
|
sections_unfolded=PackedStringArray()
|
@ -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(-80.0347, -34.9385),
|
||||||
|
"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": 6.3496
|
||||||
|
}
|
||||||
|
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")])
|
@ -0,0 +1,5 @@
|
|||||||
|
[folding]
|
||||||
|
|
||||||
|
node_unfolds=[NodePath("AnimatedSprite2D"), PackedStringArray("Animation", "sprite_frames"), NodePath("CollisionShape2D"), PackedStringArray("shape")]
|
||||||
|
resource_unfolds=["res://scenes/coin.tscn::SpriteFrames_xm54r", PackedStringArray(), "res://scenes/coin.tscn::CircleShape2D_r45ua", PackedStringArray()]
|
||||||
|
nodes_folded=[]
|
@ -172,4 +172,4 @@ Anim={
|
|||||||
"zfar": 4000.01,
|
"zfar": 4000.01,
|
||||||
"znear": 0.05
|
"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/TileMap")])
|
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")])
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
Node2D
|
Timer
|
||||||
AnimationPlayer
|
RayCast2D
|
||||||
CollisionShape2D
|
CollisionShape2D
|
||||||
AnimatableBody2D
|
|
||||||
Sprite2D
|
|
||||||
Camera2D
|
|
||||||
TileMap
|
|
||||||
Node
|
|
||||||
AnimatedSprite2D
|
AnimatedSprite2D
|
||||||
Area2D
|
Area2D
|
||||||
RayCast2D
|
Label
|
||||||
|
CanvasLayer
|
||||||
|
Node
|
||||||
|
Sprite2D
|
||||||
|
ParallaxLayer
|
||||||
|
ParallaxBackground
|
||||||
|
Node2D
|
||||||
|
AnimationPlayer
|
||||||
|
AnimatableBody2D
|
||||||
|
Camera2D
|
||||||
|
@ -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
|
||||||
@ -19,25 +19,25 @@ 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://scenes/platform.tscn")
|
dock_filesystem_selected_paths=PackedStringArray("res://graphics/playerDeath/")
|
||||||
dock_filesystem_uncollapsed_paths=PackedStringArray("Favorites", "res://", "res://scenes/", "res://graphics/", "res://graphics/items/")
|
dock_filesystem_uncollapsed_paths=PackedStringArray("Favorites", "res://", "res://scenes/", "res://graphics/")
|
||||||
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/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/hud.tscn", "res://scenes/slimeEnemy.tscn")
|
||||||
current_scene="res://scenes/game.tscn"
|
current_scene="res://scenes/game.tscn"
|
||||||
center_split_offset=-403
|
center_split_offset=-272
|
||||||
selected_default_debugger_tab_idx=0
|
selected_default_debugger_tab_idx=0
|
||||||
selected_main_editor_idx=2
|
selected_main_editor_idx=2
|
||||||
selected_bottom_panel_item=11
|
selected_bottom_panel_item=0
|
||||||
|
|
||||||
[ScriptEditor]
|
[ScriptEditor]
|
||||||
|
|
||||||
open_scripts=["res://scripts/bullet.gd", "res://scripts/CharacterBody2D.gd", "res://scripts/gamecontroller.gd", "res://scripts/Trigger.gd"]
|
open_scripts=["res://scripts/bullet.gd", "res://scripts/CharacterBody2D.gd", "res://scripts/coin.gd", "res://scripts/enemy.gd", "res://scripts/gamecontroller.gd", "res://scripts/Trigger.gd"]
|
||||||
selected_script="res://scripts/Trigger.gd"
|
selected_script="res://scripts/gamecontroller.gd"
|
||||||
open_help=[]
|
open_help=[]
|
||||||
script_split_offset=70
|
script_split_offset=70
|
||||||
list_split_offset=0
|
list_split_offset=0
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
[folding]
|
||||||
|
|
||||||
|
sections_unfolded=PackedStringArray()
|
@ -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(-29.4098, -27.5084),
|
||||||
|
"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": 9.51366
|
||||||
|
}
|
||||||
|
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]([])
|
@ -0,0 +1,5 @@
|
|||||||
|
[folding]
|
||||||
|
|
||||||
|
node_unfolds=[NodePath("AnimatedSprite2D"), PackedStringArray("Animation", "sprite_frames", "Texture")]
|
||||||
|
resource_unfolds=["res://scenes/enemy.tscn::SpriteFrames_cmpmq", PackedStringArray(), "res://scenes/enemy.tscn::RectangleShape2D_5m2pq", PackedStringArray()]
|
||||||
|
nodes_folded=[]
|
@ -1,25 +1,41 @@
|
|||||||
ea4bc82a6ad023ab7ee23ee620429895
|
ea4bc82a6ad023ab7ee23ee620429895
|
||||||
::res://::1722291874
|
::res://::1723506637
|
||||||
icon.svg::CompressedTexture2D::9114977118871582245::1722289482::1722289482::1::::<><>::
|
icon.svg::CompressedTexture2D::9114977118871582245::1723500845::1723500845::1::::<><>::
|
||||||
::res://graphics/::1722289482
|
::res://graphics/::1723509999
|
||||||
Terrain (32x32).png::CompressedTexture2D::8707534964839485024::1722289482::1722289482::1::::<><>::
|
Terrain (32x32).png::CompressedTexture2D::8707534964839485024::1723500845::1723500845::1::::<><>::
|
||||||
::res://graphics/items/::1722289482
|
::res://graphics/background/::1723501247
|
||||||
cannister.png::CompressedTexture2D::7418095402531000042::1722289482::1722289482::1::::<><>::
|
Additional Sky.png::CompressedTexture2D::1244579229272977068::1723501247::1723501247::1::::<><>::
|
||||||
::res://graphics/Player Idle/::1722289482
|
Additional Water.png::CompressedTexture2D::5600863291548044975::1723501247::1723501247::1::::<><>::
|
||||||
Player Idle 48x48.png::CompressedTexture2D::6544563428604246579::1722289482::1722289482::1::::<><>::
|
BG Image.png::CompressedTexture2D::8171004012114145580::1723501247::1723501247::1::::<><>::
|
||||||
::res://graphics/Player Jump/::1722289482
|
::res://graphics/enemies/::1723506310
|
||||||
player jump 48x48.png::CompressedTexture2D::1627608568707791839::1722289482::1722289482::1::::<><>::
|
slime_purple.png::CompressedTexture2D::8000128190937998756::1723506310::1723506310::1::::<><>::
|
||||||
::res://graphics/Player Land/::1722289482
|
::res://graphics/items/::1723500845
|
||||||
player land 48x48.png::CompressedTexture2D::3499637713582873633::1722289482::1722289482::1::::<><>::
|
cannister.png::CompressedTexture2D::7418095402531000042::1723500845::1723500845::1::::<><>::
|
||||||
::res://graphics/Player Run/::1722289482
|
::res://graphics/pickups/::1723502333
|
||||||
player run 48x48.png::CompressedTexture2D::1502492849971408816::1722289482::1722289482::1::::<><>::
|
coin.png::CompressedTexture2D::4421146948747862835::1723502331::1723502333::1::::<><>::
|
||||||
::res://scenes/::1722289482
|
::res://graphics/Player Idle/::1723500845
|
||||||
bullet.tscn::PackedScene::6880909734590904373::1722289482::0::1::::<><>::res://scripts/bullet.gd
|
Player Idle 48x48.png::CompressedTexture2D::6544563428604246579::1723500845::1723500845::1::::<><>::
|
||||||
character.tscn::PackedScene::451838158579532324::1722289482::0::1::::<><>::res://scripts/CharacterBody2D.gd<>uid://c0iiaebonyhh0::::res://graphics/Player Idle/Player Idle 48x48.png<>uid://xgoqfqmvorcx::::res://graphics/Player Jump/player jump 48x48.png<>uid://vn23qn3f0dvc::::res://graphics/Player Run/player run 48x48.png
|
::res://graphics/Player Jump/::1723500845
|
||||||
crate.tscn::PackedScene::41931541512830250::1722289482::0::1::::<><>::uid://ddxm7hj323fta::::res://graphics/items/cannister.png
|
player jump 48x48.png::CompressedTexture2D::1627608568707791839::1723500845::1723500845::1::::<><>::
|
||||||
game.tscn::PackedScene::1738196330916037717::1722289482::0::1::::<><>::res://scripts/gamecontroller.gd<>uid://go4yc8hfo1gq::::res://scenes/character.tscn<>uid://dwb83f7uoweuy::::res://graphics/Terrain (32x32).png<>res://scripts/Trigger.gd<>uid://ukuu7p7vhlq::::res://scenes/crate.tscn
|
::res://graphics/Player Land/::1723500845
|
||||||
::res://scripts/::1722289482
|
player land 48x48.png::CompressedTexture2D::3499637713582873633::1723500845::1723500845::1::::<><>::
|
||||||
bullet.gd::GDScript::-1::1722289482::0::1::::<>Area2D<>::
|
::res://graphics/Player Run/::1723500845
|
||||||
CharacterBody2D.gd::GDScript::-1::1722289482::0::1::::<>CharacterBody2D<>::
|
player run 48x48.png::CompressedTexture2D::1502492849971408816::1723500845::1723500845::1::::<><>::
|
||||||
gamecontroller.gd::GDScript::-1::1722289482::0::1::::<>Node2D<>::
|
::res://graphics/playerDeath/::1723510008
|
||||||
Trigger.gd::GDScript::-1::1722289482::0::1::::<>Area2D<>::
|
Player Death 64x64.png::CompressedTexture2D::2301479042922018053::1723510008::1723510008::1::::<><>::
|
||||||
|
::res://scenes/::1723509860
|
||||||
|
bullet.tscn::PackedScene::6880909734590904373::1723509860::0::1::::<><>::res://scripts/bullet.gd<>uid://ddxm7hj323fta::::res://graphics/items/cannister.png
|
||||||
|
character.tscn::PackedScene::451838158579532324::1723509860::0::1::::<><>::res://scripts/CharacterBody2D.gd<>uid://c0iiaebonyhh0::::res://graphics/Player Idle/Player Idle 48x48.png<>uid://xgoqfqmvorcx::::res://graphics/Player Jump/player jump 48x48.png<>uid://vn23qn3f0dvc::::res://graphics/Player Run/player run 48x48.png
|
||||||
|
coin.tscn::PackedScene::2149639666289516704::1723509860::0::1::::<><>::uid://b38vv525jl8cd::::res://graphics/pickups/coin.png<>res://scripts/coin.gd
|
||||||
|
crate.tscn::PackedScene::41931541512830250::1723509860::0::1::::<><>::uid://ddxm7hj323fta::::res://graphics/items/cannister.png
|
||||||
|
game.tscn::PackedScene::1738196330916037717::1723509859::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://c5w3e6gjovcvk::::res://scenes/platform.tscn<>uid://5vkisovypn7u::::res://scenes/coin.tscn<>uid://b07px1qf5obql::::res://scenes/slimeEnemy.tscn
|
||||||
|
hud.tscn::PackedScene::2846083967266652522::1723509860::0::1::::<><>::
|
||||||
|
platform.tscn::PackedScene::6925631844010706180::1723509860::0::1::::<><>::
|
||||||
|
slimeEnemy.tscn::PackedScene::4208155081516926623::1723509860::0::1::::<><>::uid://dl8k7bq5pkuvk::::res://graphics/enemies/slime_purple.png<>res://scripts/enemy.gd
|
||||||
|
::res://scripts/::1723509858
|
||||||
|
bullet.gd::GDScript::-1::1723500845::0::1::::<>Area2D<>::
|
||||||
|
CharacterBody2D.gd::GDScript::-1::1723500845::0::1::::<>CharacterBody2D<>::
|
||||||
|
coin.gd::GDScript::-1::1723504766::0::1::::<>Area2D<>::
|
||||||
|
enemy.gd::GDScript::-1::1723509858::0::1::::<>Area2D<>::
|
||||||
|
gamecontroller.gd::GDScript::-1::1723509637::0::1::::<>Node<>::
|
||||||
|
Trigger.gd::GDScript::-1::1723505746::0::1::::<>Area2D<>::
|
||||||
|
@ -2,7 +2,13 @@ res://scenes/game.tscn
|
|||||||
res://scenes/character.tscn
|
res://scenes/character.tscn
|
||||||
res://scenes/bullet.tscn
|
res://scenes/bullet.tscn
|
||||||
res://scenes/crate.tscn
|
res://scenes/crate.tscn
|
||||||
res://scripts/CharacterBody2D.gd
|
|
||||||
res://scenes/platform.tscn
|
res://scenes/platform.tscn
|
||||||
res://scripts/gamecontroller.gd
|
|
||||||
res://scripts/Trigger.gd
|
res://scripts/Trigger.gd
|
||||||
|
res://scenes/coin.tscn
|
||||||
|
res://scripts/coin.gd
|
||||||
|
res://scripts/gamecontroller.gd
|
||||||
|
res://scenes/hud.tscn
|
||||||
|
res://scenes/enemy.tscn
|
||||||
|
res://scenes/slimeEnemy.tscn
|
||||||
|
res://scripts/enemy.gd
|
||||||
|
res://scripts/CharacterBody2D.gd
|
||||||
|
@ -8,7 +8,7 @@ Anim={
|
|||||||
"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(-396, -224),
|
"ofs": Vector2(-140, -55.5),
|
||||||
"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": 1.0
|
"zoom": 2.0
|
||||||
}
|
}
|
||||||
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@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/TileMap")])
|
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")])
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[folding]
|
[folding]
|
||||||
|
|
||||||
node_unfolds=[NodePath("."), PackedStringArray("Transform"), NodePath("TileMap"), PackedStringArray("tile_set", "Transform"), NodePath("level"), PackedStringArray("Transform"), NodePath("level/StaticBody2D"), PackedStringArray("Transform"), NodePath("AreaTrigger"), PackedStringArray("Transform"), NodePath("Platform"), 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("Platform"), PackedStringArray("Transform"), NodePath("Coins/Area2D"), PackedStringArray("Transform"), NodePath("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("AreaTrigger")]
|
nodes_folded=[NodePath("Coins")]
|
||||||
|
@ -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(-227.029, -169.697),
|
||||||
|
"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.41421
|
||||||
|
}
|
||||||
|
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")])
|
@ -0,0 +1,5 @@
|
|||||||
|
[folding]
|
||||||
|
|
||||||
|
node_unfolds=[NodePath("Coins"), PackedStringArray("Theme", "Theme Overrides", "Theme Overrides/font_sizes", "Theme Overrides/fonts", "Layout")]
|
||||||
|
resource_unfolds=["res://scenes/hud.tscn::SystemFont_g1xe5", PackedStringArray()]
|
||||||
|
nodes_folded=[]
|
@ -172,4 +172,4 @@ Anim={
|
|||||||
"zfar": 4000.01,
|
"zfar": 4000.01,
|
||||||
"znear": 0.05
|
"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/TileMap")])
|
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")])
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[editor_metadata]
|
[editor_metadata]
|
||||||
|
|
||||||
executable_path="/home/timbuntu/Documents/software/godot/Godot_v4.2.1-stable_linux.x86_64"
|
executable_path="/home/timbrah/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
|
||||||
@ -14,8 +14,8 @@ run_debug_collisions=true
|
|||||||
|
|
||||||
[recent_files]
|
[recent_files]
|
||||||
|
|
||||||
scenes=["res://scenes/platform.tscn", "res://scenes/crate.tscn", "res://scenes/bullet.tscn", "res://scenes/character.tscn", "res://scenes/game.tscn"]
|
scenes=["res://scenes/enemy.tscn", "res://scenes/coin.tscn", "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"]
|
scripts=["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]
|
||||||
|
|
||||||
@ -33,10 +33,16 @@ Camera2D:zoom=true
|
|||||||
Camera2D:scale=true
|
Camera2D:scale=true
|
||||||
Sprite2D:scale=true
|
Sprite2D:scale=true
|
||||||
AnimatableBody2D:scale=true
|
AnimatableBody2D:scale=true
|
||||||
|
ParallaxBackground:scroll_base_scale=true
|
||||||
|
ParallaxBackground:scale=true
|
||||||
|
ParallaxLayer:motion_scale=true
|
||||||
|
ParallaxLayer:scale=true
|
||||||
|
Label:scale=true
|
||||||
|
CanvasLayer:scale=true
|
||||||
|
|
||||||
[dialog_bounds]
|
[dialog_bounds]
|
||||||
|
|
||||||
create_new_node=Rect2(354, 283, 900, 700)
|
create_new_node=Rect2(354, 197, 900, 883)
|
||||||
project_settings=Rect2(510, 190, 900, 700)
|
project_settings=Rect2(510, 190, 900, 700)
|
||||||
|
|
||||||
[color_picker]
|
[color_picker]
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
|
res://graphics/playerDeath
|
||||||
|
res://scripts
|
||||||
|
res://graphics/enemies
|
||||||
res://scenes
|
res://scenes
|
||||||
|
res://graphics/pickups
|
||||||
res://graphics/Player Jump
|
res://graphics/Player Jump
|
||||||
res://graphics/Player Run
|
res://graphics/Player Run
|
||||||
res://graphics/Player Idle
|
res://graphics/Player Idle
|
||||||
res://scripts
|
|
||||||
|
@ -6,8 +6,8 @@ state={
|
|||||||
"column": 0,
|
"column": 0,
|
||||||
"folded_lines": Array[int]([]),
|
"folded_lines": Array[int]([]),
|
||||||
"h_scroll_position": 0,
|
"h_scroll_position": 0,
|
||||||
"row": 14,
|
"row": 28,
|
||||||
"scroll_position": 7.0,
|
"scroll_position": 16.0,
|
||||||
"selection": false,
|
"selection": false,
|
||||||
"syntax_highlighter": "GDScript"
|
"syntax_highlighter": "GDScript"
|
||||||
}
|
}
|
||||||
@ -17,11 +17,11 @@ state={
|
|||||||
state={
|
state={
|
||||||
"bookmarks": PackedInt32Array(),
|
"bookmarks": PackedInt32Array(),
|
||||||
"breakpoints": PackedInt32Array(),
|
"breakpoints": PackedInt32Array(),
|
||||||
"column": 29,
|
"column": 0,
|
||||||
"folded_lines": Array[int]([]),
|
"folded_lines": Array[int]([]),
|
||||||
"h_scroll_position": 0,
|
"h_scroll_position": 0,
|
||||||
"row": 100,
|
"row": 38,
|
||||||
"scroll_position": 86.0,
|
"scroll_position": 15.0,
|
||||||
"selection": false,
|
"selection": false,
|
||||||
"syntax_highlighter": "GDScript"
|
"syntax_highlighter": "GDScript"
|
||||||
}
|
}
|
||||||
@ -31,7 +31,7 @@ state={
|
|||||||
state={
|
state={
|
||||||
"bookmarks": PackedInt32Array(),
|
"bookmarks": PackedInt32Array(),
|
||||||
"breakpoints": PackedInt32Array(),
|
"breakpoints": PackedInt32Array(),
|
||||||
"column": 14,
|
"column": 8,
|
||||||
"folded_lines": Array[int]([]),
|
"folded_lines": Array[int]([]),
|
||||||
"h_scroll_position": 0,
|
"h_scroll_position": 0,
|
||||||
"row": 13,
|
"row": 13,
|
||||||
@ -45,11 +45,39 @@ state={
|
|||||||
state={
|
state={
|
||||||
"bookmarks": PackedInt32Array(),
|
"bookmarks": PackedInt32Array(),
|
||||||
"breakpoints": PackedInt32Array(),
|
"breakpoints": PackedInt32Array(),
|
||||||
"column": 28,
|
"column": 34,
|
||||||
"folded_lines": Array[int]([]),
|
"folded_lines": Array[int]([]),
|
||||||
"h_scroll_position": 0,
|
"h_scroll_position": 0,
|
||||||
"row": 2,
|
"row": 3,
|
||||||
"scroll_position": 0.0,
|
"scroll_position": 0.0,
|
||||||
"selection": false,
|
"selection": false,
|
||||||
"syntax_highlighter": "GDScript"
|
"syntax_highlighter": "GDScript"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[res://scripts/coin.gd]
|
||||||
|
|
||||||
|
state={
|
||||||
|
"bookmarks": PackedInt32Array(),
|
||||||
|
"breakpoints": PackedInt32Array(),
|
||||||
|
"column": 26,
|
||||||
|
"folded_lines": Array[int]([]),
|
||||||
|
"h_scroll_position": 0,
|
||||||
|
"row": 16,
|
||||||
|
"scroll_position": 0.0,
|
||||||
|
"selection": false,
|
||||||
|
"syntax_highlighter": "GDScript"
|
||||||
|
}
|
||||||
|
|
||||||
|
[res://scripts/enemy.gd]
|
||||||
|
|
||||||
|
state={
|
||||||
|
"bookmarks": PackedInt32Array(),
|
||||||
|
"breakpoints": PackedInt32Array(),
|
||||||
|
"column": 0,
|
||||||
|
"folded_lines": Array[int]([]),
|
||||||
|
"h_scroll_position": 0,
|
||||||
|
"row": 37,
|
||||||
|
"scroll_position": 19.0,
|
||||||
|
"selection": false,
|
||||||
|
"syntax_highlighter": "GDScript"
|
||||||
|
}
|
||||||
|
@ -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(-72.6591, -20.6514),
|
||||||
|
"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.12719
|
||||||
|
}
|
||||||
|
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")])
|
@ -0,0 +1,5 @@
|
|||||||
|
[folding]
|
||||||
|
|
||||||
|
node_unfolds=[NodePath("."), PackedStringArray("Transform"), NodePath("AnimatedSprite2D"), PackedStringArray("Animation", "Transform", "Texture", "sprite_frames")]
|
||||||
|
resource_unfolds=["res://scenes/slimeEnemy.tscn::SpriteFrames_cmpmq", PackedStringArray(), "res://scenes/slimeEnemy.tscn::RectangleShape2D_5m2pq", PackedStringArray()]
|
||||||
|
nodes_folded=[]
|
Binary file not shown.
@ -0,0 +1,3 @@
|
|||||||
|
source_md5="ef05607ab18b6e14047ef305d4967bca"
|
||||||
|
dest_md5="c4a79c607243be25d3669dc2144fdbe8"
|
||||||
|
|
Binary file not shown.
@ -0,0 +1,3 @@
|
|||||||
|
source_md5="707fe1be51389c0a7dc6bce6b8df1ad8"
|
||||||
|
dest_md5="a1f827ff5491bfc85a30898cd8164541"
|
||||||
|
|
Binary file not shown.
@ -0,0 +1,3 @@
|
|||||||
|
source_md5="7f10db4045810c42977343e59a782178"
|
||||||
|
dest_md5="c50c902db0eea75f65be64479d81b3ae"
|
||||||
|
|
Binary file not shown.
@ -0,0 +1,3 @@
|
|||||||
|
source_md5="e5256a9ceb0ab699f4b89ff036b2a902"
|
||||||
|
dest_md5="9cd9459a73f825afbfd37992d6a40bfb"
|
||||||
|
|
BIN
.godot/imported/coin.png-1a4f832699b00a99e538d3c588e44dd9.ctex
Normal file
BIN
.godot/imported/coin.png-1a4f832699b00a99e538d3c588e44dd9.ctex
Normal file
Binary file not shown.
@ -0,0 +1,3 @@
|
|||||||
|
source_md5="9972ae36d7f15087663eef880c2522c7"
|
||||||
|
dest_md5="6323bfa165d4025b36e466114be0533d"
|
||||||
|
|
BIN
.godot/imported/coin.png-b04a16f8896ddd41f884de642ba05be4.ctex
Normal file
BIN
.godot/imported/coin.png-b04a16f8896ddd41f884de642ba05be4.ctex
Normal file
Binary file not shown.
@ -0,0 +1,3 @@
|
|||||||
|
source_md5="9972ae36d7f15087663eef880c2522c7"
|
||||||
|
dest_md5="6323bfa165d4025b36e466114be0533d"
|
||||||
|
|
Binary file not shown.
@ -0,0 +1,3 @@
|
|||||||
|
source_md5="54f57af24a12b9a7016da6f96c55a77d"
|
||||||
|
dest_md5="d56883b02fd383d0809e6e9ecbe5df3b"
|
||||||
|
|
Binary file not shown.
BIN
graphics/background/Additional Sky.png
Normal file
BIN
graphics/background/Additional Sky.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 123 B |
34
graphics/background/Additional Sky.png.import
Normal file
34
graphics/background/Additional Sky.png.import
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://ry5bkalocmx5"
|
||||||
|
path="res://.godot/imported/Additional Sky.png-0c545090cde9f2fc7e943a672b099c59.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://graphics/background/Additional Sky.png"
|
||||||
|
dest_files=["res://.godot/imported/Additional Sky.png-0c545090cde9f2fc7e943a672b099c59.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
BIN
graphics/background/Additional Water.png
Normal file
BIN
graphics/background/Additional Water.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 122 B |
34
graphics/background/Additional Water.png.import
Normal file
34
graphics/background/Additional Water.png.import
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://cl2dnusewe0ch"
|
||||||
|
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
|
BIN
graphics/background/BG Image.png
Normal file
BIN
graphics/background/BG Image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 586 B |
34
graphics/background/BG Image.png.import
Normal file
34
graphics/background/BG Image.png.import
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://doodiicuxeb53"
|
||||||
|
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
|
BIN
graphics/enemies/slime_purple.png
Normal file
BIN
graphics/enemies/slime_purple.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
34
graphics/enemies/slime_purple.png.import
Normal file
34
graphics/enemies/slime_purple.png.import
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://dl8k7bq5pkuvk"
|
||||||
|
path="res://.godot/imported/slime_purple.png-680c7cb80731795ced97a298ff076baf.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://graphics/enemies/slime_purple.png"
|
||||||
|
dest_files=["res://.godot/imported/slime_purple.png-680c7cb80731795ced97a298ff076baf.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
BIN
graphics/pickups/coin.png
Normal file
BIN
graphics/pickups/coin.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 500 B |
34
graphics/pickups/coin.png.import
Normal file
34
graphics/pickups/coin.png.import
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://b38vv525jl8cd"
|
||||||
|
path="res://.godot/imported/coin.png-b04a16f8896ddd41f884de642ba05be4.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://graphics/pickups/coin.png"
|
||||||
|
dest_files=["res://.godot/imported/coin.png-b04a16f8896ddd41f884de642ba05be4.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
BIN
graphics/playerDeath/Player Death 64x64.png
Normal file
BIN
graphics/playerDeath/Player Death 64x64.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
34
graphics/playerDeath/Player Death 64x64.png.import
Normal file
34
graphics/playerDeath/Player Death 64x64.png.import
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://714a2jbwrdbp"
|
||||||
|
path="res://.godot/imported/Player Death 64x64.png-b27a82ad5dca6ad87719150e2a41e821.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://graphics/playerDeath/Player Death 64x64.png"
|
||||||
|
dest_files=["res://.godot/imported/Player Death 64x64.png-b27a82ad5dca6ad87719150e2a41e821.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
|
@ -1,10 +1,51 @@
|
|||||||
[gd_scene load_steps=28 format=3 uid="uid://go4yc8hfo1gq"]
|
[gd_scene load_steps=39 format=3 uid="uid://go4yc8hfo1gq"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://scripts/CharacterBody2D.gd" id="1_x87yo"]
|
[ext_resource type="Script" path="res://scripts/CharacterBody2D.gd" id="1_x87yo"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://714a2jbwrdbp" path="res://graphics/playerDeath/Player Death 64x64.png" id="2_gg54n"]
|
||||||
[ext_resource type="Texture2D" uid="uid://c0iiaebonyhh0" path="res://graphics/Player Idle/Player Idle 48x48.png" id="2_hyqch"]
|
[ext_resource type="Texture2D" uid="uid://c0iiaebonyhh0" path="res://graphics/Player Idle/Player Idle 48x48.png" id="2_hyqch"]
|
||||||
[ext_resource type="Texture2D" uid="uid://xgoqfqmvorcx" path="res://graphics/Player Jump/player jump 48x48.png" id="3_mp84c"]
|
[ext_resource type="Texture2D" uid="uid://xgoqfqmvorcx" path="res://graphics/Player Jump/player jump 48x48.png" id="3_mp84c"]
|
||||||
[ext_resource type="Texture2D" uid="uid://vn23qn3f0dvc" path="res://graphics/Player Run/player run 48x48.png" id="4_bok64"]
|
[ext_resource type="Texture2D" uid="uid://vn23qn3f0dvc" path="res://graphics/Player Run/player run 48x48.png" id="4_bok64"]
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_eawrl"]
|
||||||
|
atlas = ExtResource("2_gg54n")
|
||||||
|
region = Rect2(0, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_8uxgh"]
|
||||||
|
atlas = ExtResource("2_gg54n")
|
||||||
|
region = Rect2(48, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2vbai"]
|
||||||
|
atlas = ExtResource("2_gg54n")
|
||||||
|
region = Rect2(96, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ekybb"]
|
||||||
|
atlas = ExtResource("2_gg54n")
|
||||||
|
region = Rect2(144, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_aq2t0"]
|
||||||
|
atlas = ExtResource("2_gg54n")
|
||||||
|
region = Rect2(192, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_7gx0v"]
|
||||||
|
atlas = ExtResource("2_gg54n")
|
||||||
|
region = Rect2(240, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_lqk3s"]
|
||||||
|
atlas = ExtResource("2_gg54n")
|
||||||
|
region = Rect2(288, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_4pmeq"]
|
||||||
|
atlas = ExtResource("2_gg54n")
|
||||||
|
region = Rect2(336, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_l14r3"]
|
||||||
|
atlas = ExtResource("2_gg54n")
|
||||||
|
region = Rect2(384, 0, 48, 48)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_hw4pw"]
|
||||||
|
atlas = ExtResource("2_gg54n")
|
||||||
|
region = Rect2(432, 0, 48, 48)
|
||||||
|
|
||||||
[sub_resource type="AtlasTexture" id="AtlasTexture_htcu2"]
|
[sub_resource type="AtlasTexture" id="AtlasTexture_htcu2"]
|
||||||
atlas = ExtResource("2_hyqch")
|
atlas = ExtResource("2_hyqch")
|
||||||
region = Rect2(0, 0, 48, 48)
|
region = Rect2(0, 0, 48, 48)
|
||||||
@ -93,6 +134,41 @@ region = Rect2(336, 0, 48, 48)
|
|||||||
animations = [{
|
animations = [{
|
||||||
"frames": [{
|
"frames": [{
|
||||||
"duration": 1.0,
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_eawrl")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_8uxgh")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_2vbai")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_ekybb")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_aq2t0")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_7gx0v")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_lqk3s")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_4pmeq")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_l14r3")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_hw4pw")
|
||||||
|
}],
|
||||||
|
"loop": false,
|
||||||
|
"name": &"death",
|
||||||
|
"speed": 15.0
|
||||||
|
}, {
|
||||||
|
"frames": [{
|
||||||
|
"duration": 1.0,
|
||||||
"texture": SubResource("AtlasTexture_htcu2")
|
"texture": SubResource("AtlasTexture_htcu2")
|
||||||
}, {
|
}, {
|
||||||
"duration": 1.0,
|
"duration": 1.0,
|
||||||
@ -182,8 +258,10 @@ metadata/_edit_group_ = true
|
|||||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||||
texture_filter = 1
|
texture_filter = 1
|
||||||
sprite_frames = SubResource("SpriteFrames_a6t6h")
|
sprite_frames = SubResource("SpriteFrames_a6t6h")
|
||||||
animation = &"idle"
|
animation = &"death"
|
||||||
autoplay = "idle"
|
autoplay = "idle"
|
||||||
|
frame = 9
|
||||||
|
frame_progress = 1.0
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
position = Vector2(0, 3)
|
position = Vector2(0, 3)
|
||||||
|
114
scenes/coin.tscn
Normal file
114
scenes/coin.tscn
Normal file
@ -0,0 +1,114 @@
|
|||||||
|
[gd_scene load_steps=17 format=3 uid="uid://5vkisovypn7u"]
|
||||||
|
|
||||||
|
[ext_resource type="Texture2D" uid="uid://b38vv525jl8cd" path="res://graphics/pickups/coin.png" id="1_2y2ug"]
|
||||||
|
[ext_resource type="Script" path="res://scripts/coin.gd" id="1_r77r7"]
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_s13tt"]
|
||||||
|
atlas = ExtResource("1_2y2ug")
|
||||||
|
region = Rect2(0, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_unjf0"]
|
||||||
|
atlas = ExtResource("1_2y2ug")
|
||||||
|
region = Rect2(16, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_o3g5t"]
|
||||||
|
atlas = ExtResource("1_2y2ug")
|
||||||
|
region = Rect2(32, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jdjim"]
|
||||||
|
atlas = ExtResource("1_2y2ug")
|
||||||
|
region = Rect2(48, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2ioij"]
|
||||||
|
atlas = ExtResource("1_2y2ug")
|
||||||
|
region = Rect2(64, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_tq0rv"]
|
||||||
|
atlas = ExtResource("1_2y2ug")
|
||||||
|
region = Rect2(80, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ibt7n"]
|
||||||
|
atlas = ExtResource("1_2y2ug")
|
||||||
|
region = Rect2(96, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_8f32r"]
|
||||||
|
atlas = ExtResource("1_2y2ug")
|
||||||
|
region = Rect2(112, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2e8ei"]
|
||||||
|
atlas = ExtResource("1_2y2ug")
|
||||||
|
region = Rect2(128, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_l8fb8"]
|
||||||
|
atlas = ExtResource("1_2y2ug")
|
||||||
|
region = Rect2(144, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_q5swd"]
|
||||||
|
atlas = ExtResource("1_2y2ug")
|
||||||
|
region = Rect2(160, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_x8igk"]
|
||||||
|
atlas = ExtResource("1_2y2ug")
|
||||||
|
region = Rect2(176, 0, 16, 16)
|
||||||
|
|
||||||
|
[sub_resource type="SpriteFrames" id="SpriteFrames_xm54r"]
|
||||||
|
animations = [{
|
||||||
|
"frames": [{
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_s13tt")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_unjf0")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_o3g5t")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_jdjim")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_2ioij")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_tq0rv")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_ibt7n")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_8f32r")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_2e8ei")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_l8fb8")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_q5swd")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_x8igk")
|
||||||
|
}],
|
||||||
|
"loop": true,
|
||||||
|
"name": &"default",
|
||||||
|
"speed": 12.0
|
||||||
|
}]
|
||||||
|
|
||||||
|
[sub_resource type="CircleShape2D" id="CircleShape2D_r45ua"]
|
||||||
|
radius = 5.09902
|
||||||
|
|
||||||
|
[node name="Coin" type="Area2D"]
|
||||||
|
script = ExtResource("1_r77r7")
|
||||||
|
|
||||||
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||||
|
texture_filter = 1
|
||||||
|
sprite_frames = SubResource("SpriteFrames_xm54r")
|
||||||
|
autoplay = "default"
|
||||||
|
frame = 4
|
||||||
|
frame_progress = 0.902593
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
|
shape = SubResource("CircleShape2D_r45ua")
|
||||||
|
|
||||||
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
115
scenes/game.tscn
115
scenes/game.tscn
@ -1,11 +1,16 @@
|
|||||||
[gd_scene load_steps=14 format=3 uid="uid://y083suj12rld"]
|
[gd_scene load_steps=19 format=3 uid="uid://y083suj12rld"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://scripts/gamecontroller.gd" id="1_77wyw"]
|
[ext_resource type="Script" path="res://scripts/gamecontroller.gd" id="1_77wyw"]
|
||||||
[ext_resource type="PackedScene" uid="uid://go4yc8hfo1gq" path="res://scenes/character.tscn" id="2_64ccm"]
|
[ext_resource type="PackedScene" uid="uid://go4yc8hfo1gq" path="res://scenes/character.tscn" id="2_64ccm"]
|
||||||
[ext_resource type="Texture2D" uid="uid://dwb83f7uoweuy" path="res://graphics/Terrain (32x32).png" id="2_l22q1"]
|
[ext_resource type="Texture2D" uid="uid://dwb83f7uoweuy" path="res://graphics/Terrain (32x32).png" id="2_l22q1"]
|
||||||
[ext_resource type="Script" path="res://scripts/Trigger.gd" id="2_nfj1w"]
|
[ext_resource type="Script" path="res://scripts/Trigger.gd" id="2_nfj1w"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://doodiicuxeb53" path="res://graphics/background/BG Image.png" id="3_1agog"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://ry5bkalocmx5" path="res://graphics/background/Additional Sky.png" id="4_g10bt"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://cl2dnusewe0ch" path="res://graphics/background/Additional Water.png" id="5_ax33h"]
|
||||||
[ext_resource type="PackedScene" uid="uid://ukuu7p7vhlq" path="res://scenes/crate.tscn" id="5_u8rgi"]
|
[ext_resource type="PackedScene" uid="uid://ukuu7p7vhlq" path="res://scenes/crate.tscn" id="5_u8rgi"]
|
||||||
[ext_resource type="PackedScene" uid="uid://c5w3e6gjovcvk" path="res://scenes/platform.tscn" id="6_0ewk8"]
|
[ext_resource type="PackedScene" uid="uid://c5w3e6gjovcvk" path="res://scenes/platform.tscn" id="6_0ewk8"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://5vkisovypn7u" path="res://scenes/coin.tscn" id="10_vh708"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://b07px1qf5obql" path="res://scenes/slimeEnemy.tscn" id="11_gnd6o"]
|
||||||
|
|
||||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_xg6qs"]
|
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_xg6qs"]
|
||||||
texture = ExtResource("2_l22q1")
|
texture = ExtResource("2_l22q1")
|
||||||
@ -482,6 +487,21 @@ sources/0 = SubResource("TileSetAtlasSource_xg6qs")
|
|||||||
[sub_resource type="CircleShape2D" id="CircleShape2D_x8qck"]
|
[sub_resource type="CircleShape2D" id="CircleShape2D_x8qck"]
|
||||||
radius = 60.2993
|
radius = 60.2993
|
||||||
|
|
||||||
|
[sub_resource type="Animation" id="Animation_spruu"]
|
||||||
|
length = 0.001
|
||||||
|
tracks/0/type = "value"
|
||||||
|
tracks/0/imported = false
|
||||||
|
tracks/0/enabled = true
|
||||||
|
tracks/0/path = NodePath(".:position")
|
||||||
|
tracks/0/interp = 1
|
||||||
|
tracks/0/loop_wrap = true
|
||||||
|
tracks/0/keys = {
|
||||||
|
"times": PackedFloat32Array(0),
|
||||||
|
"transitions": PackedFloat32Array(1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Vector2(0, 0)]
|
||||||
|
}
|
||||||
|
|
||||||
[sub_resource type="Animation" id="Animation_qecmg"]
|
[sub_resource type="Animation" id="Animation_qecmg"]
|
||||||
resource_name = "move"
|
resource_name = "move"
|
||||||
loop_mode = 2
|
loop_mode = 2
|
||||||
@ -498,21 +518,6 @@ tracks/0/keys = {
|
|||||||
"values": [Vector2(0, 0), Vector2(100, 0)]
|
"values": [Vector2(0, 0), Vector2(100, 0)]
|
||||||
}
|
}
|
||||||
|
|
||||||
[sub_resource type="Animation" id="Animation_spruu"]
|
|
||||||
length = 0.001
|
|
||||||
tracks/0/type = "value"
|
|
||||||
tracks/0/imported = false
|
|
||||||
tracks/0/enabled = true
|
|
||||||
tracks/0/path = NodePath(".:position")
|
|
||||||
tracks/0/interp = 1
|
|
||||||
tracks/0/loop_wrap = true
|
|
||||||
tracks/0/keys = {
|
|
||||||
"times": PackedFloat32Array(0),
|
|
||||||
"transitions": PackedFloat32Array(1),
|
|
||||||
"update": 0,
|
|
||||||
"values": [Vector2(0, 0)]
|
|
||||||
}
|
|
||||||
|
|
||||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_3nvvt"]
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_3nvvt"]
|
||||||
_data = {
|
_data = {
|
||||||
"RESET": SubResource("Animation_spruu"),
|
"RESET": SubResource("Animation_spruu"),
|
||||||
@ -520,13 +525,37 @@ _data = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[node name="Game" type="Node2D"]
|
[node name="Game" type="Node2D"]
|
||||||
|
|
||||||
|
[node name="GameController" type="Node" parent="."]
|
||||||
|
unique_name_in_owner = true
|
||||||
script = ExtResource("1_77wyw")
|
script = ExtResource("1_77wyw")
|
||||||
|
|
||||||
|
[node name="Timer" type="Timer" parent="GameController"]
|
||||||
|
|
||||||
[node name="TileMap" type="TileMap" parent="."]
|
[node name="TileMap" type="TileMap" parent="."]
|
||||||
tile_set = SubResource("TileSet_47g5u")
|
tile_set = SubResource("TileSet_47g5u")
|
||||||
format = 2
|
format = 2
|
||||||
layer_0/tile_data = PackedInt32Array(327682, 0, 4, 327683, 65536, 4, 327684, 65536, 4, 327685, 65536, 4, 327686, 65536, 4, 327687, 65536, 4, 327688, 65536, 4, 327689, 65536, 4, 327690, 655360, 4, 262154, 0, 0, 262155, 589824, 3, 262156, 655360, 3, 327692, 65536, 2, 327691, 655360, 4, 327693, 655360, 4, 262157, 458752, 1, 196621, 393216, 4, 131085, 0, 0, 131086, 131072, 0, 196622, 131072, 1, 262158, 131072, 1, 327694, 131072, 2, 196624, 0, 4, 196625, 65536, 4, 196626, 65536, 4, 196627, 65536, 4, 196628, 131072, 4, 393215, 131072, 4, 393214, 65536, 4, 393213, 65536, 4, 393212, 0, 4, 131072, 0, 4, 131073, 65536, 4, 131074, 131072, 4, 65543, 0, 4, 65544, 65536, 4, 65545, 131072, 4, 65559, 0, 0, 131095, 0, 2, 131098, 131072, 2, 65562, 131072, 0, 65561, 65536, 0, 65560, 65536, 0, 131096, 65536, 2, 131097, 65536, 2, -131060, 0, 4, -131059, 65536, 4, -131058, 65536, 4, -131057, 131072, 4, -196589, 262144, 0, -131053, 262144, 1, -65517, 262144, 2, 65528, 786432, 3, 131064, 262144, 1, 196600, 983040, 4, 196601, 65536, 4, 196602, 65536, 4, 196603, 131072, 4, -8, 0, 0, -7, 851968, 3, -6, 65536, 4, -5, 131072, 4, 65529, 1048576, 4)
|
layer_0/tile_data = PackedInt32Array(327682, 0, 4, 327683, 65536, 4, 327684, 65536, 4, 327685, 65536, 4, 327686, 65536, 4, 327687, 65536, 4, 327688, 65536, 4, 327689, 65536, 4, 327690, 655360, 4, 262154, 0, 0, 262155, 589824, 3, 262156, 655360, 3, 327692, 65536, 2, 327691, 655360, 4, 327693, 655360, 4, 262157, 458752, 1, 196621, 393216, 4, 131085, 0, 0, 131086, 131072, 0, 196622, 131072, 1, 262158, 131072, 1, 327694, 131072, 2, 196624, 0, 4, 196625, 65536, 4, 196626, 65536, 4, 196627, 65536, 4, 196628, 131072, 4, 393215, 131072, 4, 393214, 65536, 4, 393213, 65536, 4, 393212, 0, 4, 131072, 0, 4, 131073, 65536, 4, 131074, 131072, 4, 65543, 0, 4, 65544, 65536, 4, 65545, 131072, 4, 65559, 0, 0, 131095, 0, 2, 131098, 131072, 2, 65562, 131072, 0, 65561, 65536, 0, 65560, 65536, 0, 131096, 65536, 2, 131097, 65536, 2, -131060, 0, 4, -131059, 65536, 4, -131058, 65536, 4, -131057, 131072, 4, -196589, 262144, 0, -131053, 262144, 1, -65517, 262144, 2, 65528, 786432, 3, 131064, 262144, 1, 196600, 983040, 4, 196601, 65536, 4, 196602, 65536, 4, 196603, 131072, 4, -8, 0, 0, -7, 851968, 3, -6, 65536, 4, -5, 131072, 4, 65529, 1048576, 4)
|
||||||
|
|
||||||
|
[node name="ParallaxBackground" type="ParallaxBackground" parent="."]
|
||||||
|
|
||||||
|
[node name="ParallaxLayer" type="ParallaxLayer" parent="ParallaxBackground"]
|
||||||
|
motion_mirroring = Vector2(324, 0)
|
||||||
|
|
||||||
|
[node name="Sprite2D" type="Sprite2D" parent="ParallaxBackground/ParallaxLayer"]
|
||||||
|
position = Vector2(150, 50)
|
||||||
|
texture = ExtResource("3_1agog")
|
||||||
|
|
||||||
|
[node name="Sprite2D2" type="Sprite2D" parent="ParallaxBackground/ParallaxLayer"]
|
||||||
|
position = Vector2(150, -161)
|
||||||
|
scale = Vector2(12.0312, 9.3125)
|
||||||
|
texture = ExtResource("4_g10bt")
|
||||||
|
|
||||||
|
[node name="Sprite2D3" type="Sprite2D" parent="ParallaxBackground/ParallaxLayer"]
|
||||||
|
position = Vector2(150.5, 212)
|
||||||
|
scale = Vector2(11.9688, 7.1875)
|
||||||
|
texture = ExtResource("5_ax33h")
|
||||||
|
|
||||||
[node name="level" type="Node2D" parent="."]
|
[node name="level" type="Node2D" parent="."]
|
||||||
|
|
||||||
[node name="StaticBody2D" type="StaticBody2D" parent="level"]
|
[node name="StaticBody2D" type="StaticBody2D" parent="level"]
|
||||||
@ -537,13 +566,13 @@ metadata/_edit_group_ = true
|
|||||||
shape = SubResource("WorldBoundaryShape2D_3u4a8")
|
shape = SubResource("WorldBoundaryShape2D_3u4a8")
|
||||||
|
|
||||||
[node name="CharacterBody2D" parent="." groups=["player"] instance=ExtResource("2_64ccm")]
|
[node name="CharacterBody2D" parent="." groups=["player"] instance=ExtResource("2_64ccm")]
|
||||||
position = Vector2(41, 43)
|
position = Vector2(340, 90)
|
||||||
PUSH_FORCE = 550
|
PUSH_FORCE = 550
|
||||||
|
|
||||||
[node name="Camera2D" type="Camera2D" parent="CharacterBody2D"]
|
[node name="Camera2D" type="Camera2D" parent="CharacterBody2D"]
|
||||||
|
|
||||||
[node name="AreaTrigger" type="Area2D" parent="."]
|
[node name="AreaTrigger" type="Area2D" parent="."]
|
||||||
position = Vector2(274, 22)
|
position = Vector2(274, -1)
|
||||||
script = ExtResource("2_nfj1w")
|
script = ExtResource("2_nfj1w")
|
||||||
metadata/_edit_group_ = true
|
metadata/_edit_group_ = true
|
||||||
|
|
||||||
@ -567,5 +596,53 @@ autoplay = "move"
|
|||||||
[node name="BoxTrap" type="Node2D" parent="."]
|
[node name="BoxTrap" type="Node2D" parent="."]
|
||||||
position = Vector2(273, -87)
|
position = Vector2(273, -87)
|
||||||
|
|
||||||
[connection signal="areatrigger" from="AreaTrigger" to="." method="_on_area_2d_areatrigger"]
|
[node name="Coins" type="Node" parent="."]
|
||||||
|
|
||||||
|
[node name="Area2D" parent="Coins" instance=ExtResource("10_vh708")]
|
||||||
|
position = Vector2(164, 146)
|
||||||
|
|
||||||
|
[node name="Area2D2" parent="Coins" instance=ExtResource("10_vh708")]
|
||||||
|
position = Vector2(200, 146)
|
||||||
|
|
||||||
|
[node name="Area2D3" parent="Coins" instance=ExtResource("10_vh708")]
|
||||||
|
position = Vector2(234, 146)
|
||||||
|
|
||||||
|
[node name="Area2D4" parent="Coins" instance=ExtResource("10_vh708")]
|
||||||
|
position = Vector2(-201, 54)
|
||||||
|
|
||||||
|
[node name="Area2D5" parent="Coins" instance=ExtResource("10_vh708")]
|
||||||
|
position = Vector2(-166, 53)
|
||||||
|
|
||||||
|
[node name="Area2D6" parent="Coins" instance=ExtResource("10_vh708")]
|
||||||
|
position = Vector2(-189, -42)
|
||||||
|
|
||||||
|
[node name="Area2D7" parent="Coins" instance=ExtResource("10_vh708")]
|
||||||
|
position = Vector2(430, 52)
|
||||||
|
|
||||||
|
[node name="Area2D8" parent="Coins" instance=ExtResource("10_vh708")]
|
||||||
|
position = Vector2(460, 52)
|
||||||
|
|
||||||
|
[node name="Area2D9" parent="Coins" instance=ExtResource("10_vh708")]
|
||||||
|
position = Vector2(623, -108)
|
||||||
|
|
||||||
|
[node name="Area2D10" parent="Coins" instance=ExtResource("10_vh708")]
|
||||||
|
position = Vector2(416, -75)
|
||||||
|
|
||||||
|
[node name="Area2D11" parent="Coins" instance=ExtResource("10_vh708")]
|
||||||
|
position = Vector2(446, -76)
|
||||||
|
|
||||||
|
[node name="Area2D12" parent="Coins" instance=ExtResource("10_vh708")]
|
||||||
|
position = Vector2(474, -76)
|
||||||
|
|
||||||
|
[node name="Area2D13" parent="Coins" instance=ExtResource("10_vh708")]
|
||||||
|
position = Vector2(776, 21)
|
||||||
|
|
||||||
|
[node name="Area2D14" parent="Coins" instance=ExtResource("10_vh708")]
|
||||||
|
position = Vector2(814, 20)
|
||||||
|
|
||||||
|
[node name="SlimeEnemy" parent="." instance=ExtResource("11_gnd6o")]
|
||||||
|
position = Vector2(125, 149)
|
||||||
|
|
||||||
|
[connection signal="timeout" from="GameController/Timer" to="GameController" method="resetWorld"]
|
||||||
|
[connection signal="areatrigger" from="AreaTrigger" to="GameController" method="_on_area_2d_areatrigger"]
|
||||||
[connection signal="body_entered" from="AreaTrigger" to="AreaTrigger" method="_on_body_entered"]
|
[connection signal="body_entered" from="AreaTrigger" to="AreaTrigger" method="_on_body_entered"]
|
||||||
|
17
scenes/hud.tscn
Normal file
17
scenes/hud.tscn
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
[gd_scene load_steps=2 format=3 uid="uid://bgswt7yjl253s"]
|
||||||
|
|
||||||
|
[sub_resource type="SystemFont" id="SystemFont_g1xe5"]
|
||||||
|
|
||||||
|
[node name="Hud" type="CanvasLayer"]
|
||||||
|
|
||||||
|
[node name="Coins" type="Label" parent="."]
|
||||||
|
anchors_preset = 1
|
||||||
|
anchor_left = 1.0
|
||||||
|
anchor_right = 1.0
|
||||||
|
offset_left = -17.0
|
||||||
|
offset_bottom = 42.0
|
||||||
|
grow_horizontal = 0
|
||||||
|
theme_override_fonts/font = SubResource("SystemFont_g1xe5")
|
||||||
|
theme_override_font_sizes/font_size = 30
|
||||||
|
text = "0"
|
||||||
|
horizontal_alignment = 2
|
75
scenes/slimeEnemy.tscn
Normal file
75
scenes/slimeEnemy.tscn
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
[gd_scene load_steps=9 format=3 uid="uid://b07px1qf5obql"]
|
||||||
|
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dl8k7bq5pkuvk" path="res://graphics/enemies/slime_purple.png" id="1_01o8e"]
|
||||||
|
[ext_resource type="Script" path="res://scripts/enemy.gd" id="1_c0t6u"]
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_afgjr"]
|
||||||
|
atlas = ExtResource("1_01o8e")
|
||||||
|
region = Rect2(0, 24, 24, 24)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jpmuv"]
|
||||||
|
atlas = ExtResource("1_01o8e")
|
||||||
|
region = Rect2(24, 24, 24, 24)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_mdgjq"]
|
||||||
|
atlas = ExtResource("1_01o8e")
|
||||||
|
region = Rect2(48, 24, 24, 24)
|
||||||
|
|
||||||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ib0iy"]
|
||||||
|
atlas = ExtResource("1_01o8e")
|
||||||
|
region = Rect2(72, 24, 24, 24)
|
||||||
|
|
||||||
|
[sub_resource type="SpriteFrames" id="SpriteFrames_cmpmq"]
|
||||||
|
animations = [{
|
||||||
|
"frames": [{
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_afgjr")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_jpmuv")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_mdgjq")
|
||||||
|
}, {
|
||||||
|
"duration": 1.0,
|
||||||
|
"texture": SubResource("AtlasTexture_ib0iy")
|
||||||
|
}],
|
||||||
|
"loop": true,
|
||||||
|
"name": &"chase",
|
||||||
|
"speed": 8.0
|
||||||
|
}]
|
||||||
|
|
||||||
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5m2pq"]
|
||||||
|
size = Vector2(14, 15)
|
||||||
|
|
||||||
|
[node name="SlimeEnemy" type="Area2D"]
|
||||||
|
script = ExtResource("1_c0t6u")
|
||||||
|
metadata/_edit_group_ = true
|
||||||
|
|
||||||
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||||
|
texture_filter = 1
|
||||||
|
sprite_frames = SubResource("SpriteFrames_cmpmq")
|
||||||
|
animation = &"chase"
|
||||||
|
autoplay = "chase"
|
||||||
|
frame = 1
|
||||||
|
frame_progress = 0.134127
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
|
position = Vector2(0, 4.5)
|
||||||
|
shape = SubResource("RectangleShape2D_5m2pq")
|
||||||
|
|
||||||
|
[node name="RightCast" type="RayCast2D" parent="."]
|
||||||
|
target_position = Vector2(13, 0)
|
||||||
|
|
||||||
|
[node name="LeftCast" type="RayCast2D" parent="."]
|
||||||
|
target_position = Vector2(-13, 0)
|
||||||
|
|
||||||
|
[node name="RightFloorCast" type="RayCast2D" parent="."]
|
||||||
|
position = Vector2(7, 0)
|
||||||
|
target_position = Vector2(0, 18)
|
||||||
|
|
||||||
|
[node name="LeftFloorCast" type="RayCast2D" parent="."]
|
||||||
|
position = Vector2(-7, 0)
|
||||||
|
target_position = Vector2(0, 18)
|
||||||
|
|
||||||
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
@ -17,13 +17,22 @@ var faceLeft = false
|
|||||||
var pushLeftEnabled = false
|
var pushLeftEnabled = false
|
||||||
var pushRightEnabled = false
|
var pushRightEnabled = false
|
||||||
var pushTarget
|
var pushTarget
|
||||||
|
var living = true
|
||||||
|
|
||||||
var bullet = preload("res://scenes/bullet.tscn")
|
var bullet = preload("res://scenes/bullet.tscn")
|
||||||
|
|
||||||
# Get the gravity from the project settings to be synced with RigidBody nodes.
|
# Get the gravity from the project settings to be synced with RigidBody nodes.
|
||||||
var gravity = ProjectSettings.get_setting("physics/2d/default_gravity")
|
var gravity = ProjectSettings.get_setting("physics/2d/default_gravity")
|
||||||
|
|
||||||
|
func defeated():
|
||||||
|
print("character body player defeated")
|
||||||
|
animated_sprite.play("death")
|
||||||
|
living = false
|
||||||
|
|
||||||
func _physics_process(delta):
|
func _physics_process(delta):
|
||||||
|
if not living:
|
||||||
|
return
|
||||||
|
|
||||||
# Add the gravity.
|
# Add the gravity.
|
||||||
if not is_on_floor():
|
if not is_on_floor():
|
||||||
velocity.y += gravity * delta
|
velocity.y += gravity * delta
|
||||||
|
@ -5,5 +5,6 @@ signal areatrigger(effect, Object)
|
|||||||
|
|
||||||
func _on_body_entered(body):
|
func _on_body_entered(body):
|
||||||
print("detected a body")
|
print("detected a body")
|
||||||
if body.get_collider() != StaticBody2D:
|
# Need to fix this part and see why it's not acknowledging the static body
|
||||||
areatrigger.emit(effect, body)
|
# if body.get_collider() != StaticBody2D:
|
||||||
|
# areatrigger.emit(effect, body)
|
||||||
|
18
scripts/coin.gd
Normal file
18
scripts/coin.gd
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
extends Area2D
|
||||||
|
@onready var gameCtrl = %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):
|
||||||
|
print("somebody hit a coin")
|
||||||
|
if body.is_in_group("player"):
|
||||||
|
gameCtrl.coinCollected()
|
||||||
|
queue_free()
|
42
scripts/enemy.gd
Normal file
42
scripts/enemy.gd
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
extends Area2D
|
||||||
|
@onready var gameCtrl = %GameController
|
||||||
|
@onready var right_cast = $RightCast
|
||||||
|
@onready var left_cast = $LeftCast
|
||||||
|
@onready var right_floor_cast = $RightFloorCast
|
||||||
|
@onready var left_floor_cast = $LeftFloorCast
|
||||||
|
@onready var sprite = $AnimatedSprite2D
|
||||||
|
|
||||||
|
const speed = 60
|
||||||
|
|
||||||
|
var direction = 1
|
||||||
|
|
||||||
|
# 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
|
||||||
|
sprite.flip_h = true
|
||||||
|
elif left_cast.is_colliding():
|
||||||
|
if not left_cast.get_collider().is_in_group("player"):
|
||||||
|
direction = 1
|
||||||
|
sprite.flip_h = false
|
||||||
|
|
||||||
|
if not right_floor_cast.is_colliding():
|
||||||
|
direction = -1
|
||||||
|
sprite.flip_h = true
|
||||||
|
elif not left_floor_cast.is_colliding():
|
||||||
|
direction = 1
|
||||||
|
sprite.flip_h = false
|
||||||
|
|
||||||
|
position.x += direction * speed * delta
|
||||||
|
|
||||||
|
|
||||||
|
func _on_body_entered(body):
|
||||||
|
print("bad guy intercepted!")
|
||||||
|
if body.is_in_group("player"):
|
||||||
|
gameCtrl.playerDefeated()
|
@ -1,7 +1,11 @@
|
|||||||
extends Node2D
|
extends Node
|
||||||
|
|
||||||
var myBox = preload("res://scenes/crate.tscn")
|
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.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready():
|
func _ready():
|
||||||
@ -19,5 +23,17 @@ func _on_area_2d_areatrigger(effect, body):
|
|||||||
"alert":
|
"alert":
|
||||||
for n in 5:
|
for n in 5:
|
||||||
var box = myBox.instantiate()
|
var box = myBox.instantiate()
|
||||||
add_child(box)
|
owner.add_child(box)
|
||||||
box.transform = box_trap.global_transform
|
box.transform = box_trap.global_transform
|
||||||
|
|
||||||
|
|
||||||
|
func coinCollected():
|
||||||
|
totalCoins += 1
|
||||||
|
print("Coin added! Total coins is now " + str(totalCoins))
|
||||||
|
|
||||||
|
func playerDefeated():
|
||||||
|
player.defeated()
|
||||||
|
timer.start()
|
||||||
|
|
||||||
|
func resetWorld():
|
||||||
|
get_tree().reload_current_scene()
|
||||||
|
Loading…
Reference in New Issue
Block a user