top of page

Tile Map Game

Learning Target: I can create a maze game. I can code for a count down timer. I can add obstacles. I can add music. I can create a score. I can create a pickup. I can create a game to be played by others.

Screen Shot 2022-02-16 at 8.27.01 AM.png
Screen Shot 2022-02-16 at 8.28.09 AM.png

Maze games have been around for awhile. One of the most popular maze games was PacMan. The player had to guide PacMan around a board, avoiding the ghosts and collecting the power ups. This game was not only one of the most successful arcade games, but a popular game to play on a console at home. PacMan soon had a spin off -Ms PacMan, as it grew in popularity. Over time, PacMan has become a cultural icon and can be found on lunch boxes, in movies, and even a stuffed toy.

You will need a minimum of 2 tiles for the ground, a character, and a pick up.  In this lesson you will code to move the objects, score and end the game.  You will also create an obstacle for your player to avoid.  Click the link above to learn how to create your sprite sheet for this project.
800.jpeg
Screen Shot 2022-02-16 at 8.43.53 AM.png
LT: I can create a new project and import my sprite sheet.
Create your new project and save to flash drive or on somewhere on the computer (preferably the desktop or documents).Click on the button to download 2 different tiles for your background. One tile will be your path. The other tile will be the border of the game.
LT: I can create a TileMap. I can use the Tile Palette.
In the video below, students will learn how to create a TileMap and How to use the Tile Palette in Unity.
LT: I can create a  player for my game.
 Watch the video to see how to set up your player for the game.
LT: I can create a pick up to collect.
For this game, the player will increase the score every time it collides with a specific object you created.
LT: I can create an obstacle
Create an object to be an obstacle and then add into the game.
LT: I can add in text for a score 
Create the text for scoring and winning the game.

Coding

LT: I can type code to make my player move. I can script to make an object rotate. I can script to keep score. I can script text.

 
This step of the project is what makes the game work. There are many coding languages out there, C++, Java, Python, etc. We will be using C# in either MonoVisuals or Visual Studios depending on the computer. These programs both work the same.
​

As you start this next step, please note -

YOU HAVE TO TYPE IT EXACTLY!

​

If there are any mistakes the game will not work at all, or will not work correctly. Once again, it must BE EXACT!

Now, with all of that being said, if your game doesn't work as it should, go back and rewatch the video until you get it right. Stop and go back to check your script until it does work. This is a key part of making games, persistence. Stay with it until it works. And if that doesn't work, after you have tried all these steps, then ask for help.

9. Code the Player to Move.

LT: I can code movement
Students will type the code using what they learned from the previous project and add to it. This will allow the player to move in all directions.

Camera Follow

Turn in screen recording to Google Classroom.

Coding

LT: I can type code to make my player move. I can script to make an object rotate. I can script to keep score. I can script text.

 
This step of the project is what makes the game work. There are many coding languages out there, C++, Java, Python, etc. We will be using C# in either MonoVisuals or Visual Studios depending on the computer. These programs both work the same.
​

As you start this next step, please note -

YOU HAVE TO TYPE IT EXACTLY!

​

If there are any mistakes the game will not work at all, or will not work correctly. Once again, it must BE EXACT!

Now, with all of that being said, if your game doesn't work as it should, go back and rewatch the video until you get it right. Stop and go back to check your script until it does work. This is a key part of making games, persistence. Stay with it until it works. And if that doesn't work, after you have tried all these steps, then ask for help.

9. Code the Player to Move.

LT: I can code movement
Students will type the code using what they learned from the previous project and add to it. This will allow the player to move in all directions.

10. Clean up the code.

LT: I can adjust the code to make it more streamline
See how to make minor changes to the code in order to simplify the final code.

Move Vertical Coding

11. Rotate the Pickup

LT: I can adjust the code to make an object rotate
Learn how to code for rotation.

12. Coding to Collect

LT: I can adjust the code to collect an object.
Learn how to code to collect object to score

13. Code for Score

LT: I can adjust the code to have a score.
Learn how to code to collect object to score

13. Code for Winning

LT: I can adjust the code to end the game
Learn how to code to end the game

14. Countdown Timer

LT: I can adjust the code for a countdown timer
Learn how to code to end the game after a certain amount of time

15. Build the Game

LT: I can build a webgl game
Learn how to build the game for the web.

16. Publish game to Web

LT: I can publish my game
Learn how to publish the game and turn the link into the Padlet

17. Screen Record Game

LT: I can screen record my game.
Learn how to screen record the game to turn in to Google Classroom
bottom of page