Year 9 Game Development 2 - Classes and Objects

What do you remember about:
Agile project management?
Assets?
Iterative development?
1 / 20
next
Slide 1: Mind map
Computer ScienceLower Secondary (Key Stage 3)

This lesson contains 20 slides, with interactive quizzes, text slides and 2 videos.

time-iconLesson duration is: 60 min

Items in this lesson

What do you remember about:
Agile project management?
Assets?
Iterative development?

Slide 1 - Mind map

Game Development 2 - OOP
Key Vocabulary:
Interactive
Gameplay
State
Player
AI
Class
Parent
Inheritance
Object
User interface

Today's lesson objectives:
Explore what states are
Learn how states contribute to the way games are played
Learn the features of Object Oriented Programming and why it’s so useful for creating games
Start thinking about the importance of how games feel to play – the user experience

Slide 2 - Slide

🥈 Silver Badge:


Fully answer the following questions on states and OOP.

Slide 3 - Slide

Silver badge:
How many different ways are there to set these switches?
How might you be able to use these switches to communicate something?

Slide 4 - Open question

Answers
There are 4 ways to set these switches:
off, off
off, on
on, off
on, on

We could communicate by turning on different lights, for example. The combinations of the two switches would give us four different options for what we want to communicate.

Slide 5 - Slide

Think:
What might "Object Oriented Programming" mean?

Slide 6 - Slide

Pair:
What might "Object Oriented Programming" mean?

Slide 7 - Slide

Share: What might "Object Oriented Programming" mean?

Slide 8 - Open question

🥇 Gold Badge
Complete the following questions on objects

Slide 9 - Slide

Objects
Everything is an object
What makes a cat, a cat?

Slide 10 - Slide

Objects
Everything is an object
What makes a cat, a cat?

Two things:
Attributes (a cat has/is...) and Methods (a cat can do...)

Those two things make up all objects in programming.

Slide 11 - Slide

Objects have attributes and methods.

What are attributes and methods?

Slide 12 - Open question

🥉 Platinum Badge: State Classy 

The video and questions are for your platinum badge, answer depth should be appropriate.

Take notes on the video and then answer the question to a platinum standard.

Slide 13 - Slide

Slide 14 - Video

Think of a game you have played recently.

Write a list of what you think its states might be, and then explain what the player does to move between them.

In your answer, explain how using these states helps the game keep track of what is happening.

Slide 15 - Open question

3

Slide 16 - Video

Pick one:
What data might you store in the class for:
A zombie, in a shooter, like Call of Duty?
A hat, in a fashion game, like Dress To Impress?

Slide 17 - Open question

06:17
Think of a game you've played recently.
Name two features you think are classes.

Slide 18 - Open question

06:50
In the game you thought of, how has the developer reused a class?

Slide 19 - Open question

07:22
Pick one:
What data might you store in the class for:
A zombie, in a shooter, like Call of Duty?
A hat, in a fashion game, like Dress To Impress?

Slide 20 - Open question