Skip to content

Alien Invasion project from Python Crash Course Part II Project 1. Tkinter and pygame are used. Dark mode implemented.

Notifications You must be signed in to change notification settings

ckcksum/pcc-proj1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alien Invasion

This is my solution to the Python Crash Course Part II Project 1, Alien Invasion. In this game, a player can control a rocket ship to defend against an invading fleet of aliens. Dark mode is supported.



Planning

  • Player: controls the rocket ship at the bottom center
    • arrow key: ship to right/left
    • spacebar: shoot bullets
  • A fleet of aliens:
    • Fills the sky and moves across and down the screen at the start of the game.
    • All aliens are destroyed: a new and faster fleet appears
  • Losing a ship :
    • If an alien hits the ship
    • If an alien reaches the bottom of the screen
  • Game end: Player loses 3 ships

Description

Chapter 12 A SHIP THAT FIRES BULLETS

  • Create the basic structure of the game include:
    • Game backgroud
    • Ship and bullets settings and control

Chapter 13 ALIENS!

  • Create aliens and the move of the fleet
  • Track game statistics with game_active flag

Chapter 14 Scoring

  • Set Game Play button
  • Elements' speed settings
  • Implementing the scoring system

My implementation

I created a toggle button that allows users to switch between light and dark modes.

  • 21/06/24: Dark mode created but toggle button and the main game window are seperated.

TOP

About

Alien Invasion project from Python Crash Course Part II Project 1. Tkinter and pygame are used. Dark mode implemented.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages