Game Lab 

with code.org

In this unit you will learn how to program in JavaScript with Code.org. This site allows you to switch between Block programming (like Scratch) and text programming.

Your class will build a game based on work from the interactive games and animations 2023 course. Your teacher will invite you and set the work to do.

You will also cover some Computer Science Topics. Your teacher will quiz you on these at the end of the unit.

Google Classroom  has a Game Lab assignment for you to place your mini skills links in.

TASKS

These tasks target the skills you need in to learn in Year 10.

Code.org has many other lessons which cover more skills. You do not need to complete everything in Code.org.

As you complete tasks you will build a simple game to apply the skills.

Drawing with Shape & Colour

Purpose:

We are learning the basics of Game Lab by drawing shapes.  

Task:

Extension:


Comp Sci Topic: - Operating systems and Application software

You will be designing application software in GameLab!

Variables & Randomness

Purpose:

We are learning about variables and how to use randomness in our code.  

Task:

Extension:


Comp Sci Topic: Algorithms

Sprites

Purpose:

We are learning how to create sprites.

We are setting up the game that we will develop as we go. Example

Task:

Extension:

Text - Very short unit

Purpose:

We are learning how to display text

Task:

Extension:

Your project should look a bit like this

The Draw loop and movement

Purpose:

We are learning how to move our sprite

Task:

Extension:

Conditionals - if statements

Purpose:

We are learning how to control our program with logic

Task:

Extension:

Keyboard input and start screens

Purpose:

We are learning how to control our program with the keyboard

Task:

Extension:

Game screens in Game Lab

Velocity

Purpose:

We are learning a different way to move our sprite. This can give a totally different feel to your game.

Task:

Extension:

Touching

Purpose:

We are learning how to detect when our sprite touches something else.

Task - Lots to do this lesson:

Extension:

Gravity

Purpose:

We are learning how to create a gravity effect

Task:

Extension:

Don't forget the "Help & Tips" section in code.org

Collisions

Purpose:

We are learning how to collide with other sprites

Task:

Extension:

To get your game working well you will need to play with  your sprite's bounciness property. Try setting it to a number like 0.5 

To get the edges working you can use 

and

Hint: do all the bounceOff() bits before you do the keyboard movement code.

Functions

Purpose:

We are learning how to tidy up our code with functions

Task:

Extension:

Example draw loop

Jumping

Purpose:

We are learning how to create a jump mechanic

Task:

Extension:

Jumping in Game Lab