diff --git a/src/models/player/Player.tscn b/src/models/player/Player.tscn index be57bcd..6ae7ba3 100644 --- a/src/models/player/Player.tscn +++ b/src/models/player/Player.tscn @@ -1,12 +1,9 @@ -[gd_scene load_steps=5 format=2] +[gd_scene load_steps=4 format=2] [ext_resource path="res://src/models/player/sprite.png" type="Texture" id=1] [ext_resource path="res://src/models/player/player.gd" type="Script" id=2] [sub_resource type="RectangleShape2D" id=1] -extents = Vector2( 4.5, 6 ) - -[sub_resource type="RectangleShape2D" id=2] extents = Vector2( 7, 11 ) [node name="Player" type="KinematicBody2D"] @@ -16,12 +13,6 @@ script = ExtResource( 2 ) texture = ExtResource( 1 ) centered = false -[node name="WallCollider" type="CollisionShape2D" parent="."] -position = Vector2( 12.5, 17 ) -shape = SubResource( 1 ) - -[node name="EnemyCollider" type="Area2D" parent="."] - -[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyCollider"] +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2( 12, 12 ) -shape = SubResource( 2 ) +shape = SubResource( 1 ) diff --git a/src/models/player/player.gd b/src/models/player/player.gd index b990357..0fc2b9e 100644 --- a/src/models/player/player.gd +++ b/src/models/player/player.gd @@ -7,6 +7,6 @@ func get_input(): var input_direction = Input.get_vector("left", "right", "up", "down") velocity = input_direction * speed -func _physics_process(_delta): +func _physics_process(delta): get_input() - velocity = move_and_slide(velocity) + move_and_slide(velocity) diff --git a/src/scenes/game/sprites/health/0.png b/src/scenes/game/sprites/health/0.png deleted file mode 100644 index cea72d7..0000000 Binary files a/src/scenes/game/sprites/health/0.png and /dev/null differ diff --git a/src/scenes/game/sprites/health/1.png b/src/scenes/game/sprites/health/1.png deleted file mode 100644 index f3a9542..0000000 Binary files a/src/scenes/game/sprites/health/1.png and /dev/null differ diff --git a/src/scenes/game/sprites/health/1.png.import b/src/scenes/game/sprites/health/1.png.import deleted file mode 100644 index ec3fc65..0000000 --- a/src/scenes/game/sprites/health/1.png.import +++ /dev/null @@ -1,35 +0,0 @@ -[remap] - -importer="texture" -type="StreamTexture" -path="res://.import/1.png-047cc618dec88d280c194537c3a6f7ff.stex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://src/scenes/game/sprites/health/1.png" -dest_files=[ "res://.import/1.png-047cc618dec88d280c194537c3a6f7ff.stex" ] - -[params] - -compress/mode=0 -compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 -compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 -process/fix_alpha_border=true -process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false -process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=false -svg/scale=1.0 diff --git a/src/scenes/game/sprites/health/2.png b/src/scenes/game/sprites/health/2.png deleted file mode 100644 index 7f6fb95..0000000 Binary files a/src/scenes/game/sprites/health/2.png and /dev/null differ diff --git a/src/scenes/game/sprites/health/2.png.import b/src/scenes/game/sprites/health/2.png.import deleted file mode 100644 index 156377f..0000000 --- a/src/scenes/game/sprites/health/2.png.import +++ /dev/null @@ -1,35 +0,0 @@ -[remap] - -importer="texture" -type="StreamTexture" -path="res://.import/2.png-7a1d2df16559ebcf67438a13aec9cf5d.stex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://src/scenes/game/sprites/health/2.png" -dest_files=[ "res://.import/2.png-7a1d2df16559ebcf67438a13aec9cf5d.stex" ] - -[params] - -compress/mode=0 -compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 -compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 -process/fix_alpha_border=true -process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false -process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=false -svg/scale=1.0 diff --git a/src/scenes/game/sprites/health/3.png b/src/scenes/game/sprites/health/3.png deleted file mode 100644 index 2ef2f2b..0000000 Binary files a/src/scenes/game/sprites/health/3.png and /dev/null differ diff --git a/src/scenes/game/sprites/health/3.png.import b/src/scenes/game/sprites/health/3.png.import deleted file mode 100644 index 5be0b8a..0000000 --- a/src/scenes/game/sprites/health/3.png.import +++ /dev/null @@ -1,35 +0,0 @@ -[remap] - -importer="texture" -type="StreamTexture" -path="res://.import/3.png-cf9102fa2f0f8d9abb6f2ada3be84162.stex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://src/scenes/game/sprites/health/3.png" -dest_files=[ "res://.import/3.png-cf9102fa2f0f8d9abb6f2ada3be84162.stex" ] - -[params] - -compress/mode=0 -compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 -compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 -process/fix_alpha_border=true -process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false -process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=false -svg/scale=1.0 diff --git a/src/scenes/game/sprites/ui_background.png b/src/scenes/game/sprites/ui_background.png new file mode 100644 index 0000000..91e3c5b Binary files /dev/null and b/src/scenes/game/sprites/ui_background.png differ diff --git a/src/scenes/game/sprites/health/0.png.import b/src/scenes/game/sprites/ui_background.png.import similarity index 68% rename from src/scenes/game/sprites/health/0.png.import rename to src/scenes/game/sprites/ui_background.png.import index 07dc339..d4084d9 100644 --- a/src/scenes/game/sprites/health/0.png.import +++ b/src/scenes/game/sprites/ui_background.png.import @@ -2,15 +2,15 @@ importer="texture" type="StreamTexture" -path="res://.import/0.png-02c85cf70c99d3d8411f3ce28c6dff74.stex" +path="res://.import/ui_background.png-030d1f5334fbad3eaea2cac1b65bbd0c.stex" metadata={ "vram_texture": false } [deps] -source_file="res://src/scenes/game/sprites/health/0.png" -dest_files=[ "res://.import/0.png-02c85cf70c99d3d8411f3ce28c6dff74.stex" ] +source_file="res://src/scenes/game/sprites/ui_background.png" +dest_files=[ "res://.import/ui_background.png-030d1f5334fbad3eaea2cac1b65bbd0c.stex" ] [params] diff --git a/src/scenes/menu/menu.gd b/src/scenes/menu/menu.gd index 6ea9112..e2139dc 100644 --- a/src/scenes/menu/menu.gd +++ b/src/scenes/menu/menu.gd @@ -1,7 +1,7 @@ extends Node func game_start(): - get_tree().change_scene_to(Global.GAME_SCENE) + get_tree().change_scene_to(Global.game_scene) func game_exit(): get_tree().quit(0)