This commit is contained in:
MarcEricMartel 2023-01-14 17:19:01 -05:00
parent e62c1a8a0d
commit 666d7eaead
16 changed files with 166 additions and 60 deletions

View File

@ -1,6 +1,10 @@
StaticBody2D
CollisionShape2D
CharacterBody2D
CollisionPolygon2D
Area2D
AudioStreamPlayer
AudioStreamPlayer2D AudioStreamPlayer2D
AudioListener2D AudioListener2D
TileMap TileMap
CollisionShape2D
AnimatedSprite2D AnimatedSprite2D
CharacterBody2D

View File

@ -8,7 +8,7 @@ dock_split_2=0
dock_split_3=0 dock_split_3=0
dock_hsplit_1=0 dock_hsplit_1=0
dock_hsplit_2=309 dock_hsplit_2=309
dock_hsplit_3=-216 dock_hsplit_3=-353
dock_hsplit_4=0 dock_hsplit_4=0
dock_3="Scene,Import" dock_3="Scene,Import"
dock_4="FileSystem" dock_4="FileSystem"
@ -16,7 +16,7 @@ dock_5="Inspector,Node,History"
[EditorNode] [EditorNode]
open_scenes=["res://test_level001.tscn"] open_scenes=["res://test_level001.tscn", "res://Player/player.tscn"]
[ScriptEditor] [ScriptEditor]

View File

@ -1,19 +1,19 @@
0b7126e0c6e86d3ec295a72f5aa6e0bd 0b7126e0c6e86d3ec295a72f5aa6e0bd
::res://::1673729705 ::res://::1673732594
icon.svg::CompressedTexture2D::4918904308290865421::1673727578::1673727598::1::::<><>:: icon.svg::CompressedTexture2D::4918904308290865421::1673727578::1673727598::1::::<><>::
placeholder.png::CompressedTexture2D::4828848561319431753::1673727578::1673727578::1::::<><>:: placeholder.png::CompressedTexture2D::4828848561319431753::1673727578::1673727578::1::::<><>::
README.md::TextFile::-1::1673727578::0::1::::<><>:: README.md::TextFile::-1::1673727578::0::1::::<><>::
test_level001.tscn::PackedScene::278447013021769396::1673729353::0::1::::<><>::uid://b62h0w8gjm6tj<>uid://brxelntunb27r<>uid://c3awet5ec2g43<>uid://d4cfjpvsdx28b<>uid://3cgxgteqaeqd<>uid://xn0mrvt5gur<>uid://gka31sws2c62 test_level001.tscn::PackedScene::278447013021769396::1673732594::0::1::::<><>::uid://b62h0w8gjm6tj<>uid://brxelntunb27r<>uid://dq1swoy3ttnef<>uid://8rvenjs3qb48<>uid://dsai55yg5k0pn<>uid://cs6jdh2tnho0d<>uid://c3mxst2bq3cxp
::res://Levels/::1673727578 ::res://Levels/::1673727578
level.tscn::PackedScene::4739050375457527030::1673727578::0::1::::<><>:: level.tscn::PackedScene::4739050375457527030::1673727578::0::1::::<><>::
::res://Music/::1673730259 ::res://Music/::1673730262
School_Bass.ogg::AudioStreamOggVorbis::8337090337929631753::1673730151::1673730262::1::::<><>:: School_Bass.ogg::AudioStreamOggVorbis::8337090337929631753::1673730151::1673730262::1::::<><>::
School_BDClave.ogg::AudioStreamOggVorbis::2352609159460477887::1673730115::1673730262::1::::<><>:: School_BDClave.ogg::AudioStreamOggVorbis::2352609159460477887::1673730115::1673730262::1::::<><>::
School_Brass.ogg::AudioStreamOggVorbis::8423202159412100063::1673730192::1673730262::1::::<><>:: School_Brass.ogg::AudioStreamOggVorbis::8423202159412100063::1673730192::1673730262::1::::<><>::
School_Flute.ogg::AudioStreamOggVorbis::6100788483817358773::1673730176::1673730262::1::::<><>:: School_Flute.ogg::AudioStreamOggVorbis::6100788483817358773::1673730176::1673730262::1::::<><>::
School_Snare.ogg::AudioStreamOggVorbis::6764331197145035365::1673730134::1673730262::1::::<><>:: School_Snare.ogg::AudioStreamOggVorbis::6764331197145035365::1673730134::1673730262::1::::<><>::
::res://Player/::1673729393 ::res://Player/::1673732308
player.gd::GDScript::-1::1673727578::0::1::::<>CharacterBody2D<>:: player.gd::GDScript::-1::1673732308::0::1::::<>CharacterBody2D<>::
player.tscn::PackedScene::4618483906406103163::1673729393::0::1::::<><>::res://Player/player.gd<>uid://ca2eovotfh6v2 player.tscn::PackedScene::4618483906406103163::1673729393::0::1::::<><>::res://Player/player.gd<>uid://ca2eovotfh6v2
::res://TileSets/::1673729393 ::res://TileSets/::1673732822
Tiles Set GameJam.png::CompressedTexture2D::3627374938668034389::1673704526::1673729393::1::::<><>:: Tiles Set GameJam.png::CompressedTexture2D::9175886574582270754::1673714690::1673732825::1::::<><>::

