From 787210847b4b8ee023708f0ca1c0b91ca5ef3775 Mon Sep 17 00:00:00 2001 From: mehbark Date: Sun, 4 May 2025 19:11:45 -0400 Subject: [PATCH] animate wall bumps --- piece.gd | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/piece.gd b/piece.gd index fca87cf..decca9f 100644 --- a/piece.gd +++ b/piece.gd @@ -51,14 +51,13 @@ func do_step(board: Board): # ball being collided *with* gets the remainder of the momentum # EMERGENT COMPLEXITY!??!? if board.solid_at(new_pos): + do_bump(move).call() var ball_here := board.type_at(new_pos, Piece.Type.Ball) if ball_here: - do_bump(move).call() var rem := lvel % 2 ball_here.do_push(lvel/2 + rem).call() lvel = -lvel/2 else: - lpos = lpos lvel -= move return lpos = new_pos