Você está na página 1de 10

Problem I Need To Solve

Urban Gaming is a relatively new company that is trying to grow its business by
developing games that can be pre-loaded onto handheld devices (to attract
business from the large mobile phone suppliers), downloaded from an app store
or played via their own web site.
You have been asked to produce a prototype for a game that they could
potentially sell.

Solution

I propose to design and create a 2D Hockey game. You will be in 3 rd view of the
hockey puck. You have to win your opponent which will be the computer. The aim
of the game is to get to 10 points, the first one to get to 10 wins.

Success criteria

Point board up to 10
No bugs or glitches so people will keep on playing.
It will be against the computer to make it more of a challenge
To make sure that people enjoy playing it
Name input at the beginning
Score out of 10 at the end

Why I chose scratch

I chose scratch to create my app/game because I am used to it and it is easy to


use. Python and App Inventor are harder to understand and are not as user
friendly as Scratch. It has features that other programs like python dont. The
software is free and you can download the program or use it online.

Legal constraints of using software

Scratch is a free program to use and download so you dont have to buy a license
to use it. But we do have to follow the Hutton acceptable use policy for the
internet. This is set by school for all students to follow. An example is usernames
and passwords to keep our work secure and to trace what we have done.

My sprites
I have created all my sprites using the tools in scratch, I drew the puck,
player sprite, computer sprite and the background all in scratch
Data Dictionary
Name
Point score

Digital UI Design

Data type

Validation

Integer

Counts your points and


once you get to 10 you
win

This is my main
backdrop. You have to
hit the puck(the black
circle) on your
opponents goal (the
green line). You have to
do this 10 times to win

This is the players


control. It moves in the
direction of the cursor
and you cannot go
past the red line shown
on the backdrop

This is the computers


control. It moves to
wherever the puck is
to stop you from
getting a point. Also
the computer cannot
go past the red line.

This is the puck. It


travels around the
whole board and the
players aim is to This
hit itis the first backdrop
into the computers
goal,
that
the player will see. It
and the computers
aimthe main menu
is like
is to hit it into the
because it tells you to
Thisthe
is the
textAlso
awarded
players goal.
player
game.
a
the
person
who
wins
poptoup
will
appear
asking
player or
the To
for (the
the players
name.
computer).
youplayer
get to
start
the gameIfthe
firsttoyou
willspace
receive
will10
have
press
this text stating that
you have won.
IPO
Input
- User clicks the
green flag
- User enters their
name
- Player press space
button
- User moves the
cursor in direction
they want their
sprite to move

Process
- If you hit the puck
on your opponents
goal (the green
line) your points go
up by 1
- If your opponent
hits the puck on
your goal (the
green line) they will
earn a point

Output
- The users sprite
will move in the
direction they
move the cursor
- Instruction menu
- The winner will get
a blue WIN sign.
This is the finished
screen

When the green flag is clicked the win

Coding

Win sprite

When the sprite receives the

When the player wins

When the computer wins

Puck sprite

Also Ifif the


theIfpuck
puck
the
If
The
Then
Ifthe
puck
is
the
touches
puck
touching
puck
the
computer
is will
touching
puck
touches
the
always
the
edge
will
score
edge
the
reset
begets
colour
amoving
to to
the10

When the green flag is clicked the puck will

Then it will wait until its touching the

If the puck touches the computer

If x is o then the computer will

If x is o then the player will get a


If the player score gets to

When the puck receives start the

When the puck receives cpu win

When the puck receives player

AThen
text it
box
willwill
Cpu
say
When
appear
Variable
score
helloflag
and
asking
cpu
isthe
player
clicked
scorescore
and
the sound
player
will

Background Sprite:
When green flag is clicked
Backdrop 2 will appear

Once space key is pressed then

Start will be broadcast


When the flag is clicked

When the computer sprite

Computer sprite:

If
YAll
The
position
not
blocks
possible
computer
This
will
inwill
the
be
then;
be
sprite
forever
changed
repeated
willblock
point
byuntil
15
will
towards

It will wait for 0.02 seconds so

If the x position of puck is less than 0

Also if the sprite is on edge it will

The computer sprite will glide 0.2

Y position will be changed by

Player 1 Sprite:

When the sprite receives the message

If the
The
If xthis
mouse
forever
position
is not
xcode
isis
possible
00then
will
thenrun
xthen
xiswill
the
set
the
be
blocks
toset
sprite
mouse
to
inside
will
x be

First the sprite will point towards the puck

If the mouse is not a 0 then it will set x to 0

User Testing
Can you
enter
your
name?
yes

Does the
score
work?

Do the
levels get
harder?

Is it easy
to play?

Yes

No

Yes

Yes

No

Test
Number
1

What is
being
tested
Computer
control
sprite

The name

Score

Is there
glitches
?

Comment
s

Yes

What age
do you
think it is
for?
8-16

No

No

6-14

No

The game
is well
structured
and is
simple
and a
great
challenge
A
addictive
and
challengin
g but fun
game.

Expected
Outcome

Actual
Outcome

Pass /Fail

Comments

The sprite
will not go
past the
halfway
line
The player
will enter
their name
and will be
displayed
Shows the

The sprite
stays in its
half and does
not pass the
halfway line
The name is
displayed in
the variable
box

Pass

None

Pass

None

The points

Pass

None

board
counter
4

Aesthetics

Puck sprite

Win text

Goal line

amount of
points each
player has
Looks good
and not
boring

The puck
should
bounce off
edges and
when the
game
starts it
should start
in the
middle,
also when
someone
gets a
point it
should
automatical
ly restart
back in the
middle
Once a
player gets
to 10 it
should say
Win in
blue text
The player
should get
a point if
the puck
touches
their
opponents
goal

are shown in
the variable
box.
Nice bright
and
attractive
colours too
show the
game is not
boring and is
fun
Once a
player has hit
the puck it
bounces off
the edge and
it starts off in
the correct
place

The win text


appears once
someone has
got to 10 in
bold writing
The player
gains a point
once the
puck touches
their goal
(the green
line)

Pass

Good use of
colours as it
is eye
catching

Pass

None

None
Pass

Pass

None

Evaluation

Name input
At the start of the game a name input is required. By doing this your name will
be entered on a score board to see where, when and who got the best score.

Addictive
My game is simple and fun, it is against the computer too make it a challenge
and it is up to 10 which is not too long so that the player does not get tired of
playing it.
No glitches
There are not any glitches I have or my peers have acknowledged while playing
my game. This is good because it makes people want to carry on playing it.
A working score
There is a working score; you have to get to 10 first before your opponent. Once
you get to 10 you win and a sign will pop up confirming this.
Potential improvements
I would create levels, starting with a slow opponent and gradually increasing
speed as the higher the level gets.

Você também pode gostar