level 4 a bowser

This commit is contained in:
Jonas Braus
2024-08-03 22:13:40 +02:00
parent 30b0a527b4
commit a9c2f587da
24 changed files with 8249 additions and 5 deletions
+6 -2
View File
@@ -76,7 +76,7 @@ func _process(delta):
# set camera
if position.y <= 32:
camera_2d.limit_bottom = 32
camera_2d.limit_top = -1000000
camera_2d.limit_top = -1000
else:
camera_2d.limit_bottom = 272
camera_2d.limit_top = 32
@@ -163,7 +163,8 @@ func _physics_process(delta):
func grow():
if not is_big:
is_big = true
position.y -= 20
if is_on_floor():
position.y -= 20
collision_shape_2d.shape.height = 31
pipedetector_ground.position.y += 8
@@ -175,6 +176,9 @@ func flower():
is_flower = true
func shrink():
if on_pause:
return
if is_flower:
is_flower = false
shrink_sound.play()