Mike Scott University of Texas at Austin

Slides:



Advertisements
Similar presentations
Numbers Treasure Hunt Following each question, click on the answer. If correct, the next page will load with a graphic first – these can be used to check.
Advertisements

Module 3: Block 3 Call Management
Module 1: BLOCK 1 / MAIN MENU
1 WORKING WITH 2007 WORD Part 1 Developed October 2007 with lots of help from.
1
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
BASIC SKILLS AND TOOLS USING ACCESS
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
Chung for Robofest 05 1 Introduction to RoboLab CJ Chung Lawrence Technological University.
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
Manuscript Central Training Author Center Module 2.
1 RA I Sub-Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Casablanca, Morocco, 20 – 22 December 2005 Status of observing programmes in RA I.
Microsoft Access 2007 Advanced Level. © Cheltenham Courseware Pty. Ltd. Slide No 2 Forms Customisation.
Exit a Customer Chapter 8. Exit a Customer 8-2 Objectives Perform exit summary process consisting of the following steps: Review service records Close.
Local Customization Chapter 2. Local Customization 2-2 Objectives Customization Considerations Types of Data Elements Location for Locally Defined Data.
Process a Customer Chapter 2. Process a Customer 2-2 Objectives Understand what defines a Customer Learn how to check for an existing Customer Learn how.
Custom Statutory Programs Chapter 3. Customary Statutory Programs and Titles 3-2 Objectives Add Local Statutory Programs Create Customer Application For.
Create a Simple Game in Scratch
Game Making with Alice Eat the Hay Game
SimpleGameInAlice1 Barb Ericson Georgia Institute of Technology June 2008 Creating a Simple Game in Alice.
1 Click here to End Presentation Software: Installation and Updates Internet Download CD release NACIS Updates.
Microsoft®.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Windows XP Project An Introduction to Microsoft Windows XP and Office 2003.
Creating a Dreamweaver Web Page and Local Site
Excel Functions. Part 1. Introduction 2 An Excel function is a formula or a procedure that is performed in the Visual Basic environment, outside the.
ETS4 - What's new? - How to start? - Any questions?
© Telcordia Technologies 2004 – All Rights Reserved AETG Web Service Advanced Features AETG is a service mark of Telcordia Technologies. Telcordia Technologies.
PP Test Review Sections 6-1 to 6-6
Bright Futures Guidelines Priorities and Screening Tables
Vanderbilt Business Objects Users Group 1 Reporting Techniques & Formatting Beginning & Advanced.
Reporting Throughout this slide show there will be hyperlinks (highlighted in blue). Follow the hyperlinks to navigate to the specified Topic or Figure.
Lesson 2 Navigating LabVIEW
Creating a WordPress Website Oklahoma Conference of The UMC Department of Communications 1.
INTRODUCTION Lesson 1 – Microsoft Word Word Basics
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Office 2003 Integration Integrating Office 2003 Applications and the World Wide Web.
Benchmark Series Microsoft Excel 2013 Level 2
COMPUTER INTERFACES.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
1 RA III - Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Buenos Aires, Argentina, 25 – 27 October 2006 Status of observing programmes in RA.
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
4 Oracle Data Integrator First Project – Simple Transformations: One source, one target 3-1.
1..
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
Page 1 of 43 To the ETS – Bidding Query by Map Online Training Course Welcome This training module provides the procedures for using Query by Map for a.
Collin College Credit Exam
2004 EBSCO Publishing Presentation on EBSCOadmin.
Analyzing Genes and Genomes
Essential Cell Biology
Clock will move after 1 minute
PSSA Preparation.
Chapter 11 Creating Framed Layouts Principles of Web Design, 4 th Edition.
Essential Cell Biology
Immunobiology: The Immune System in Health & Disease Sixth Edition
Energy Generation in Mitochondria and Chlorplasts
Select a time to count down from the clock above
1.step PMIT start + initial project data input Concept Concept.
© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 2Managing and Integrating Data and the Excel Environment Chapter 6Protecting and Sharing Workbooks.
Page 1 Orchard Harvest ™ LIS Find a Patient Training.
South Dakota Library Network MetaLib User Interface South Dakota Library Network 1200 University, Unit 9672 Spearfish, SD © South Dakota.
Chapter 16 Graphical User Interfaces John Keyser’s Modifications of Slides by Bjarne Stroustrup
Making a Boat Racing Game in Alice By Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2010.
Alice 2.0 Introductory Concepts and Techniques Project 1 Exploring Alice and Object-Oriented Programming.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
Presenter: Carol Liss Timberlane Regional Middle School 6 th and 7 th grade Tech. Educator Co presenters:
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Learning Java with Alice 3.0 Game Design Kathy Bierscheid
Creating a Simple Game in Scratch
Presentation transcript:

