Back to list
dev_to 2026年4月25日

1991年の古典『ゴリラ』を Python で作り直しました——そして Snapcraft の旅もクリアしました

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

Translated: 2026/4/25 6:30:26 翻訳信頼度: 92.9%
pythonpygamesnapcraftgame-devretro-games

Japanese Translation

懐かしいヒット🍌 空に立つ二匹のゴリラが互いに爆発するバナナを投げているのをご記憶ですか?それを取り戻すことにしました。私は古典的な QBasic ゴリラを Python と Pygame を使って作り直しました。 すべてが含まれています: ランダムに生成される街のスカイライン。 パラボリックな物理(重力は強力です)。 当たると反応する定番の太陽。 その"モダンな"レトロ感を演出する画面揺れ。 テックスタック 言語:Python 3.12 ライブラリ:Pygame(2D 描画の主力処理) 配布:Snapcraft(Ubuntu Snaps) "Snap"の苦戦は本物🛠️ Linux でのパッケージ化は冒険でした。誰でも仮想環境に触れずに簡単にインストールできるようにしたいと思っていました。 私はあらゆる障害に直面しました: Python プラグイン:クリーンなコンテナ内でインタプリタを動作させるのは難しかったです。 制限付きモード:オーディオやビデオドライバが異なるディストリビューションで滑らかに動作するように、クラシック制限付きモードに切り替えることが鍵でした。 "破壊的"な修正:ローカルコンテナが頑固だと感じると、--destructive-mode を使用することに学びました。 プレイ方法 Linux 上なら、今すぐ試して見ることができます(ストア承認待ちですが、ソースからビルドも可能です!): git clone https://github.com/davdomin/gorillas-retro-remake python3 src/main.py 次は何にするか?🚀 今私は IP 接続を用いたマルチプレイヤーモードの追加を考えています。1991 年の作り直しとしては過剰でしょうか。いえ、コードを書くのは楽しみになるでしょう。 コードはここをご覧ください:https://github.com/davdomin/gorillas

Original Content

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. The Tech Stack Language: Python 3.12 Library: Pygame (for the heavy lifting of 2D rendering) Distribution: Snapcraft (Ubuntu Snaps) 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. The "Destructive" Fix: Learning to use --destructive-mode when my local container felt like being stubborn. How to Play If you are on Linux, you can try it out right now (waiting for store approval, but you can build from source!): git clone https://github.com/davdomin/gorillas-retro-remake python3 src/main.py What’s Next? 🚀 I'm currently thinking about adding a multiplayer mode via IP connection. Is it overkill for a 1991 remake? Maybe. Is it going to be fun to code? Absolutely. Check out the code here: https://github.com/davdomin/gorillas