Linux Format

PYTHON

Bomberman, developed by Hudson Soft in 1983 and currently owned by Kanomi, is a game in which a player has to eliminate every other player on the game grid to win. We’re looking at a clone of Bomberman created by Michal Sliva and Tomas Novak, the source code of which has been adapted for the benefit of this tutorial. The original source code for the project can be retrieved from https://github.com/Forestf90/Bomberman.

On a clean dev system, we need to install and set up Python 3.10. If you already have Python and PyGame installed, Python 3.8+ should be a good enough version to use with this tutorial. Type the following to install Python 3.10 and PyGame: $ sudo apt-get update $ sudo apt-get install python3.10 $ sudo apt-get install python3-pip $ python3.10 -m pip install pygame

To make sure you are calling the correct Pip version, check in the Scripts folder of the Python installation folder. There may be a version number of Pip to use – Pip 3.8, for example.

Check the Python version and PyGame version, then Git clone from the repository: $ git clone https://github.com/asmith1979/lxf299_ bomberman/

The source code and project can also be retrieved from the archive. This tutorial focuses on the source code located in the folder called lxf299_ bomberman, so if not already in that folder, type $ cd lxf299_bomberman to get into the folder and gain access

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format5 min read
Some Ansible Advice For Around The Home!
Of late, this writer has been busy creating new virtual hosts for different things and decided that it would be an ideal time to get stuck into Ansible. Things have evolved in system management since Bash. Ansible is a great way to deploy software c
Linux Format14 min read
Ubuntu at 20
Without Ubuntu, the current Linux landscape would be unrecognisable. Back in October 2004, the first 4.10 (2004.10) release of Ubuntu, with its intriguing Warty Warthog code name, leapt from obscurity to being one of the most downloaded Linux distrib
Linux Format3 min read
Kernel Watch
Linus Torvalds announced the fourth RC (Release Candidate) for what will become Linux 6.9 in another few weeks. In his announcement, he noted that there was “Nothing particularly unusual going on this week – some new hardware mitigations may stand o

Related Books & Audiobooks