Table Of Contents
  • The Alice Virtual World
  • Design and Implementation
  • Writing an animation program
  • Methods and Parameters

The Alice Virtual World

Alice is an object programming language that uses the concept of a virtual world. It requires the programmer to be creative and adept at creating a virtual world and populating it with cool scenes and characters. Alice is an animation programming language. The codes written are like movie scripts that direct production in the virtual world. A virtual world is a simulation that has been implemented in 3D. In Alice, the programmer uses his/her imagination to come up with animation ideas by adding objects to the scene. If you have been in a flight simulator or a 3D video game, you probably understand how objects are moved to create an illusion of motion. Alice uses the same animation techniques used by film studios like Disney.

Design and Implementation

Alice uses the objects-first approach in programming. When writing a code that animates 3D objects in your virtual world, you are merely creating objects and the actions those objects can perform. This approach is almost similar to handling word problems in math. Before solving the math problem, you will first read through it to understand what is required. In the same way, when we are writing an animation program, you have to understand the description of the game, simulation, or story before deciding on the steps you will take to design the animation. The design process in Alice is made up of a scenario and a storyboard. A visual storyboard is used to fracture a scenario into a series of scenes. It also creates a transition between the scenes.

Writing an animation program

An animation program can be deemed as a script for a play. It describes the actions, texts, and sounds that will be used by objects in the virtual world. Alice has a program code editor that is used to write instructions. You should save your program in a file after writing it. This will enable you to run it several times without having to write it all over again. When you open the editing pane for the first time, you will notice that Alice uses the name World. my first method. You can change this name and create yours. When you run the instructions on the code editor by pressing the “play” button, Alice will execute World. my first method. A storyboard can help you plan the order of your instructions.

Methods and Parameters

Parameters and methods vital concepts in object-oriented programming. The methods in Alice can either be world-level or character-level. World-level methods are the actions of a variety of objects (more than one). On the other hand, character-level methods are the actions of a single object that is acting alone. Character-level methods are the same as class-level methods in computer science. Just like in object-oriented programming, Alice's methods must be called. Comments can also be used to document the code. Parameters are a line of communication between methods. It communicates the object names and values to methods.