Free Course Image Introduction to 2D Game Development

Free online course Introduction to 2D Game Development

Duration of the online course: 15 hours and 23 minutes

New

See how classic games work and build skills in game loops, sprites, and physics with this free online 2D game development course.

In this free course, learn about

  • Explain how a 2D game loop processes input, updates game state, and renders each frame.
  • Use collision detection and bounce logic to implement ball and paddle interactions in Pong and Breakout.
  • Create a sense of depth in Flappy Bird by scrolling background layers at different speeds.
  • Select and render individual sprites from a sprite sheet.
  • Resolve Match-3 chains by detecting matches, clearing tiles, dropping tiles, and refilling the board.
  • Use tile maps to build side-scrolling levels and define solid surfaces for collisions.
  • Compare four-directional movement in top-down games with gravity-based movement in platformers.
  • Distinguish static, kinematic, and dynamic Box2D bodies by how they move and respond to forces.
  • Use a state stack to manage gameplay, menus, and dialogue in a Pokémon-style game.

About the free online course

What happens between pressing a button and seeing a character move? Introduction to 2D Game Development is a free online course that uses familiar games to explain the programming behind what you see on screen. You will explore the game loop, the cycle that reads player input, updates the game world, and draws the next frame. Understanding that cycle gives you a way to trace how a single action, from moving a paddle to launching a projectile, changes what happens next.

Classic games make those ideas easier to see. In Pong, a bouncing ball shows how movement and collisions shape a rally. Flappy Bird demonstrates how background layers that scroll at different speeds create a sense of depth, while Breakout shows why developers store multiple graphics on a single sprite sheet. In a Match-3 puzzle, the focus shifts from movement to sequence: matched pieces disappear, the pieces above them fall, and the board is checked again. The order matters because each change can trigger another match.

The course also looks at how the rules change when a game adopts a different perspective. A side-scrolling platformer such as Super Mario Bros. uses tile maps to lay out terrain and obstacles, while a top-down game such as The Legend of Zelda gives players a different range of movement. Angry Birds provides a familiar setting for exploring how different Box2D body types respond to forces. Pokémon illustrates a different programming challenge: using a state stack to open a menu or start a battle and then return to the previous screen.

Short exercises give you a chance to apply what you see in the video lessons. You might pick the right graphic from a sprite sheet or work out what should happen next when a puzzle match clears part of the board. If you are new to game development or looking for a practical way to connect programming concepts with game design, this course will help you look at a game mechanic and break it down into rules you could use in a project of your own.

Course content

  • Video class: CS50 2D - Introduction 01m
  • Exercise: What is the main role of a game loop?
  • Video class: CS50 2D - Lecture 0 - Pong 2h33m
  • Exercise: Match each game loop step to its function.
  • Video class: CS50 2D - Lecture 1 - Flappy Bird 2h01m
  • Exercise: Recognize parallax scrolling
  • Video class: CS50 2D - Lecture 2 - Breakout 2h22m
  • Exercise: Select a sprite from a sheet
  • Video class: CS50 2D - Lecture 3 - Match 3 1h54m
  • Exercise: Order the logical steps for resolving a match in a Match-3 board.
  • Video class: CS50 2D - Lecture 4 - Super Mario Bros. 1h38m
  • Exercise: Build a sentence about tile maps.
  • Video class: CS50 2D - Lecture 5 - Legend of Zelda 2h05m
  • Exercise: How does movement in a top-down 2D game differ from movement in a side-scrolling platformer?
  • Video class: CS50 2D - Lecture 6 - Angry Birds 1h15m
  • Exercise: Match each Box2D body type to its behavior.
  • Video class: CS50 2D - Lecture 7 - Pokémon 1h30m
  • Exercise: State stacks in 2D games

This free course includes:

Icon for learning via the audio course

15 hours and 23 minutes of online video course

Icon for the digital course completion certificate

Digital certificate of course completion (Free)

Icon for exercises to practice what you've learned

Exercises to train your knowledge

Icon for courses that are 100% free from start to finish

100% free, from content to certificate

What does a game loop do in a 2D game?

It repeatedly processes input, updates game objects, and renders the screen.

How does parallax scrolling create depth in a 2D game?

It moves background layers at different speeds to create an illusion of depth.

What are the main Box2D body types used in 2D games?

Box2D uses static, kinematic, and dynamic bodies, each with different movement and physics behavior.

Ready to get started?Download the app and get started today.

Install the app now

to access the course
Icon representing technology and business courses

Over 5,000 free courses

Programming, English, Digital Marketing and much more! Learn whatever you want, for free.

Calendar icon with target representing study planning

Study plan with AI

Our app's Artificial Intelligence can create a study schedule for the course you choose.

Professional icon representing career and business

From zero to professional success

Improve your resume with our free Certificate and then use our Artificial Intelligence to find your dream job.

You can also use the QR Code or the links below.

QR Code - Download Cursa - Online Courses

Video Courses

More free courses at Game development

See all video courses