]> git.eshelyaron.com Git - emacs.git/commit
Fix pong collision detection
authorMauro Aranda <maurooaranda@gmail.com>
Wed, 7 Aug 2019 00:48:41 +0000 (21:48 -0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 10 Aug 2019 08:50:08 +0000 (11:50 +0300)
commit7ff96f95d7d67fc1489fca9fd3ab4a99328a5b8a
treec11ccf06cbb767a5574385c5fd4274329260e364
parente503e9d35f80ff064c9f0ef24e514b00f5e214f9
Fix pong collision detection

* lisp/play/pong.el (pong-update-game): If the ball hit the bat where
bats are positioned, draw again the bat cell in the old ball
position.  (Bug#20579).
Also, avoid changing the direction of the ball right after hitting the
bats, and improve the collision detection against the borders.
lisp/play/pong.el