Scratch for Java

Robot

An example with a stage and a sprite class of its own. In the source code each class has a file of its own; here they share one.

robot example

Run it here

The robot bounces around the stage. Debug mode is on, so you see its hitbox and its position while it moves.

To run it on your own computer, copy the folder sprites of the source code next to the program.

Source Code:

Robot

Create Shareable URL

Select Sections