Skip to content

Commit

Permalink
cleaned up build directory
Browse files Browse the repository at this point in the history
added clown animations
  • Loading branch information
renx99 committed Jan 30, 2024
1 parent 9d27b1d commit 8a1efef
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 0 deletions.
Binary file removed build/CHC.console.exe
Binary file not shown.
Binary file removed build/CHC.exe
Binary file not shown.
Binary file removed build/CHC.pck
Binary file not shown.
Binary file removed build/CHC.zip
Binary file not shown.
3 changes: 3 additions & 0 deletions scripts/clown.gd
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,19 @@ func _physics_process(delta):
var direction = 0
if $left_ray.is_colliding():
direction = -1
$AnimatedSprite2D.play("walk-left")

if $right_ray.is_colliding():
direction = 1
$AnimatedSprite2D.play("walk-right")

if direction:
$clown_sound.play()
velocity.x = direction * SPEED
else:
$clown_sound2.play()
velocity.x = move_toward(velocity.x, 0, SPEED)
$AnimatedSprite2D.play("idle")

move_and_slide()

Expand Down

0 comments on commit 8a1efef

Please sign in to comment.