Zapp image

HitTest with Key Press
by Dr Abstract
Here we test to see if a Circle is hitting a Rectangle as we press keys using the MotionController and a Ticker. There are all sorts of types of hitTests and different ways that we use them. See the docs but also the ZIM Tips for more info!
https://zimjs.com/zapp/Z_4296N
Circle Rectangle Label pos loc alp sca center MotionController Ticker

PROMO

EDITOR

FULL

SLATE

ZIM is a JavaScript Canvas Framework for everyone to Code Creativity! ZIM