game making with aliceeatthehay
TRANSCRIPT
-
7/25/2019 Game Making With AliceEatTheHay
1/30
Mike Scott
University of Texas at Austin
Games In Alice1
Game Making with AliceEat the Hay Game
-
7/25/2019 Game Making With AliceEatTheHay
2/30
hat is Alice!
"
Alice is a visual#rogramming language$
Alice is %esigne% to teach
you how to #rogramThe out#ut of Alice#rograms are movies$
The movies can &einteractive
Games In Alice
-
7/25/2019 Game Making With AliceEatTheHay
3/30
Alice an% 'isual(rogramming
)
(rogramming is %one &y #ointing an%clicking* %ragging an% %ro##ing* selectingfrom menus* an% some ty#ing
+ownloa% Alice for free,
www$alice$org
Games In Alice
-
7/25/2019 Game Making With AliceEatTheHay
4/30
Alternate Game - Eat TheHay.reate a Game with a cow$The arrow keys on the key&oar% control the
cow$
There are ) &ales of hay on the groun%$hen the cow gets close to the &ales they
%isa##ear$
Games In Alice
/
-
7/25/2019 Game Making With AliceEatTheHay
5/30
Start Alice
Games In Alice0
+ou&le click on the Alice icon to start AliceIt may take a minute to start u#
.ancel the o#ening%ialog screen
-
7/25/2019 Game Making With AliceEatTheHay
6/30
uil% the Scene
Games In Alice2
.lick on the a%%o&3ects &utton atthe &ottom right ofthe scene
Scroll to the 4arm
category an% clockon 4arm
-
7/25/2019 Game Making With AliceEatTheHay
7/30
A%% Hay to orl%
Games In Alice5
.lick an% %rag ) &ales ofhay into the scene
6nce in the sceneo&3ects can &e #ositione%with the mouse
6&3ect can &e rotate% &yselecting the #ro#er
o#tion from the menu inthe u##er right
If you want to get ri% ofan o&3ect right click it
an% select %elete
-
7/25/2019 Game Making With AliceEatTheHay
8/30
A%% The .ow
Games In Alice7
.lick on the 8ocal Gallery to get &ack to thelist of categories
6#en the Animals .ategory
Scroll over to the .ow an% a%% one to theworl%
-
7/25/2019 Game Making With AliceEatTheHay
9/30
Make The Hay igger.lick on the resi9e
o&3ects &utton
.lick on a &ale of haywith the mouse$
Move the mouse u# to
make it &igger$
Make all ) &igger
Games In Alice:
-
7/25/2019 Game Making With AliceEatTheHay
10/30
Exit Scene E%itor
Games In Alice1;
.lick the +one utton
-
7/25/2019 Game Making With AliceEatTheHay
11/30
A%% Events for .ow an%.amera
Games In Alice11
.lick the create newevent &utton
Select the let thearrow keys move
-
7/25/2019 Game Making With AliceEatTheHay
12/30
Events
Games In Alice1"
Events shoul% now look like this,
-
7/25/2019 Game Making With AliceEatTheHay
13/30
rite #rogram for eating Hay
Games In Alice1)
+rag a while icon from &ottom of screeninto the #rogram$hile is on &ottom of screen
+rag this to here pick true
-
7/25/2019 Game Making With AliceEatTheHay
14/30
hile 8oo#
Games In Alice1/
-
7/25/2019 Game Making With AliceEatTheHay
15/30
A%% ) ifs
Games In Alice10
+rag ) ifs from &ottom into while loo#$(ick true
-
7/25/2019 Game Making With AliceEatTheHay
16/30
(rogram 8ooks 8ike This
Games In Alice12
-
7/25/2019 Game Making With AliceEatTheHay
17/30
(ick the .ow
Games In Alice15
.lick the cow in theo&3ect tree
.lick the functionsta&
-
7/25/2019 Game Making With AliceEatTheHay
18/30
+rag into if
Games In Alice17
.lick an% %rag the cowis within threshol% ofo&3ect icon to re#lacethe true in the >rst if
hen you %ro# icon
select 1 meter an%strawale from list
-
7/25/2019 Game Making With AliceEatTheHay
19/30
.om#lete ifs
Games In Alice1:
?e#eat for other " ifs &ut #ick strawale"an% strawale)
-
7/25/2019 Game Making With AliceEatTheHay
20/30
Make Hay +isa##ear
Games In Alice";
.lick strawale in o&3ecttree
.lick the #ro#erties ta&
-
7/25/2019 Game Making With AliceEatTheHay
21/30
Make Hay +isa##ear
Games In Alice"1
.lick an% +rag the o#acity icon into the>rst if
(ick ; @;, invisi&leB
-
7/25/2019 Game Making With AliceEatTheHay
22/30
?esult of Hay
Games In Alice""
-
7/25/2019 Game Making With AliceEatTheHay
23/30
?e#eat for other Hay
Games In Alice")
+o the same for the other " strawales$Select in 6&3ect tree* click an% %rag o#acity
icon* set to ;e sure to &ut strawale" into if for
strawale"
-
7/25/2019 Game Making With AliceEatTheHay
24/30
.reate metho% for camera
Games In Alice"/
.lick on orl% in the o&3ecttree
.lick on metho%s ta& an%then create new metho%&utton$
name metho%move camera
-
7/25/2019 Game Making With AliceEatTheHay
25/30
move .amera
Games In Alice"0
click an% %rag while loo# intomove camera metho%
select true
click an% %rag wait icon from&ottom into while loo#
select other from the menuan% enter 0 in the calculator
an% click okay
-
7/25/2019 Game Making With AliceEatTheHay
26/30
move camera
Games In Alice"2
select camera in o&3ect tree
select the metho%s ta& an%scroll %own
click an% %rag the cameraturn to face comman% intothe while loo# after the wait
Select cow C= the entire cowfrom the menu
-
7/25/2019 Game Making With AliceEatTheHay
27/30
com#lete% move camera
Games In Alice"5
-
7/25/2019 Game Making With AliceEatTheHay
28/30
Set events
Games In Alice"7
In the events click the camera inthe let the arrow keys controlevent an% change to the cow C=the entire cow
click the worl% in the o&3ect treean% then the metho%s ta&
click an% %rag the move cameraicon an% re#lace the nothingevent in the &ottom when theworl% starts event
-
7/25/2019 Game Making With AliceEatTheHay
29/30
4inal Events
Games In Alice":
(layDDDD .lick the (lay utton
i&l h %
-
7/25/2019 Game Making With AliceEatTheHay
30/30
(ossi&le changes an%a%%itions
Games In Alice);
Make the hay &ales moveMake the camera move towar%s the cow
when it turns to face the cow
.hange camera vehicle to cow
A%% instructions
A%% a message when #layer wins
A%% more &ales of hay or other o&3ects
(lay a soun% when the &ale is eaten