HOME > SNAPCODE > GALLERY > MOUSE AND KEYBOARD

SnapCode Mouse and Keyboard Sensing

 

SnapCode is a new educational IDE for graphically constructing code by drag and drop of code building blocks. This demo shows:

  • Creating a SnapCode project
  • Adding an Actors to the Scene
  • Adding code blocks to the act() method to move/turn an actor when the mouse is pressed
  • Adding code blocks to the act() method to move/turn actors when a key is pressed or clicked
  • Adding pen methods to leave a pen trail behind the actors
 

More: Custom Backgrounds.