crate and tilemap

This commit is contained in:
mitchellgunn 2024-07-22 21:04:24 -04:00
parent 3ac8d5daed
commit 958ffa2a43
30 changed files with 424 additions and 85 deletions

View File

@ -172,4 +172,4 @@ Anim={
"zfar": 4000.01, "zfar": 4000.01,
"znear": 0.05 "znear": 0.05
} }
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@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/CharacterBody2D/AnimatedSprite2D")]) selected_nodes=Array[NodePath]([])

View File

@ -172,4 +172,4 @@ Anim={
"zfar": 4000.01, "zfar": 4000.01,
"znear": 0.05 "znear": 0.05
} }
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@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/CharacterBody2D/AnimatedSprite2D")]) selected_nodes=Array[NodePath]([])

View File

@ -0,0 +1,175 @@
[editor_states]
Anim={
"visible": false
}
2D={
"grid_offset": Vector2(0, 0),
"grid_snap_active": false,
"grid_step": Vector2(8, 8),
"grid_visibility": 1,
"ofs": Vector2(-117.853, -90.2575),
"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": 4.48985
}
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]([])

View File

@ -0,0 +1,5 @@
[folding]
node_unfolds=[NodePath("."), PackedStringArray("Transform"), NodePath("CollisionShape2D"), PackedStringArray("Transform", "shape"), NodePath("Sprite2D"), PackedStringArray("Transform", "Texture")]
resource_unfolds=["res://scenes/crate.tscn::RectangleShape2D_4vo4d", PackedStringArray()]
nodes_folded=[]

View File

@ -1,3 +1,7 @@
Sprite2D
TileMap
Camera2D
Node
AnimatedSprite2D AnimatedSprite2D
Node2D Node2D
CollisionShape2D CollisionShape2D

View File

@ -19,7 +19,7 @@ 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() dock_filesystem_selected_paths=PackedStringArray("res://graphics/crate.png")
dock_filesystem_uncollapsed_paths=PackedStringArray("Favorites", "res://", "res://scripts/", "res://scenes/", "res://graphics/") dock_filesystem_uncollapsed_paths=PackedStringArray("Favorites", "res://", "res://scripts/", "res://scenes/", "res://graphics/")
dock_3="Scene,Import" dock_3="Scene,Import"
dock_4="FileSystem" dock_4="FileSystem"
@ -27,17 +27,17 @@ dock_5="Inspector,Node,History"
[EditorNode] [EditorNode]
open_scenes=PackedStringArray("res://scenes/game.tscn", "res://scenes/character.tscn", "res://scenes/bullet.tscn") open_scenes=PackedStringArray("res://scenes/game.tscn", "res://scenes/character.tscn", "res://scenes/bullet.tscn", "res://scenes/crate.tscn")
current_scene="res://scenes/character.tscn" current_scene="res://scenes/game.tscn"
center_split_offset=0 center_split_offset=0
selected_default_debugger_tab_idx=0 selected_default_debugger_tab_idx=0
selected_main_editor_idx=0 selected_main_editor_idx=0
selected_bottom_panel_item=9 selected_bottom_panel_item=0
[ScriptEditor] [ScriptEditor]
open_scripts=["res://scripts/bullet.gd", "res://scripts/CharacterBody2D.gd", "res://scripts/gamecontroller.gd"] open_scripts=["res://scripts/bullet.gd", "res://scripts/CharacterBody2D.gd", "res://scripts/gamecontroller.gd"]
selected_script="res://scripts/CharacterBody2D.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
.godot/editor/favorites Normal file
View File

View File

