Objectives

The purpose of this lab is to get you started with your first tutorial for the course.

In addition, the lab will introduce you to the following concepts:

source code

method call

parameter

sequence

if-statement

As part of the lab, you will see how to get started producing your own game.

Note: if you do not complete this lab on time, you might be dropped from the course. However, do not rely on the instructor to drop you because he may not. You are entirely accountable for failing to drop any course.

These are review exercises and you have all the information needed to complete them. If you have questions, please contact the instructor.

Project C: Little Crab (First Game Program)

For this lab you develop a game by following instructions in the textbook. We will then use this process during class to start working on your first original game.

Scan the textbook chapter 2 to get an overview of the material.

It is important to have access to the book. If you have ordered the book but have not received it yet, then you can read it at the CTC. Make sure you are reading the second edition of the textbook and not the first.

Complete the in-chapter exercises 2.1 through 2.18 that are listed throughout chapter 2.

Start with little-crab after download the starting files from: Book scenarios.

If you do not have the textbook yet, you may use the first edition chapter 2 for this lab only. The first edition had a different move() command without a value in the parenthesis. You must add a number in the parenthesis like: move(2). In addition, you must call isAtEdge() instead of atWorldEdge(). Also, be aware that the number of sections is different.

Follow the exercise steps exactly and read the textbook as you progress through the chapter to enhance your understanding.

For those exercises steps that have a written or text answer, open the Scenario Information (Scenario > Scenario Information) and type the exercise number and answer at the end of the file. For example, here are my answers to the first few exercises:

CodeLab Exercises

Deliverables

CodeLab is submitted automatically, but other lab work must be submitted as described below.

On your computer, create a folder for the lesson exercises named "lesson" (no extra characters) and place all the exercise files from Lesson 1 into this folder including:

questions.txt

wombat.txt

Create a second folder named "tutorial" (no extra characters) and place your completed "little crab" folder from chapter 2 of the textbook into the tutorial folder. Include only one scenario which is the culmination of all the tutorial exercises from the textbook.

Make sure to include the README.TXT file from the scenario.

Place the install.txt file from this lab in the tutorial folder as well.

Create a zip file with both folders named lab1.zip, or one zip file for each folder with the name of the folder, and submit the zip file(s) to the Lab 1 slot of Canvas.

Please do not add any extra characters to the above folder names. Also, do not put any spaces or special characters like #, : or $ in zip file or folder names.

Your crafted code must work as submitted. Remember to test and double check your files before and after submitting them. If you make a mistake, you can resubmit up to the deadline but must resubmit all your files. For information on resubmitting see How do I change an assignment in Canvas?