You'd have a stage, a sprite, and a couple of pieces of script that let the sprite move left and right.
Scratch takes care of making the stage, and making the sprite appear on the stage.
In Javascript, you need to do all that stuff yourself. We'll show you how.
|