Programming in Alice
Programming in Alice
ONE
What is a Computer Program?
What is a Computer Program?
● Camera View
● Methods Panel
● Editor
● Control Panel
The Alice Code Editor
Camera View
Methods Panel
Code Editor
Control Panel
The control panel like the methods panel has
blocks that you drag into the Code Editor to build
your program. These elements are generally more
structural elements for your program like:
Built in Procedures
Parameters
Required Parameters
Alice doesn’t allow you to create broken code (most of the
time).
Optional Parameters
Alice has a number of parameters that can be added to
statements using the add detail dropdown. These can help create
necessary variations. For move procedures these are:
Create a Statement
Runtime Errors
Sometimes things will go wrong when you run your
program and you will see the angry queen or an error screen
instead of your program. Don’t worry this happens to
everyone.
The error screen should tell you what is wrong with your
program to help you go back and fix it. If you see red code
in your program this probably means there is an issue, such
as having deleted the object that is referenced.
Sometimes you can continue past the error and still run
your world.
Do In Order
● Do this
● Then this
Control Structures
Do Together
Control structures allow you to change the
sequence or logic that controls the order and
timing of statements being run.
Undo/Redo
You can always undo or redo work to easily test to see what will happen.
Windows Mac
Editing Code
Reordering Statements
Deleting Statements
Disabling Code
Alice provides a lot of helpful built-in orientation procedures that can be very useful for
moving objects to and from each other.
Use camera markers to plan for the positions and orientations of the camera. Then use the camera markers
to program the camera moves, adding dynamic changes to animations.
Change the duration of the camera move to have it pan slowly or jump to the new view (use 0)
Scene Effects
Adding Sound
Adding sound can quickly transform an animation and
bring it to life using the playAudio procedure. There are a
couple different ways to easily add sound:
Incremental Development
Alice is meant to be a platform that allows you to quickly iterate your designs. Don’t be
afraid to:
● Repeat above or, if you like it, move on to the next part of your project.
Tips and Tricks
Save Often