MY ALICE EXAMPLES

These links work only on the third floor of Robinson building. Right click on a link, select ``Save Link As...'' or ``Save Target As...'', navigate to the destination folder, and click ``Save''. Start Alice and open the saved world from the destination folder where you just saved it.

INTRODUCTION TO PROGRAMMING

Chapter 2

Built-in (primitive) methods.

physics1.a2w, physics2.a2w, physics3.a2w, physics4.a2w: my ``physics'' examples that show what happens when you combine moving and turning and the effect of the ``as seen by'' modifier.

turnToFaceVersusPointAt.a2w: illustrates the difference between the ``turn to face'' and ``point at'' instructions.

monkeyontoyball.a2w: orientation and the ``vehicle'' property.

helicopter.a2w: an ``as seen by'' example.

islandlighthouselifeboat.a2w: fiddle with ``turn to face,'' ``point at,'' ``move to,'' ``move forward,'' and ``move toward'' instructions.

Chapter 3

Built-in (primitive) functions, If/Else, Loops.

TT3skater.a2w, TT3skyride.a2w: dropping ``dummy'' objects, changing the camera's point of view, changing the camera's vehicle property.

firstPersonShooter.a2w: how to do the camera for the shooter in a first-person-shooter.

cameraConstrainToPointAt.a2w: getting the camera to follow a moving object.

degreesCtoF.a2w: using variables to convert degrees centigrade to fahrenheit, a joined with b, what as a string, ask the user for a number.

randomHoppingLoopLemurs.a2w: variables and random numbers.

Chapter 4

User-written world-level and class-level methods, parameters.

Chap04BeetleBand.a2w

Chap04LunarLander.a2w

Chap04RenamedSkater.a2w

Chap04Skater.a2w

Chap04SkaterWithPenguin.a2w

RenamedIceSkater.a2c

exampleWithRenamedIceSkater.a2w

Chapter 5

Events and event handling.

Chap05BiplaneAcrobat.a2w

Chap05SaveThePeople.a2w

Chap05Zeus.a2w

Chapter 6

User-written world-level and class-level functions.

Chap06BallRoll.a2w

Chap06RandomMotion.a2w

ballRoll1.a2w: experiment with resizing a toy ball and realistic looking rolling.

playChicken.a2w: two biplanes ``playing chicken'', collision detection (user-written function) and avoidance (user-written method).

Chap06Zeus.a2w: version of Zeus program that prevents Zeus from zapping himself, from zapping non-philosopehrs (done in two ways with two functions), from zapping same philosopher more than once.

calculateSemesterAverageSec3.a2w (Section 3), calculateSemesterAverageSec4.a2w (Section 4): use this program instead of asking me what your average for the semester is and what your final letter grade might be.

Chapter 7

While loops.

bunny1.a2w, bunny2.a2w, bunny3.a2w: my versions of the bunny hop.

ferrisWheelRiders.a2w: my version of the ferris wheel.

playChickenWhile.a2w: another version of the two biplanes ``playing chicken'', interactive and using a While loop.

Chap07SharkChase.a2w: my version of the shark chasing the goldfish.

Chap07RabbitRescue.a2w: Begin-During-End event example.

rabitRescueCameraFollows.a2w: fiddle with the previous example to get the camera to follow the helicopter.

Lists and Other Stuff

Lists, part named.

listExample.a2w: using loops with lists, ``for all in order'' and ``for all together''.

anotherListExample.a2w: using a list simplifies the code choreographing a bunch of guys.

likeExercise5-10.a2w: using a list to restrict the scope of an event handler, the mouse can move the lemur and penguin but not the Cheshire cat.

bumperCars.a2w: a bumper car animation that uses a list to greatly simplify the code.

partNamedExample.a2w: accessing the subparts of an object passed as a parameter to a method using an object's part named function, described on page 262 (Chapter 9) of the Alice text book.


home page: http://elvis.rowan.edu/~hartley/index.html
e-mail: hartley@elvis.rowan.edu