RANDOM NUMBERS
Random numbers provide an element of chance to our games that make them look and feel more natural. They can also provide surprises and introduce elements of “good” or “bad” luck (https://arcade.makecode.com/courses/csintro1/motion/random).
TASK
Complete the tasks in this tutorial 1-3.
These tasks use the 'Pick Random' command.
Go to here to start.
MORE OVERLAP AND EVENTS
We use kind to give a label to our sprites so we can define how one kind of sprite will react when moving on top of another kind of sprite.
In the previous activity, all "Cloud" kind's respond with the same action when overlapped with a "Helicopter" kind.
By making several cloud shaped sprites with the same kind of cloud, we can write code so that all of the clouds interact with the Helicopter kind in the same way with an overlap event.
TASK
Go to here to learn more about on overlap event and kind.
GENERATE SPRITES USING SET AND ON CREATED
Many games need to spawn sprites for the player to do things like collect coins or avoid oil spills.
We will use 'sprite of kind' to spawn a new empty sprite, with nothing in it yet. Then we can use an 'on create' event to set the image and a random position for newly generated sprites. The 'on create' block uses the sprite’s 'kind' so we can give our new sprites the exact attributes we want, like an image, velocity, or position.
TASK
Go to here to learn more about generating sprites and setting their images, position and behaviour.
MOTION PROJECT
At this point of the course you have learnt a lot of game programming skills. It's now time to put those skills to use and to design you're own game.
TASK
You will be given a sheet of A3 size paper.
Write your first and last name on the sheet in the top left corner.
Fold the sheet twice to get 4 rectangles of equal size.
Go to here for Student Task#1.
Complete task#1 - Initial Ideas. Write down next to the design what partner thinks of your idea (what the like, what they don't like, and any ideas for extending your idea). Also discuss with your partner what features the game should have.
At this stage we will do Task#1 as individuals. Task#2 and 3 can be done later. To see an example click here.
ANIMATION
|
|