@ -1,16 +1,18 @@
ea4bc82a6ad023ab7ee23ee620429895 ea4bc82a6ad023ab7ee23ee620429895
::res://::1721688548 ::res://::1721693511
icon.svg::CompressedTexture2D::9114977118871582245::1721682499::1721682499::1::::<><>:: icon.svg::CompressedTexture2D::9114977118871582245::1721682499::1721682499::1::::<><>::
README.md::TextFile::-1::1721686817::0::1::::<><>:: README.md::TextFile::-1::1721686817::0::1::::<><>::
::res://graphics/::1721691245 ::res://graphics/::1721696332
crate.png::CompressedTexture2D::8555584700510586149::1721696332::1721696343::1::::<><>::
Player Idle 48x48.png::CompressedTexture2D::3529809544777189649::1721688527::1721688496::1::::<><>:: Player Idle 48x48.png::CompressedTexture2D::3529809544777189649::1721688527::1721688496::1::::<><>::
player jump 48x48.png::CompressedTexture2D::3342890448265989669::1721690657::1721690657::1::::<><>:: player jump 48x48.png::CompressedTexture2D::3342890448265989669::1721690657::1721690657::1::::<><>::
player land 48x48.png::CompressedTexture2D::5541143191019734946::1721691245::1721691245::1::::<><>::
player run 48x48.png::CompressedTexture2D::2400852804432818940::1721689939::1721689939::1::::<><>:: player run 48x48.png::CompressedTexture2D::2400852804432818940::1721689939::1721689939::1::::<><>::
::res://scenes/::1721691227 Terrain (32x32).png::CompressedTexture2D::6866676332079345064::1721693500::1721693511::1::::<><>::
bullet.tscn::PackedScene::6880909734590904373::1721691227::0::1::::<><>::res://scripts/bullet.gd ::res://scenes/::1721694359
character.tscn::PackedScene::451838158579532324::1721691227::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 bullet.tscn::PackedScene::6880909734590904373::1721694359::0::1::::<><>::res://scripts/bullet.gd
game.tscn::PackedScene::1738196330916037717::1721691227::0::1::::<><>::res://scripts/gamecontroller.gd<>uid://go4yc8hfo1gq::::res://scenes/character.tscn<>res://scripts/Trigger.gd character.tscn::PackedScene::451838158579532324::1721694359::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::1721694359::0::1::::<><>::
game.tscn::PackedScene::1738196330916037717::1721694359::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/::1721691227 ::res://scripts/::1721691227
bullet.gd::GDScript::-1::1721682499::0::1::::<>Area2D<>:: bullet.gd::GDScript::-1::1721682499::0::1::::<>Area2D<>::
CharacterBody2D.gd::GDScript::-1::1721691227::0::1::::<>CharacterBody2D<>:: CharacterBody2D.gd::GDScript::-1::1721691227::0::1::::<>CharacterBody2D<>::

View File

@ -2,3 +2,4 @@ res://scenes/game.tscn
res://scenes/character.tscn res://scenes/character.tscn
res://scenes/bullet.tscn res://scenes/bullet.tscn
res://scripts/CharacterBody2D.gd res://scripts/CharacterBody2D.gd
res://scenes/crate.tscn

View File

@ -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(-452.67, -210.078), "ofs": Vector2(-358.895, -31.2637),
"primary_grid_step": Vector2i(8, 8), "primary_grid_step": Vector2i(8, 8),
"show_edit_locks": true, "show_edit_locks": true,
"show_guides": true, "show_guides": true,
@ -32,7 +32,7 @@ Anim={
"snap_rotation_step": 0.261799, "snap_rotation_step": 0.261799,
"snap_scale": false, "snap_scale": false,
"snap_scale_step": 0.1, "snap_scale_step": 0.1,
"zoom": 0.707107 "zoom": 1.05946
} }
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/CharacterBody2D/AnimatedSprite2D")]) selected_nodes=Array[NodePath]([])

View File