Mike Scott University of Texas at Austin Game Making with Alice Mike Scott University of Texas at Austin Game Making with Alice

What is Alice? Alice is a visual programming language. Alice is designed to teach you how to program The output of Alice programs are movies. The movies can be interactive

Alice and Visual Programming Programming is done by pointing and clicking, dragging and dropping, selecting from menus, and some typing Download Alice for free: www.alice.org

Object Tree World View Event Editor Details Panel Control Primitives Code Editor

Alice Models Main programming data are 3d models Many built in and more on web

Output Output are 3d movies A lot easier to recognize logic errors run the program, play a movie can also add sound to programs A lot easier to recognize logic errors "Why do my ninja's arms keep flying away?"

Sample Program - Bunny and Broccoli

Click the Cow Game Making with Alice

Eat the Hay Game Making with Alice

Start Alice Double click on the Alice icon to start Alice It may take a minute to start up Cancel the opening dialog screen Game Making with Alice

Build the Scene Click on the add objects button at the bottom right of the scene Scroll to the Farm category and clock on Farm Game Making with Alice

Add Objects to Scene Click and Drag some objects into the scene Once in the scene objects can be positioned with the mouse Object can be rotated by selecting the proper option from the menu in the upper right If you want to get rid of an object right click it and select delete Game Making with Alice

A Farm Background Yours can be different. Game Making with Alice

Add The Cow Click on the Local Gallery to get back to the list of categories Open the Animals Category Scroll over to the Cow and add one to the world Game Making with Alice

Back to Programming Exit the scene editor by clicking the done button Game Making with Alice

Make a method to hide the cow Click on the cow in the object tree. Click on the methods in the details window Click on the create new method button Name the method hide Game Making with Alice

Add commands to the hide method Click on the properties tab in the detail window Drag the opacity = 1(100%) icon into the window for hide Change the opacity to 0(0%) Click on the methods tab in the details window Drag over the cow move command Select down for the direction and other for the amount. Set to 2 Game Making with Alice

The completed hide method Game Making with Alice

Create the pop up method Click the cow in the object tree Click on methods Click the create new method button name the method popUp SimpleGameInAlice

Move the cow randomly Start by dragging out cow move tiles one for each of left, right, forward, and backward Click on world in the object tree to select it Click on functions in the details window Drag out random number and drop it on the 1 meter select more and change max to 2 Be sure to drop the random number on the 1 meter when the 1 meter is in a green box. The green box shows where the dropped tile will go. SimpleGameInAlice

Add a comment You can add a comment to explain what you are doing in English Drag a // tile from the bottom of the method editing window to where you wish to place the comment Click on the down arrow Select other Type in the comment SimpleGameInAlice

Showing the cow Click on cow in the object tree to select it Click on methods in the details window Drag out a cow move tile select up 2 meters Click on properties in the details window Drag out opacity = 0 change to 1 (100%) SimpleGameInAlice

Completed popUp method

Adding a property (field) We need to store the number of time the cow has been clicked Click the cow in the object tree Click on the properties tab Click the create new variable button name the variable numClicks set the value to 0 By default the type of the new variable is a number which is fine since we will use this field to record the number of hits. SimpleGameInAlice

