Added level 4

This commit is contained in:
2026-07-03 14:50:38 +03:00
parent d4da0d3822
commit d5ef624218
9 changed files with 3604 additions and 40 deletions
+1 -13
View File
@@ -32,12 +32,6 @@ const CAMERA_OFFSET_TIME = 1.0
@export_range(0.0, 1000.0) var slow_down_sustain := 0.70
@export_range(0.0, 1000.0) var slow_down_release := 0.25
@export var camera_limit_right := 10000000:
set(value):
camera_limit_right = value
if is_node_ready():
_update_camera_limit_right()
var _slow_down_tween: Tween
var _camera_offset_tween: Tween
@@ -87,9 +81,7 @@ func _ready() -> void:
sprite.hide()
func _physics_process(delta: float) -> void:
_update_camera_limit_right()
func _physics_process(delta: float) -> void:
if is_on_floor():
floor_coyote_time_timer.start()
_last_wall_normal = 0.0
@@ -170,10 +162,6 @@ func deal_damage(value: float) -> void:
dead.emit()
func _update_camera_limit_right() -> void:
camera.limit_right = camera_limit_right
func _can_attack() -> bool:
if not attack_cooldown_timer.is_stopped():
return false
+4
View File
@@ -4,6 +4,7 @@ extends Node2D
const CORRUPTION_DAMAGE = 10.0
const MAX_DISTANCE_TO_CORRUPTION = 320.0
const CAMERA_LIMIT_OFFSET = -20
@export var is_player_running_on_start := true
@@ -30,6 +31,7 @@ var _corruption_x: float
@onready var code_material : ShaderMaterial = $%CodeSprite.material
@onready var camera : Camera2D = player.camera
@onready var level_end : Area2D = $LevelEnd
@onready var parallax_1 : Parallax2D = $Background/Parallax1
@@ -37,6 +39,8 @@ var _corruption_x: float
func _ready() -> void:
parallax_1.scroll_offset.x = -background_offset * parallax_1.scroll_scale.x
camera.limit_right = int(level_end.position.x + CAMERA_LIMIT_OFFSET)
_corruption_x = initial_corruption_x
pause_menu.hide()
game_over_menu.hide()
+18 -3
View File
@@ -3418,8 +3418,8 @@ glow_intensity = 4.0
glow_hdr_threshold = 0.5
glow_hdr_scale = 4.0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_bhunq"]
size = Vector2(20, 200)
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_4ocoy"]
normal = Vector2(-1, 0)
[node name="AbstractLevel" type="Node2D" unique_id=1001045799]
script = ExtResource("1_o2mui")
@@ -3439,6 +3439,21 @@ texture = ExtResource("2_3fw0b")
tile_set = SubResource("TileSet_4l6p7")
[node name="Player" parent="." unique_id=763780926 instance=ExtResource("2_r0ht6")]
position = Vector2(0, -224)
move_max_speed_normal = null
move_max_speed_slowed = null
move_acceleration = null
jump_max_fall_speed = null
jump_floor_velocity = null
jump_wall_velocity = null
gravity_factor_jump = null
gravity_factor_fall = null
gravity_factor_slide = null
gravity_factor_passive_jump = null
slow_down_attack = null
slow_down_sustain = null
slow_down_release = null
camera_limit_right = null
[node name="TileMapLayer" type="TileMapLayer" parent="." unique_id=502099522]
tile_set = SubResource("TileSet_71ysb")
@@ -3505,7 +3520,7 @@ collision_layer = 0
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="LevelEnd" unique_id=1314456096]
shape = SubResource("RectangleShape2D_bhunq")
shape = SubResource("WorldBoundaryShape2D_4ocoy")
[connection signal="dead" from="Player" to="." method="_on_player_dead"]
[connection signal="timeout" from="CorruptionTimer" to="." method="_on_corruption_timer_timeout"]
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -1
View File
@@ -4,7 +4,8 @@
[ext_resource type="PackedScene" uid="uid://deto1j12jm5rf" path="res://game/levels/level_1.tscn" id="2_dp0cj"]
[ext_resource type="PackedScene" uid="uid://d0rwlgmvvo637" path="res://game/levels/level_2.tscn" id="3_r84xe"]
[ext_resource type="PackedScene" uid="uid://ci2pna4al2l1g" path="res://game/levels/level_3.tscn" id="4_r84xe"]
[ext_resource type="PackedScene" uid="uid://b2melvf4sxh3y" path="res://game/levels/level_4.tscn" id="5_yl05u"]
[node name="LevelManager" type="Node" unique_id=1657502743]
script = ExtResource("1_te7jw")
levels = Array[PackedScene]([ExtResource("2_dp0cj"), ExtResource("3_r84xe"), ExtResource("4_r84xe")])
levels = Array[PackedScene]([ExtResource("2_dp0cj"), ExtResource("3_r84xe"), ExtResource("4_r84xe"), ExtResource("5_yl05u")])