@ -1,5 +1,5 @@
[folding] [folding]
node_unfolds=[NodePath("."), PackedStringArray("Transform"), NodePath("StaticBody2D"), PackedStringArray("Transform"), NodePath("RigidBody2D"), PackedStringArray("Transform"), NodePath("RigidBody2D/CollisionShape2D"), PackedStringArray("Transform"), NodePath("RigidBody2D/CollisionShape2D2"), PackedStringArray("Transform"), NodePath("groundblock"), PackedStringArray("Transform"), NodePath("groundblock/CollisionShape2D"), PackedStringArray("Transform"), NodePath("groundblock2"), PackedStringArray("Transform"), NodePath("groundblock2/CollisionShape2D"), PackedStringArray("Transform"), NodePath("level/groundblock2"), PackedStringArray("Transform"), NodePath("level/groundblock2/CollisionShape2D"), PackedStringArray("Transform"), NodePath("level/groundblock3"), PackedStringArray("Transform"), NodePath("level/groundblock3/CollisionShape2D"), PackedStringArray("Transform"), NodePath("Area2D"), PackedStringArray("Transform")] node_unfolds=[NodePath("."), PackedStringArray("Transform"), NodePath("TileMap"), PackedStringArray("tile_set"), NodePath("level/groundblock2"), PackedStringArray("Transform"), NodePath("level/groundblock2/CollisionShape2D"), PackedStringArray("Transform"), NodePath("level/groundblock3"), PackedStringArray("Transform"), NodePath("level/groundblock3/CollisionShape2D"), PackedStringArray("Transform"), NodePath("level/groundblock"), PackedStringArray("Transform"), NodePath("level/groundblock/CollisionShape2D"), PackedStringArray("Transform"), NodePath("level/groundblock4"), PackedStringArray("Transform"), NodePath("level/groundblock4/CollisionShape2D"), PackedStringArray("Transform"), NodePath("level/StaticBody2D"), PackedStringArray("Transform"), NodePath("CharacterBody2D"), PackedStringArray("Transform"), NodePath("CharacterBody2D/Camera2D"), PackedStringArray("Position Smoothing"), NodePath("Area2D"), PackedStringArray("Transform")]
resource_unfolds=["res://scenes/game.tscn::WorldBoundaryShape2D_3u4a8", PackedStringArray("Resource"), "res://scenes/game.tscn::RectangleShape2D_4vo4d", PackedStringArray("Resource"), "res://scenes/game.tscn::RectangleShape2D_cq7kj", PackedStringArray("Resource"), "res://scenes/game.tscn::CircleShape2D_x8qck", PackedStringArray("Resource")] resource_unfolds=["res://scenes/game.tscn::TileSet_25cld", PackedStringArray(), "res://scenes/game.tscn::RectangleShape2D_cq7kj", PackedStringArray("Resource"), "res://scenes/game.tscn::WorldBoundaryShape2D_3u4a8", PackedStringArray("Resource"), "res://scenes/game.tscn::CircleShape2D_x8qck", PackedStringArray("Resource")]
nodes_folded=[] nodes_folded=[]

View File

