Look inside at the Stage and the Ball sprite code. Click inside the large circle for bouncing balls to appear (this is just an example project). This is a basic project illustrating the following general aspects of how I usually go about making a Scratch project: - How I use and name global, sprite-only and "local" variables. - How I, in a basic project, use ONE "When green flag clicked" and control the project from there using broadcasts such as "Initialize" and wait, followed by "Start". - How I, particularly in tutorials and example projects, try to avoid complicated math (such as trigonometry), and instead use Scratch's Motion blocks as far as possible (sometimes at the expense of optimum performance). Also, some tricks which I think is good practice are illustrated: - Using a boolean sprite-only-variable called "is clone" and a global clone-counter-variable "associated" with that sprite to manage clones. - Using a global variable to block the initiation of an input event (such as mouse click), while that event is being handled.
All code by me (@kriblo). This is a work in progress. Right now it's more of an example really, I will try to make it more concise, as well as more extensive. I will likely make separate projects illustrating different types of projects.