CompSci 94 Fall 2022: Assignment #3
Due: Tuesday, Oct 18 - 11:59pm
15 points
The purpose of this assignment is for you to create an Alice program
using both design (story board) and implementation.
This is individual work.
You may talk to other students in the
course about your design and for ideas, but you are to write the complete
Alice programs by yourself.
You may
receive help from the Professor, UTA's or TA.
Story and your Task
You are to create a storyboard and an Alice program for a story that
you create that includes the magnet story below as a part of your
story. You have certain requirements you need to meet listed below.
After completing your storyboard and
Alice program, you need to make a video of your program to run it and
describe your program.
NOTE: Don't go overboard. It is tempting to drop a LOT of objects into
Alice, such as 50 trees to make a forest. Don't! Keep it simple. The more
objects you add in, the more memory they take up and that could slow
Alice down, such as taking longer to load your program, etc.
Requirements of the program
- Create your own story and include this magnet story as part of your story. This part could be
the beginning, middle or end of your story.
Magnet Story:
A person is holding a magnet and facing front. There is a gopher hole in
front of them, and three small metalic objects and one large metalic object
scattered in a circle around the person. For each small object, the person
turns and faces the object, raises their arm to point the magnet at the
object, and the object moves to the magnet. Then the person turns (with the
object stuck to the magnet) to face the hole, drops the object into the
hole, and the object disappears. (Imagine there is a large magnet in the
gopher hole that can pull objects off of the magnet the person is holding
when the object is over the hole). After the small objects are all gone,
the person faces the large object and points the magnet at it, and the
person, screaming (YIKES!!! or something like that), is slowly pulled to
the large object.
Here is a sample showing the teen attracting the lantern to the magnet,
turning with the lantern,
and dropping it in the gopher hole.
- You should create at least 4 useful procedures. Each one must be
used at least twice.
- Three of your procedures must have at least one parameter.
You should call each of these procedures at least twice with different
arguments.
- In addition to the camera starting view, you must create a top
view that looks down on objects and at least 2
other camera views. Each camera view must
be used at least once in the animation.
- You must use each of these at least once:
- vehicle property
- opacity property
- turn with "as seen by"
- built-in function
- math
Part 1: Draw a storyboard
Draw a storyboard of your complete story (including the magnet story). You
should indicate when you are changing the camera view.
You will need to either take a picture of your storyboard (image file
such as .JPG or .PNG), or convert it to .pdf.
Part 2: Build an Alice program
NOTE: PUT IN THE CAMERA VIEWS LAST. Build your story first and then add in
the other camera views. Note it is listed as the last step.
STEPS
- Name your program in the
format: NETID-assign3-magnet.a3p where netid is your Duke Netid. (Note that
Alice programs automatically have the .a3p extension to indicate they are
an Alice 3 program.) For example,
if your netid is abc2, then name your program abc2-assign3-magnet.a3p. Don't put
blanks in the name!
- Add in Objects
- Objects for the magnet story: Add into the program a person (from the biped
folder), a magnet (use the banana, paint it black),
three small "magnetic" objects of
your choice, one large magnetic object of your
choice such as a car or large vehicle, and a gopherHole.
- Add in additional objects for your part of the story.
- Setup:
- For the magnet story part, have the person face front, place the magnet in your person's
hand (use side view and front view to help with that), place the other
objects in a circle around the person, and put the gopher hole in front of
and close to the person.
-
Setup your part of the story.
- Write the code for the complete story.
-
Be sure to ALWAYS comment your code including a comment
in your program with your name and date, and comments for sections of your
code. Each procedure should have a comment to describe what the procedure
does.
- Finally add in the camera views and then add them to your
code. Strongly recommend that you use invisible objects as camera
markers, instead of the camera markers in Alice as they freeze the
screen sometimes.
Part 3: Make a Video
You can use Zoom to make a video of your program or some other way is
also fine. Put the following items
into your video.
- Your video should first show the code for your four procedures, and you
should explain what the procedures do and show where in the code they are
called.
- Explain where you used the vehicle property and what it does.
- Then run your Alice world.
You will need to either turn in a URL to your Video, or you can
submit the video file (.mp4)
SUBMISSION
Turn in on Sakai under assignments.
You will need to do four things to turn in your assignment. Under
Sakai assignments (note you should be able to upload all three things to Sakai):
-
upload your Alice program
- upload your Storyboard as a .pdf or an image file
- upload your Video OR put the URL for your video in the Reflect
form. You do not have to submit the Video if you have a URL.
- Fill out the REFLECT form. It is on the assignment page.