Application development for Beginners
CSC 102: Application Development for Beginners
Project 1
Learning Objectives:
Apply problem solving techniques and programming structures to solve basic problems.
Problem Details:
Log in to your code.org account. Using PlayLab, create a game project that has the following
specifications. You must name the file with your first and last name and your ID:
Project1_yourname_ID, for example Project1_AhmadMitairi_12345.
The game includes two levels.
In level 1:
a) Give a title to the game and show it on the screen once the game starts along with the
level number.
b) Create a main actor as knight or Princess (actor 1), a target actor (actor 2), and three
scary actors (actors 3-5).
c) Choose a background for this level.
d) Change the size of all actors to 0.5.
e) actor 2 should start from the lower right corner, whereas the main actor (actor 1) should
start from the upper left corner. The scary actors should start from the middle of the
screen.
f) The scary actors (actors 3-5) should move repeatedly in random directions each with
different number of pixels.
g) You (the user) should be able to move actor 1 in the four directions using the arrow keys.
h) The game should include a score.
i) When the main actor touches the target actor, the score should increase by 1, and the
target actor should disappear for 5 seconds then it should appear again on a random
position.
j) When the main actor touches any of the scary actors (actors 3-5), the score should be
deducted by one point, and the main actor should return back to the upper left corner.
k) If the score goes below zero, the game is over and “You lose” message should be
displayed on the middle of the screen and all actors should stop moving.
l) If the score reaches 10, the game is over and “You win” message should be displayed on
the middle of the screen and all actors should stop moving.
m) If the score becomes 5, the game should switch to another level (make it as a function).
Level 2 on next page
In Level 2:
This level has the exact same specifications of level I with the following differences:
a) Show the title of the game on the screen once the new level starts along with the level
number.
b) A new background is displayed.
c) The score starts from the same value scored at the end of level I.
d) Introduce a new scary actor (actor 6) that moves in a random direction with a certain
number of pixels, and a size of 0.5.
e) The same rules (of old scary actors) applies on the new scary actor whenever it touches
the main actor (actor 1).
General Instructions:
You have to submit within the due date and time. Late submission will be penalized by 25%
deduction for each day.
You should only submit as a MS Word file with multiple screenshots showing all code
and your name on Code.org. Make sure to name the file with your name and ID. Also
write your name and ID inside the Word file.
Cheating will not be tolerated. The cheated parts will be graded as ZERO!