Increment the number of hits If the user clicks on the cow we want to add 1 to the number of clicks so far Create a method that does this It should be a new cow method (cow selected in object tree) Drag numClicks variable into method and select the increment cow.numClicks by 1 option SimpleGameInAlice

Respond to mouse click on cow In the events window click the create new event button select When the mouse is clicked on something Change the anything to the cow (the entire cow) Change the nothing to cow incrementClicks SimpleGameInAlice

Method to run the game Click on world in the object tree Select methods and edit the my first method Pull up a while tile from the bottom of the editor window and drop into the my first method select true SimpleGameInAlice

Change while loop Click on functions tab drag out a < b and drop it on true select 1 and 1

While number of hits < 5 Click on cow in the object tree Click on properties drag out numClicks = 0 and drop on the first 1 Change the second 1 to 5 click on other and enter 5 SimpleGameInAlice

Hide and wait a random amount of time Click on cow and then the methods Drag out hide Drag up a wait tile from the bottom of the editor window select 1 second Click on world in the object tree click on functions drag out random number and drop on the 1 second SimpleGameInAlice

pop up and wait for 1 second Change random number on wait to a min of 0.5 seconds Drag out a cow popUp Try it out! What happens after you click on the cow 5 times? SimpleGameInAlice

Tell the user they won Add some 3D text that tells the user she or he won Click on File and then on Add 3D Text Type in the text you can change the font Place it where you want it to appear Click on add objects to get to the mouse controls Click on done when done SimpleGameInAlice

Make the text invisible to start Click on the text in the object tree Click on properties Modify opacity to 0 (0%) SimpleGameInAlice

When the user wins show the text Drag out opacity = 0 to the my first method change to 1 (100%) Play the game! SimpleGameInAlice

Speeding things up in hide method All animation commands takes 1 second by default you can change this using the more… Drag a Do together block from the bottom and then drag both commands into it Do the same thing for the popUp method. SimpleGameInAlice

Speeding things up in popUp method Remove the random move left and forward Right click commands and select delete Change minimum on random move right and back to -2 Set duration on random moves to 0 Put move up and set opacity to 1 commands to a do together block and change duration to 0.5 seconds

Finished popUp method

Add instructions Create 3D text that tells the user what to do in the game When the game starts wait for 1 second then make the text invisible can set opacity to 0 SimpleGameInAlice

Show the number of hits Create 3D text that says Hits and one that says 0 Use the mouse controls to position the text Click on Add Objects to see the mouse controls when done click on done SimpleGameInAlice

Create World incrementClicks method Add an incrementClicks method to the world call the cow incrementClicks method click on the 0 3dText object then properties drag out text = 0 select default string replace the default string with the what as string function in the world to convert the number to a string choose expressions and pick cow numClicks as what to convert Why should we add the incrementHits method to the world and not just modify the cow increment hits? The problem is that we need to modify the 0 text which is not part of the cow put part of the world. In order to make reusable pieces we can't access things in cow methods that are not part of the cow. But, in the world incrementHits method we can call the cow increment hits method. SimpleGameInAlice

Change when mouse clicked Modify then when mouse is clicked on the cow to call the world's incrementClicks method Try it! SimpleGameInAlice

Other Ideas Have the cow play a sound when hit modify cow incrementClicks method use play sound in methods you can also record your own sounds click on properties for the cow click on the + next to Sounds and record a sound and name it Count the number of times the cow has appeared Add a way to lose maybe it will only run till it appears 10 times maybe add a timer and a time limit maybe add other cows that if you click on these you lose, change color of target cow to something like orange Make the amount of time you give the user to click on the cow a random amount from 0.5 to 1 second SimpleGameInAlice

Summary Alice can be used to create simple 3D games Concepts covered creating methods creating a property (field) creating a variable using a while loop creating a comment SimpleGameInAlice