Return to site

Create a Climate Change Trivia Game on Scratch

Educators & parents: You can do this Hour of Code Activity as a class or students can work on it independently. If you have any questions or need help, email info@codespeaklabs.com.

Special thanks to Mayelin, the creator of this project and tutorial. Mayelin was an inaugural member of the Abretech program for multilingual high school students.

This game on Scratch is going to be a trivia game related to Climate Change! Climate change is a change in the typical weather for a region such as high and low temperatures and amount of rainfall over a long period of time. There are many actions that are beneficial and detrimental that affect climate change and our Earth. In this game, you can help players learn what’s beneficial for our planet and how to take good care of it. We only have one home because there is only one Earth and we need to care for it. Thankfully for us there are various ways to fix it and save our home!

Topics like climate change can be taught through coding. Coding games create fun ways to learn and digest topics that are difficult to understand for children. My game on climate change was built with the goal of having kids becoming knowledgeable on this big topic.

This project helps kids understand about the problems on their planet in a simple and family-friendly way. The project asks climate-related questions to the user, and waits for their input to prompt the corresponding response.

By the end, you will have a trivia project that responds based on the answers you get. There is a bear asking the questions in a type of forest, simulating a place and an animal that matches with the theme.

 

Part 1: Set up your project

  • Climate change refers to long-term alterations in global temperature, precipitation patterns, and other weather-related phenomena, primarily caused by human activities such as burning fossil fuels and deforestation. The effects of climate change include rising sea levels, more frequent and severe weather events, species extinctions, and health risks to humans, particularly in vulnerable populations such as the elderly and those living in poverty.
    • You can decide what types of questions to ask, and if you want the questions to be beginner level or more advanced.
  • In Scratch, a sprite is a graphic character or object that can be programmed to move, interact with other sprites or objects, and respond to user input. Sprites can be created from scratch using the built-in editor, or imported from external sources. They are the main building blocks of games, animations, and interactive projects created in Scratch.

Part 2: Code the Game

Sensing Blocks are blocks in Scratch that check for specific events/inputs. When a correct event/input is given it triggers more code! In our game we will be using them to check for correct answers from the player.

Part 3: Check for Errors

This is the part where you finish coding, and try to actually play the game you built. If there is an error, no problem! One common issue is the game not responding correctly to a right, or wrong, answer. Test the game answering with correct answers and with mistakes to make sure the code works either way.

Congratulations on successfully completing your own Climate Trivia Game.

As a bonus challenge create additional questions on climate change and add them into the game along with their correct answers.

Further learning

The videos below will help grow your knowledge on climate change, and what you can do to help.

Want to go beyond Hour of Code? Click here to learn to build a Pokemon Evolutions game.

If you had fun, check out our YouTube channel for more free coding projects like these! Go to youtube.com/codespeaklabs.