IBM TJ Watson Research

IBMSteadyHand

IBMSteadyHand.mp4

Description

A simple game to move the pointer from the start to the end without touching the side walls - needs a steady hand.

A single image is used with MaterialKey to create a 'track' where the area of the image is transparent and is not part of the geometry - as defined by the Bitmap node. Where the image is thus not transparent it is made sensitive to the pointer using a TouchSensor.

Two white circles lay below the image and can be seen, and touched, in the 'track'. The dot at the top left corner is clicked to start the game. Clicking this starts a counter which clocks the elapsed time, see IBMIncrementer for this technique. Once clicked the sensors on the maze are enabled.

The game is ended one of two ways. Touching the side walls of the track; in which case you have failed. The clock is stopped, all sensors are disabled and the MaterialKey isKeyed is set to false. Get to the center and pass over the center white dot and you win.

Screenshot

Snapshot with the game ready to go, as at startup

Snapshot taken after start dot clicked.

Failure. isKeyed is set false and the white dots are hidden.

A winner. Can you beat the time to the center?



Back to main index