February 20, 2026

Create a Downhill Skier Game

DOWNHILL SKIER GAME CODING CHALLENGE

The Challenge

Your mission is to create a downhill skiing game.
The skier stays near the top of the screen while the world moves toward them.

Goal:
Avoid obstacles for as long as possible.

This game uses a classic trick in game design:
If the environment moves, it feels like the player is moving.


The Big Idea

Even though it looks like the skier is racing downhill:

  • The skier only moves left and right
  • The obstacles move upward toward the skier
  • The player survives by dodging obstacles

Obstacles can include:

  • Flags
  • Rocks
  • Trees

Play our html version of the game.


Step 1: Create Your Skier (Player Sprite)

Start with your skier — this is your avatar.

Requirements:

  • Place the skier near the top of the screen
  • Allow the skier to move left and right

Tip #1: Player Movement

Think carefully about how the skier should move.

You might:

  • Use the left and right arrow keys
  • Make the skier move toward the mouse

There is no single correct solution — choose what feels best for your game.


Step 2: Add Your First Obstacle

Obstacles create the challenge.

Start simple:

  1. Create one obstacle
  2. Spawn it at the bottom of the screen
  3. Move it up the screen toward the skier
  4. When it goes off screen, reset it to the bottom

Tip #2: One Obstacle First

Do not add everything at once.

  • Get one obstacle working
  • Make sure it moves correctly
  • Then add more obstacle types

Step 3: Create the Downhill Illusion

The skier does not move downhill — the obstacles do.

Obstacle Rules:

  • Move at a constant speed
  • Only move on the Y-axis
  • No left or right movement

Tip #3: Keep the Physics Simple

Simple movement makes debugging easier.

  • No X movement
  • Only Y movement
  • Smooth, steady speed

This keeps the focus on gameplay, not complex math.


Step 4: The Game Loop

Every frame, your game should:

  1. Move the skier left or right
  2. Move obstacles upward
  3. Check for collisions
  4. Repeat

This loop continues until the skier hits an obstacle.

Check out our MakeCode Arcade Version of the Game!


Game Over

When the skier touches an obstacle:

  • End the game, or
  • Display a Game Over message

Extension Challenges (Optional)

Want to take your game further?

Try adding:

  • A score based on time survived
  • Faster obstacles over time
  • Sound effects
  • Multiple levels or difficulty modes

Final Thought

Start small. Test often.
Every great game begins with something simple.

Happy coding.

Sprattronics Learning Lab

Maximize your education!
Arctic Animal Science: Polar Bears

1. Introduction and Build Meet an Apex Predator Polar bears are the largest land predators on Earth. They live in the Arctic and the Northern Hemisphere, where they spend much of their time on sea ice and in the surrounding coastal areas. Polar bears are apex predators, which means they are at the top of […]

Read More
Arctic Animal Science: Reindeer Adaptations

1. Introduction & Build Welcome to the Arctic Tundra! The Arctic tundra is a challenging place to live. Temperatures can become extremely cold, snow can cover the ground, and finding food can become difficult. Yet reindeer survive here year after year. How do they do it? Reindeer have special adaptations that help them survive in […]

Read More
Arctic Animal Science : Walruses

Welcome to the Arctic Ocean! The Arctic Ocean is the smallest and shallowest of Earth's five oceans. It surrounds the North Pole and is one of the coldest ocean environments on Earth. Much of the Arctic Ocean is covered by sea ice, especially during the coldest parts of the year. Even though the environment is […]

Read More
Arctic Animals: Engineering in a Frozen World

Welcome to the Arctic! The Arctic is the far northern region of Earth. It surrounds the North Pole and includes everything north of the Arctic Circle, an imaginary line located at about 66.5° north latitude. The Arctic is one of the coldest places on Earth. Much of the land is treeless, and the region is […]

Read More
Get the Gold

Get the Gold! LEGO® Education Computer Science & AI Grade 3 - 5 Unit 1 • Lesson 1 Student Sheet Mission A treasure of gold is waiting! Your job is to build a horse and carriage, then write a program that helps your robot travel from the castle to the gold and safely back home […]

Read More
LEGO Education Computer Science & AI Kit: The Ultimate Getting Started Guide

LEGO Education Computer Science & AI Kit: The Ultimate Getting Started Guide You Placed Your Order and the Kit is on the Way... Now What? Congratulations! You've ordered the LEGO Education Computer Science & AI Set. Whether you're a classroom teacher, homeschool parent, after-school educator, or robotics enthusiast, you're about to unlock dozens of engaging […]

Read More
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram