minor stuff

This commit is contained in:
Jonas Braus
2024-08-04 15:48:20 +02:00
parent e7e72f6109
commit 2e845bf217
7 changed files with 29473 additions and 2 deletions
+4 -1
View File
@@ -16,7 +16,8 @@ extends CharacterBody2D
const SPEED = 130.0
const JUMPt_velocity = -360.0
var JUMPt_velocity = -360.0
var org_jump_veloc : int
var on_pipe = false
var right_pipe = false
var left_pipe = false
@@ -69,6 +70,7 @@ func _unhandled_input(event):
func _ready():
color_rect.visible = false
org_jump_veloc = JUMPt_velocity
pipedetector_ground.position.y = 0
collision_shape_2d.shape.height = 15
@@ -85,6 +87,7 @@ func _process(delta):
if on_pipe and (Input.is_action_just_pressed("crawl") or crawl) and is_on_floor() or right_pipe and (Input.is_action_pressed("move_right") or t_velocity > 0):
pipe_sound.play()
crawl = false
on_pause = true
t_velocity = 0
color_rect.visible = true
pipe_timer.start()