Zmiany

Skocz do: nawigacji, wyszukiwania

Module 5 - The “Bounce the Ball Arcade Game” Project

Dodane 1865 bajtów, 15:20, 6 lip 2015
[[Plik:Modul_5_1.png|center]]
 
 
[[Plik:A24.png|center]]
 
 
'''We ask the following question:''' What should the ball and the racket be?
''Students will probably quite quickly answer that both the racket and the ball should be sprites which we will be able to control. If necessary, they should be prompted to come up with this answer, justifying this rather than any other choice.''
'''
Task:''' We ask the students to change the sprite’s name to Racket, and then draw a racket costume for it. Next, they should add a new sprite, name it Ball, and draw it a suitable costume as well. We allow a few minutes to complete this task.
Together with the students we analyse and write the algorithm for the sprites: Racket and Ball.
 
'''We ask the following question:''' Where should the Racket sprite be placed after the programme is started? How should it move? How can it be simply controlled with the computer mouse?
 
''E.g. on the line where it will move. Additional question: what must we set? – Y coordinate. To
what value? – One corresponding to the bottom part of the screen, e.g. 150.
The X coordinate can be set to any value or to 0 if students come to such a conclusion.''
''
It is worth noting the findings on the schematic drawing on the board.''
''
The answer to the second question may be a little more complicated. Students should remember from modules two and three how to control a character using the mouse. It is worth discussing how the racket should move (just left–right if the board we adopted is as in the example). Therefore we ask: Which coordinate will be constant (Y) for the racket, and which will vary (X)? We ask the students to find a block which will allow to move the racket the quickest in accordance with the movement of the computer mouse. Students should find two blocks which will work well together: '''Set x to <0>''' and '''x mouse'''.''
181
edycji