DEV Community

Cover image for A basic pygame game which is not basic - Starfall Protocol
Naman Chhabra
Naman Chhabra

Posted on

A basic pygame game which is not basic - Starfall Protocol

This is a simple pygame game built by an intermediate level 16yrs old coder


Here is the download link without so much boring talks:

https://gamejolt.com/games/starfall-protocol/1074404

Please note that Windows is currently supported and I have never tested my game on other platforms like MacOs/Linux


Starting Screen

How I Made this?

Like many beginners learning Pygame, I started with a simple idea:

“Move a green colored square and avoid red colored squares as obstacles.”

At first, the game was extremely basic:

  • Black Color Background
  • Simple Obstacle movement
  • Basic collision system
  • Plain gameplay loop

But over time, I kept adding more features into the project.

Eventually, the project evolved into Starfall Protocol — a cinematic 2D space game built using Python and Pygame.


What Makes It Different from other 2d games?

Instead of keeping the project as a simple beginner game, I tried adding strange features usually not seen in beginner Python projects.

Video Scenes

The game now contains:

  • Intro Scene (Rocket Boosts)
  • Ending scene (Rocket Crash)
  • Press Space to skip

Background

I added:

  • Infinite scrolling backgrounds
  • Dynamic resizing support
  • Full screen support
  • Randomized background images
  • Changes after every few minutes

Gameplay Improvements

The gameplay includes:

  • Asteroid spawning
  • Comets (High speed)
  • Difficulty progression
  • Life system
  • Score system
  • Detects Collision at pixel level
  • Sound effects and music

Additional Systems

I also experimented with:

  • Firebase integration
  • Customtkinter Screen for Rate us and Feedback support
  • Splash screen module
  • Window resizing logic

Challenges I faced

  • Full screen resizing
  • scrolling backgrounds
  • First time using Firebase
  • OpenCv to Pygame surface conversion

Module Used

  • OpenCv-python
  • Pygame
  • CustomTkinter
  • Requests
  • Splashscreen-engine
  • Some built-in modules

I think its enough description, I am tired now 😅


Download & Play the Game

Game Jolt

https://gamejolt.com/games/starfall-protocol/1074404

itch.io

https://namanchhabra21.itch.io/starfall-protocol

GitHub Repository

https://github.com/NamanChhabra21/Starfall-Protocol


Just like the universe… this journey never ends.

Top comments (0)