game:it junior paddle ball objectives: review skills from introduction create a background add...
TRANSCRIPT
GAME:IT JuniorPaddle Ball
Objectives: • Review skills from Introduction• Create a background• Add simple object control (up and down)• Add how to create a simple scoring
system • Using old and new skills, develop a game
of “paddle ball”
Create 5 sprites for Game2.
They are located in Game2 Resources.
Name them spr_ball spr_edge spr_miss spr_score and spr_paddleNAME THEM EXACTLY AS INSTRUCTED
2
Create the 3 sounds from the sound files in Game 2 Resources. Name them exactly as instructed.
Snd_beep = beep
Snd_miss = miss
Snd_hit = hit
3
Create a background. Load the background from the Game 2 Resources and name it bckgd_green
4
Create the above objects using the sprites you created earlier.
Name them:
obj_ball (visible and solid should be checked)obj_paddle (visible and solid should be checked)obj_hit (visible and solid should be checked)obj_miss (do not check either visible or solid) obj_edge (visible and solid should be checked)
5
Create a Room to look like the one below:
obj_edge
obj_score
obj_miss
6
Programming the Objects:
Obj_edge: Has no programming
Obj_hit: Add Event: Collision with obj_ball
Add 2 Actions:
Action 2: Play Sound (on the main1 tab).
Choose “snd_beep” from the drop down.
Loop = False
Action 1: Set Score (on the score tab)
New Score = 1
Relative IS checked. (This increases your score when you hit the wall with the ball)
7
Obj_miss: Add Event: Collision with obj_ball
Add 2 Actions
Action 1: Set Score
New Score = -2.
Relative IS checked. (Decreases your score by 2 when you miss the ball)
Action 2: Play Sound (on the main1 tab).Choose “snd_miss” from the drop down.Loop = False
8
Obj_paddle:
Add 4 Events:
Event 1: Collision with obj_edge
Action: Move FixedApplies to: Self Select center button only – this stops movement.Speed = 0Relative is NOT checked
Event 2: Keyboard Event – select <No Key>
Action: Move FixedApplies to: SelfSelect center button only – this stops movement.Speed = 0Relative is NOT checked
9
Obj_paddle (cont.) :
Event 3: Keyboard Event <Up>
Action: Move Fixed Applies to: Self Select the Arrow facing up Speed = 7Relative is NOT checked
Event 4: Keyboard Event <Down>
Action: Move Fixed Applies to: SelfSelect the Arrow facing down Speed = 7Relative is NOT checked
10
Obj_ball:
Add Five Events:
Event 1: Create
Add 2 Actions:
Action 1: Set Score New Score = 1 Relative is NOT checked
Action 2: Move Fixed Applies to: SelfSelect the 4 corners Speed = 5Relative is NOT checked
11
Obj_ball (cont):
Event 2: Collision with obj_edge
Add 2 Actions:
Action 1: Bounce against solid objectsApplies to: SelfPrecise = PreciselyAgainst = Solid Objects
Action 2: Play Sound Choose “snd_beep” from the drop down.Loop = False
12
Event 3: Collision with obj_paddle
Add 2 Actions:
Action 1: Move Fixed Applies to: SelfSelect the 3 Left Facing arrows Speed = 1Relative IS checked – this makes the ball pick up speed each time it’s hit
Action 2: Play SoundChoose “snd_hit” from the drop down.Loop = False
Obj_ball (cont):
13
Event 4: Collision with obj_hit
Action: Bounce against Solid ObjectsApplies to: SelfPrecise = PreciselyAgainst = Solid Objects
Event 5: Collision with obj_miss
Add 2 Actions
Action 1: Jump to Start Applies to: Self
Action 2: Action 1: Move Fixed Applies to: SelfSelect the 4 corner arrows Speed = 5Relative is NOT checked
Obj_ball (cont):
14
Save the as Game2It is now ready to test & play!
Assignment:
Modify the game so that the ball and paddle move faster (increase the difficulty of the game). Save it as Game 2A
15