View File

@ -1 +1,3 @@
res://test_level001.tscn res://test_level001.tscn
res://Player/player.gd
res://Player/player.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(-695, -333), "ofs": Vector2(-834.444, -392.346),
"primary_grid_steps": 8, "primary_grid_steps": 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": 0.707107
} }
3D={ 3D={
"fov": 70.01, "fov": 70.01,

View File

@ -2,6 +2,7 @@
executable_path="/usr/bin/godot4" executable_path="/usr/bin/godot4"
tile_source_sort=0 tile_source_sort=0
use_advanced_connections=false
[debug_options] [debug_options]
@ -10,7 +11,7 @@ run_reload_scripts=true
[recent_files] [recent_files]
scenes=["res://test_level001.tscn", "res://Player/player.tscn", "res://player.tscn"] scenes=["res://Player/player.tscn", "res://test_level001.tscn", "res://player.tscn"]
scripts=["Vector2", "CharacterBody2D", "res://player.gd"] scripts=["Vector2", "CharacterBody2D", "res://player.gd"]
[script_setup] [script_setup]
@ -20,3 +21,7 @@ last_selected_language="GDScript"
[dialog_bounds] [dialog_bounds]
project_settings=Rect2(510, 238, 900, 700) project_settings=Rect2(510, 238, 900, 700)
[color_picker]
recent_presets=PackedColorArray(0.596728, 0.506455, 0.552415, 0.42, 0.577249, 0.473426, 0.756044, 0.42, 0.576471, 0.47451, 0.756863, 0.941176)

View File

@ -3,11 +3,11 @@
state={ state={
"bookmarks": PackedInt32Array(), "bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(), "breakpoints": PackedInt32Array(),
"column": 30, "column": 0,
"folded_lines": [], "folded_lines": [],
"h_scroll_position": 0, "h_scroll_position": 0,
"row": 2, "row": 35,
"scroll_position": 0.0, "scroll_position": 13.0,
"selection": false, "selection": false,
"syntax_highlighter": "GDScript" "syntax_highlighter": "GDScript"
} }

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(-1283.83, -140.097), "ofs": Vector2(-497.438, -331.178),
"primary_grid_steps": 8, "primary_grid_steps": 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.176777 "zoom": 0.374577
} }
3D={ 3D={
"fov": 70.01, "fov": 70.01,

View File

@ -1,5 +1,5 @@
[folding] [folding]
node_unfolds=[NodePath("."), PackedStringArray("Texture"), NodePath("TileMap"), PackedStringArray("tile_set", "layer__array")] node_unfolds=[NodePath("."), PackedStringArray("Texture"), NodePath("Floor"), PackedStringArray("tile_set", "layer__array"), NodePath("Player"), PackedStringArray("Collision")]
resource_unfolds=["res://test_level001.tscn::TileSet_vk7ll", PackedStringArray()] resource_unfolds=["res://test_level001.tscn::TileSet_vk7ll", PackedStringArray()]
nodes_folded=[] nodes_folded=[]

View File

@ -1,3 +1,3 @@
source_md5="27d873444978bf4ee02433c667d67f42" source_md5="f185622229a706d5ccb3cdc1f8216787"
dest_md5="cdc5217d6c4cb2636d7f4550a11e63be" dest_md5="d0a00863f876decac4c74f79813e6db3"

Binary file not shown.

View File

@ -24,3 +24,19 @@ func apply_movement(input_vector, delta):
func apply_friction(input_vector,delta): func apply_friction(input_vector,delta):
if(input_vector == Vector2.ZERO): if(input_vector == Vector2.ZERO):
velocity = velocity.move_toward(Vector2.ZERO, FRICTION * delta); velocity = velocity.move_toward(Vector2.ZERO, FRICTION * delta);
func _on_area_2d_area_entered(area):
$"../School_Snare".volume_db(-6);
$"../School_BDClave".volume_db(-6);
$"../School_Bass".volume_db(-6);
$"../School_Flute".volume_db(-6);
$"../School_Brass".volume_db(-6);
func _on_area_2d_area_exited(area):
$"../School_Snare".volume_db(-80);
$"../School_BDClave".volume_db(-80);
$"../School_Bass".volume_db(-80);
$"../School_Flute".volume_db(-80);
$"../School_Brass".volume_db(-80);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

@ -2,7 +2,7 @@
importer="texture" importer="texture"
type="CompressedTexture2D" type="CompressedTexture2D"
uid="uid://brxelntunb27r" uid="uid://d3y4rna66nylu"
path="res://.godot/imported/Tiles Set GameJam.png-3f90e0a890116b0d769b719e353e8d54.ctex" path="res://.godot/imported/Tiles Set GameJam.png-3f90e0a890116b0d769b719e353e8d54.ctex"
metadata={ metadata={
"vram_texture": false "vram_texture": false

File diff suppressed because one or more lines are too long