@ -2,16 +2,17 @@
executable_path="/home/timbuntu/Documents/software/godot/Godot_v4.2.1-stable_linux.x86_64" executable_path="/home/timbuntu/Documents/software/godot/Godot_v4.2.1-stable_linux.x86_64"
use_advanced_connections=false use_advanced_connections=false
tile_source_sort=0
[debug_options] [debug_options]
run_live_debug=true run_live_debug=true
run_reload_scripts=true run_reload_scripts=true
run_debug_collisions=true run_debug_collisions=false
[recent_files] [recent_files]
scenes=["res://scenes/bullet.tscn", "res://scenes/character.tscn", "res://scenes/game.tscn"] scenes=["res://scenes/crate.tscn", "res://scenes/bullet.tscn", "res://scenes/character.tscn", "res://scenes/game.tscn"]
scripts=["res://scripts/bullet.gd", "res://scripts/CharacterBody2D.gd", "res://scripts/gamecontroller.gd"] scripts=["res://scripts/bullet.gd", "res://scripts/CharacterBody2D.gd", "res://scripts/gamecontroller.gd"]
[linked_properties] [linked_properties]
@ -24,6 +25,10 @@ RigidBody2D:scale=true
RayCast2D:scale=true RayCast2D:scale=true
Area2D:scale=true Area2D:scale=true
AnimatedSprite2D:scale=true AnimatedSprite2D:scale=true
Camera2D:zoom=true
Camera2D:scale=true
TileMap:scale=true
Sprite2D:scale=true
[dialog_bounds] [dialog_bounds]
@ -37,3 +42,7 @@ recent_presets=PackedColorArray(0.616312, 0.404074, 0.899578, 0.42, 0.720388, 0.
[script_setup] [script_setup]
last_selected_language="GDScript" last_selected_language="GDScript"
[project_settings]
advanced_mode=true

View File

@ -1,3 +1,3 @@
res://scenes
res://graphics res://graphics
res://scripts res://scripts
res://scenes

View File

@ -0,0 +1,3 @@
source_md5="d795d66ea17df8d684197c8d47ffe0d6"
dest_md5="eb1ab57ee49d2726692bb79f8241f155"

View File

@ -0,0 +1,3 @@
source_md5="d795d66ea17df8d684197c8d47ffe0d6"
dest_md5="eb1ab57ee49d2726692bb79f8241f155"

View File

@ -0,0 +1,3 @@
source_md5="d795d66ea17df8d684197c8d47ffe0d6"
dest_md5="eb1ab57ee49d2726692bb79f8241f155"

View File

@ -0,0 +1,3 @@
source_md5="04f26119549cdd1c8f647421234cddc5"
dest_md5="c5693fda81ebf9786c9b184878fdcfa4"

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c43jfkjw11rsq"
path="res://.godot/imported/Terrain (32x32).png-ad70ba78825a684cda25de60298b49f9.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://graphics/Terrain (32x32).png"
dest_files=["res://.godot/imported/Terrain (32x32).png-ad70ba78825a684cda25de60298b49f9.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/crate.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

34
graphics/crate.png.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dt5nh26eq2a5r"
path="res://.godot/imported/crate.png-765d51179af728442f1474057462ddd4.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://graphics/crate.png"
dest_files=["res://.godot/imported/crate.png-765d51179af728442f1474057462ddd4.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

View File

@ -15,6 +15,14 @@ run/main_scene="res://scenes/game.tscn"
config/features=PackedStringArray("4.2", "Forward Plus") config/features=PackedStringArray("4.2", "Forward Plus")
config/icon="res://icon.svg" config/icon="res://icon.svg"
[display]
window/size/viewport_width=320
window/size/viewport_height=180
window/size/window_width_override=960
window/size/window_height_override=540
window/stretch/mode="viewport"
[file_customization] [file_customization]
folder_colors={ folder_colors={

View File

@ -178,13 +178,13 @@ position = Vector2(-1, 0)
script = ExtResource("1_x87yo") script = ExtResource("1_x87yo")
JUMP_VELOCITY = -500.0 JUMP_VELOCITY = -500.0
PUSH_FORCE = 200 PUSH_FORCE = 200
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_8idir") sprite_frames = SubResource("SpriteFrames_8idir")
animation = &"idle" animation = &"idle"
autoplay = "idle" autoplay = "idle"
frame_progress = 0.758732
[node name="CollisionShape2D" type="CollisionShape2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 3) position = Vector2(0, 3)

16
scenes/crate.tscn Normal file
View File

@ -0,0 +1,16 @@
[gd_scene load_steps=3 format=3 uid="uid://c8x0bcxa8t74o"]
[ext_resource type="Texture2D" uid="uid://dt5nh26eq2a5r" path="res://graphics/crate.png" id="1_ar5ac"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4vo4d"]
[node name="RigidBody2D" type="RigidBody2D" groups=["boxes"]]
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_4vo4d")
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
[node name="Sprite2D" type="Sprite2D" parent="."]
scale = Vector2(0.416667, 0.458333)
texture = ExtResource("1_ar5ac")

View File

@ -1,85 +1,90 @@
[gd_scene load_steps=8 format=3 uid="uid://y083suj12rld"] [gd_scene load_steps=11 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://c43jfkjw11rsq" path="res://graphics/Terrain (32x32).png" id="2_juhow"]
[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="PackedScene" uid="uid://c8x0bcxa8t74o" path="res://scenes/crate.tscn" id="2_ob312"]
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_3u4a8"] [sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_6otpc"]
texture = ExtResource("2_juhow")
texture_region_size = Vector2i(32, 32)
0:0/0 = 0
1:0/0 = 0
2:0/0 = 0
4:0/0 = 0
6:0/0 = 0
7:0/0 = 0
9:0/0 = 0
10:0/0 = 0
12:0/0 = 0
13:0/0 = 0
15:0/0 = 0
0:1/0 = 0
1:1/0 = 0
2:1/0 = 0
4:1/0 = 0
6:1/0 = 0
7:1/0 = 0
9:1/0 = 0
10:1/0 = 0
12:1/0 = 0
13:1/0 = 0
15:1/0 = 0
16:1/0 = 0
0:2/0 = 0
1:2/0 = 0
2:2/0 = 0
4:2/0 = 0
6:3/0 = 0
7:3/0 = 0
9:3/0 = 0
10:3/0 = 0
12:3/0 = 0
13:3/0 = 0
15:3/0 = 0
16:3/0 = 0
0:4/0 = 0
1:4/0 = 0
2:4/0 = 0
4:4/0 = 0
6:4/0 = 0
7:4/0 = 0
9:4/0 = 0
10:4/0 = 0
12:4/0 = 0
13:4/0 = 0
15:4/0 = 0
16:4/0 = 0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4vo4d"] [sub_resource type="TileSet" id="TileSet_25cld"]
size = Vector2(55, 55) tile_size = Vector2i(32, 32)
sources/0 = SubResource("TileSetAtlasSource_6otpc")
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cq7kj"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_cq7kj"]
size = Vector2(91, 20) size = Vector2(91, 20)
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_3u4a8"]
[sub_resource type="CircleShape2D" id="CircleShape2D_x8qck"] [sub_resource type="CircleShape2D" id="CircleShape2D_x8qck"]
radius = 60.2993 radius = 60.2993
[node name="Game" type="Node2D"] [node name="Game" type="Node2D"]
script = ExtResource("1_77wyw") script = ExtResource("1_77wyw")
[node name="StaticBody2D" type="StaticBody2D" parent="."] [node name="TileMap" type="TileMap" parent="."]
position = Vector2(236, 415) tile_set = SubResource("TileSet_25cld")
metadata/_edit_group_ = true format = 2
layer_0/tile_data = PackedInt32Array(851968, 65536, 0, 851969, 65536, 0, 851970, 65536, 0, 851971, 65536, 0, 851972, 65536, 0, 851973, 65536, 0, 851974, 65536, 0, 851975, 65536, 0, 851976, 65536, 0, 851977, 65536, 0, 851978, 65536, 0, 851979, 65536, 0, 851980, 65536, 0, 851981, 65536, 0, 851982, 65536, 0, 851983, 65536, 0, 851984, 65536, 0, 655371, 0, 4, 655372, 65536, 4, 655373, 131072, 4, 720898, 0, 4, 720899, 65536, 4, 720900, 131072, 4, 589839, 0, 4, 589840, 65536, 4, 589841, 65536, 4, 589842, 131072, 4, 917504, 65536, 1, 917505, 65536, 1, 917506, 65536, 1, 917507, 65536, 1, 917508, 65536, 1, 917509, 65536, 1, 917510, 65536, 1, 917511, 65536, 1, 917512, 65536, 1, 917513, 65536, 1, 917514, 65536, 1, 917515, 65536, 1, 917516, 65536, 1, 917517, 65536, 1, 917518, 65536, 1, 917519, 65536, 1, 917520, 65536, 1, 983056, 65536, 1, 983055, 65536, 1, 983054, 65536, 1, 983053, 65536, 1, 983052, 65536, 1, 983051, 65536, 1, 983050, 65536, 1, 983049, 65536, 1, 983048, 65536, 1, 983047, 65536, 1, 983046, 65536, 1, 983045, 65536, 1, 983044, 65536, 1, 983043, 65536, 1, 983042, 65536, 1, 983041, 65536, 1, 983040, 65536, 1, 1048576, 65536, 1, 1048577, 65536, 1, 1048578, 65536, 1, 1048579, 65536, 1, 1048580, 65536, 1, 1048581, 65536, 1, 1048582, 65536, 1, 1048583, 65536, 1, 1048584, 65536, 1, 1048585, 65536, 1, 1048586, 65536, 1, 1048587, 65536, 1, 1048588, 65536, 1, 1048589, 65536, 1, 1048590, 65536, 1, 1048591, 65536, 1, 1048592, 65536, 1)
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"] [node name="RigidBody2D" parent="." instance=ExtResource("2_ob312")]
shape = SubResource("WorldBoundaryShape2D_3u4a8") position = Vector2(113, 85)
[node name="RigidBody2D" type="RigidBody2D" parent="." groups=["boxes"]]
position = Vector2(139, 35)
rotation = 0.740513
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
position = Vector2(206.535, 208.174)
rotation = -0.555892
shape = SubResource("RectangleShape2D_4vo4d")
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
[node name="CollisionShape2D2" type="CollisionShape2D" parent="RigidBody2D"]
position = Vector2(206.535, 208.174)
rotation = -0.555892
shape = SubResource("RectangleShape2D_4vo4d")
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
[node name="RigidBody2D2" type="RigidBody2D" parent="." groups=["boxes"]]
position = Vector2(409, -6)
rotation = 0.740513
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D2"]
position = Vector2(206.535, 208.174)
rotation = -0.555892
shape = SubResource("RectangleShape2D_4vo4d")
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
[node name="CollisionShape2D2" type="CollisionShape2D" parent="RigidBody2D2"]
position = Vector2(206.535, 208.174)
rotation = -0.555892
shape = SubResource("RectangleShape2D_4vo4d")
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
[node name="groundblock" type="StaticBody2D" parent="."]
position = Vector2(117, 384)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="groundblock"]
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj")
[node name="groundblock2" type="StaticBody2D" parent="."]
position = Vector2(91, 430)
scale = Vector2(3.76, 1)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="groundblock2"]
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj")
[node name="level" type="Node2D" parent="."] [node name="level" type="Node2D" parent="."]
[node name="groundblock2" type="StaticBody2D" parent="level"] [node name="groundblock2" type="StaticBody2D" parent="level"]
position = Vector2(548, 315) position = Vector2(546, 304)
scale = Vector2(1.4, 1.52)
metadata/_edit_group_ = true metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock2"] [node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock2"]
@ -87,16 +92,44 @@ position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj") shape = SubResource("RectangleShape2D_cq7kj")
[node name="groundblock3" type="StaticBody2D" parent="level"] [node name="groundblock3" type="StaticBody2D" parent="level"]
position = Vector2(404, 353) position = Vector2(402, 336)
scale = Vector2(1.0412, 1.45975)
metadata/_edit_group_ = true metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock3"] [node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock3"]
position = Vector2(-1.5, 0) position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj") shape = SubResource("RectangleShape2D_cq7kj")
[node name="groundblock" type="StaticBody2D" parent="level"]
position = Vector2(113, 369)
scale = Vector2(1.04, 1.52)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock"]
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj")
[node name="groundblock4" type="StaticBody2D" parent="level"]
position = Vector2(91, 430)
scale = Vector2(3.76, 1)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock4"]
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj")
[node name="StaticBody2D" type="StaticBody2D" parent="level"]
position = Vector2(242, 417)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/StaticBody2D"]
shape = SubResource("WorldBoundaryShape2D_3u4a8")
[node name="CharacterBody2D" parent="." groups=["player"] instance=ExtResource("2_64ccm")] [node name="CharacterBody2D" parent="." groups=["player"] instance=ExtResource("2_64ccm")]
PUSH_FORCE = 550 PUSH_FORCE = 550
[node name="Camera2D" type="Camera2D" parent="CharacterBody2D"]
[node name="Area2D" type="Area2D" parent="."] [node name="Area2D" type="Area2D" parent="."]
position = Vector2(260, 352) position = Vector2(260, 352)
script = ExtResource("2_nfj1w") script = ExtResource("2_nfj1w")
@ -106,5 +139,11 @@ metadata/_edit_group_ = true
shape = SubResource("CircleShape2D_x8qck") shape = SubResource("CircleShape2D_x8qck")
debug_color = Color(0.556863, 0.415686, 0.964706, 0.419608) debug_color = Color(0.556863, 0.415686, 0.964706, 0.419608)
[node name="RigidBody2D2" parent="." instance=ExtResource("2_ob312")]
position = Vector2(284, 138)
[node name="RigidBody2D3" parent="." instance=ExtResource("2_ob312")]
position = Vector2(269, 97)
[connection signal="areatrigger" from="Area2D" to="." method="_on_area_2d_areatrigger"] [connection signal="areatrigger" from="Area2D" to="." method="_on_area_2d_areatrigger"]
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"] [connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]