What will happen in this block of code?
What will happen in this block of code?
This item has no instructions
Lesson objective
To understand the difference between local and online multiplayer and create a simple multiplayer game feature using MakeCode Arcade.
This item has no instructions
What is multiplayer in games?
Multiplayer means more than one player can take part in the same game.
There are two common types, the first well talk about is Local multiplayer:
Local multiplayer
Players use the same device or same room/network.
Examples:
Two players on one keyboard
Split-screen console games
Same-room arcade games
Multiplayer changes game design because the game must respond to more than one player. Designers need to think about controls, fairness, scoring, communication and how players interact.
What is multiplayer in games?
Online multiplayer
Players connect over the internet from different locations.
Examples:
Minecraft servers
Fortnite
Roblox experiences
Online racing or sports games
This item has no instructions
Local vs online
Advantage: easy to play together, no internet needed, social.
Disadvantage: players must be in the same place, limited screen space or controls.
What are the advantage and disadvantages of local multiplayer?
Advanatages
Disadvantages
There may not be enough controllers or keyboard keys for everyone.
The screen can become crowded if players share one display.
Players need to be in the same place.
Players can talk to each other easily while playing.
It does not always need an internet connection.
This item has no instructions
Why might online multiplayer be harder to program than local multiplayer?”
This item has no instructions
Why is programming online multiplayer harder?
Online multiplayer is harder because the game must send updates between different devices over the internet. It has to keep all players synchronised, even if there is lag or a weak connection.
Designers also need to think about balance, so no player has an unfair advantage because of their connection, location, controls, character choice or team. The game must still feel fair, responsive and fun for everyone.
This item has no instructions
How do online multiplayer games work?
Online multiplayer games connect players using a network.
A network is a group of devices that can send data to each other.
When you play an online game, your device sends and receives small pieces of data, such as:
where your character is
what button you pressed
your score or health
messages or actions
whether you have won or lost
This item has no instructions
How do online multiplayer games work?
Your game does not send data about the whole game every second.
It sends updates about what has changed.
Example:
If Player 1 moves left:
Player 1 presses the left button.
Their device sends that action across the network.
The game updates Player 1’s position.
Other players see Player 1 move.
This item has no instructions
In an online football game like EA FC, you press the button to pass the ball to a teammate. What information is most likely sent across the network?
Every single bit of data about the whole game.
Only the necessary data like which button was pressed, which player has the ball, and the direction of the pass.
Only the new score, because the game only needs to update the score
This item has no instructions
Drag and Drop
Workspace
Toolbox
Tutorial instructions
Helpful hints and Next button
Game window
This item has no instructions
Activity: Build a local multiplayer game
Today you will use MakeCode Arcade to create a simple two-player multiplayer game.
You will:
Open MakeCode Arcade.
Start the multiplayer tutorial - Click here.
Customise one part of the gameplay.
Extension - Click here
This item has no instructions
Hit done on step 17 once all your code is working!
Click host a multiplayer game
Click Share and Host
Tell your friends to click here and enter your code
This item has no instructions