You are previewing Alice 3 Cookbook.
O'Reilly logo
Alice 3 Cookbook

Book Description

Overview of Alice 3 Cookbook

  • A cookbook for teachers who would like to demonstrate the basics of programming by creating marvelous animated scenes

  • Work with the new Alice 3 environment to add instances and inspect their properties, procedures, and functions

  • Develop interactive 3D scenes and videos with Alice 3

  • The book covers the new Sims module incorporated in Alice 3

  • In Detail

    Alice is a free and innovative 3D programming environment that makes it easy to create an animation for telling a story, playing an interactive game, or a video to share on the Web. Alice is a teaching tool designed as a revolutionary approach to teaching and learning introductory programming concepts.

    Alice 3 Cookbook focuses on performing common tasks required in classrooms with Alice 3. The recipes target teachers who would like to take advantage of this exciting 3D environment in their classrooms and/or labs.

    Alice 3 uses 3D graphics and a drag-and-drop interface to facilitate a more engaging, less frustrating programming experience. Each recipe provides step-by-step instructions that allow you to learn the most important Alice features by example. You will learn about everything from the addition of the initial actors, up to the advanced procedures to react to the keyboard and mouse input.

    You will work with the different elements that compose a scene and learn how to change the values for properties and run simple methods. Discover how to create simple animations that will allow you to recognize the most important elements of the user interface and explore the models provided by Alice to use them in games.

    A cookbook for teachers filled with practical recipes for showing students how to build scenes with animations and videos, using Alice 3

    Table of Contents

    1. Alice 3 Cookbook
      1. Alice 3 Cookbook
      2. Credits
      3. About the Author
      4. Acknowledgement
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers, and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
        7. Downloading the example code for this book
          1. Errata
          2. Piracy
          3. Questions
      8. 1. Setting Scenes
        1. Introduction
        2. Working with templates to create a new planet
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        3. Checking the instances that compose a scene
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        4. Inspecting the properties for each instance that composes a scene
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        5. Defining a light's initial properties
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Animating light's properties
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        7. Animating an instance's property
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        8. Checking the procedures and functions for each instance
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        9. Playing background music
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
      9. 2. Working with Actors
        1. Introduction
        2. Browsing galleries to search for a specific class
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        3. Creating a new instance from a class in a gallery
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        4. Setting initial properties for an actor
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        5. Moving an actor
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
            3. See also
          3. Resizing an actor
            1. Getting ready
            2. How to do it...
              1. How it works...
              2. There's more...
              3. See also
            3. Working with multiple actors
              1. Getting ready
              2. How to do it...
              3. How it works...
              4. See also
            4. Moving an actor with relative positions
              1. Getting ready
              2. How to do it...
                1. How it works...
                2. See also
              3. Facing an actor to a target actor
                1. Getting ready
                2. How to do it...
                  1. How it works...
                  2. See also
      10. 3. Organizing Statements
        1. Introduction
        2. Performing many statements in order
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        3. Using a counter to run statements many times
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. See also
          3. Running statements for different actors
            1. Getting ready
            2. How to do it...
            3. How it works...
            4. See also
          4. Running statements for many actors
            1. Getting ready
            2. How to do it...
            3. How it works...
            4. See also
          5. Running many statements at the same time
            1. Getting ready
            2. How to do it...
            3. How it works...
            4. There's more...
            5. See also
          6. Repeating statements at the same time
            1. Getting ready
            2. How to do it...
            3. How it works...
            4. See also
          7. Declaring new procedures
            1. Getting ready
            2. How to do it...
            3. How it works...
            4. See also
          8. Calling customized procedures
            1. Getting ready
            2. How to do it...
              1. How it works...
              2. See also
      11. 4. Working with Functions and Conditions
        1. Introduction
        2. Running conditional code
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        3. Running conditional code within a counter
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. See also
          3. Working with the NOT operator
            1. Getting ready
            2. How to do it...
            3. How it works...
            4. See also
          4. Working with the BOTH...AND operator
            1. Getting ready
            2. How to do it...
              1. How it works...
              2. See also
            3. Working with the EITHER...OR operator
              1. Getting ready
              2. How to do it...
                1. How it works...
                2. See also
              3. Working with relational operators
                1. Getting ready
                2. How to do it...
                  1. How it works...
                  2. There's more...
                  3. See also
                3. Running a loop while a condition is true
                  1. Getting ready
                  2. How to do it...
                  3. How it works...
                  4. See also
                4. Declaring and calling new functions
                  1. Getting ready
                  2. How to do it...
                    1. How it works...
                    2. See also
      12. 5. Working with Variables
        1. Introduction
        2. Working with a local variable
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        3. Changing values of variables
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        4. Working with many local variables
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        5. Working with constants
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Using arrays to control two instances
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        7. Using variables to hold instances of generic classes
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        8. Using variables to hold separate instances
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. See also
          3. Working with parts of characters
            1. Getting ready
            2. How to do it...
              1. How it works...
              2. See also
      13. 6. Working with Properties
        1. Introduction
        2. Defining new properties to store real numbers
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        3. Using properties to call procedures
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        4. Changing the properties initial values
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        5. Combining local variables and properties
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Calculating new values for properties
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        7. Working with many instances of the same class
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        8. Using properties to call functions
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        9. Assigning values entered by the user to properties
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
      14. 7. Working with People
        1. Introduction
        2. Creating a random person
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        3. Customizing a person's body
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Customizing a person's head
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        5. Animating a person's body
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        6. Animating a person's head
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        7. Interaction between characters in the scene
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. See also
          3. Speaking with other people
            1. Getting ready
            2. How to do it...
              1. How it works...
              2. See also
            3. Interacting with the environment
              1. Getting ready
              2. How to do it...
                1. How it works...
                2. There's more...
                3. See also
      15. 8. Working with Keyboard and Mouse Input
        1. Introduction
        2. Defining a mouse button listener
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Reacting to mouse events
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There’s more...
          5. See also
        4. Controlling an actor with the mouse
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        5. Defining a key listener
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There’s more...
          5. See also
        6. Reacting to keyboard events
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        7. Controlling an actor with keystrokes
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There’s more...
          5. See also
        8. Controlling the camera with the keyboard
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        9. Controlling multiple actors with keystrokes
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
      16. 9. Creating Interactive Stories
        1. Introduction
        2. Dressing a person
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        3. Building a house
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. See also
          3. Talking at the cafeteria
            1. Getting ready
            2. How to do it...
              1. How it works...
            3. Managing an amusement park
              1. Getting ready
              2. How to do it...
                1. How it works...
              3. Organizing the layout of a bedroom
                1. Getting ready
                2. How to do it...
                  1. How it works...
                3. Creating an epic story
                  1. Getting ready
                  2. How to do it...
                    1. How it works...
                  3. Enabling a person to throw a basketball through a hoop
                    1. Getting ready
                    2. How to do it...
                      1. How it works...
                      2. There's more...
                      3. See also
                    3. Working with animals on a farm
                      1. Getting ready
                      2. How to do it...
      17. 10. Customizing the Output
        1. Introduction
        2. Controlling the output to get different views
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        3. Setting the camera's initial position
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        4. Exporting a video
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        5. Sharing a video
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Working with multiple camera markers
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        7. Providing different points of view for a 3D world
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        8. Following characters with the camera
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also