Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Pygame Foundations for your first game

via CodeSignal

Overview

Learn the building blocks of game development with Pygame. You will initialize a game window, draw colored shapes, control frame rate for smooth animation, and move a player rectangle with arrow keys. You will also learn the 2D coordinate system, where (0,0) is the top-left corner and Y increases as you move down the screen.

Syllabus

Building a Pygame Foundation

  • Opening Your First Game Window
  • Keeping the Window Alive
  • Painting Your Canvas at Sixty

Drawing Shapes in Pygame

  • Your First Shape on Screen
  • A Second Shape Appears
  • Completing the Scene with a Circle

Animating Objects with Rects

  • A Box That Remembers Its Place
  • Bringing the Red Block to Life
  • Making the Fall Never End

Adding Player Movement

  • Give the Player Its Own Rect
  • Taking the Arrow Keys Control
  • Keeping the Player On Screen

Reviews

Start your review of Pygame Foundations for your first game

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.