Menu

Post image 1
Post image 2
1 / 2
0

Remade the 1991 Classic "Gorillas" in Python—and Survived the Snapcraft Journey

DEV Community·David Dominguez·about 1 month ago
#aT3mppsz
Reading 0:00
15s threshold

The Nostalgia Hit 🍌 Remember the two gorillas standing on a skyline, tossing exploding bananas at each other? I decided to bring that back. I built a remake of the classic QBasic Gorillas using Python and Pygame. It has everything: Randomly generated city skylines. Parabolic physics (gravity is a beast). The classic sun that reacts when hit. Screen shake for that "modern" retro feel. Enter fullscreen mode Exit fullscreen mode The Tech Stack Language: Python 3.12 Library: Pygame (for the heavy lifting of 2D rendering) Distribution: Snapcraft (Ubuntu Snaps) Enter fullscreen mode Exit fullscreen mode The "Snap" Struggle is Real 🛠️ Packaging this for Linux was an adventure. I wanted to make it easy for anyone to install without messing with virtual environments. I hit every wall possible: The Python Plugin: Getting the interpreter to behave inside a clean container was tricky. Confinement: Switching to classic confinement was the key to getting audio and video drivers working smoothly across different distros.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More