Project with educational purposes. It is a Bomberman-like game developed in Python 2.7.13. Started from some code provided by Computer Graphics section, 2018.
Model-view-controller pattern design.
- Python 2.7.13
- PyGame
- PyOpenGL
- numpy
Can be installed via conda package as Python 2 is deprecated already.
Steps:
conda create -n Bomberman-env python=2.7.13
conda activate Bomberman-env
pip isntall pygame
pip install pyopengl
pip install numpy
There are two versions of the game:
- one with pure PyGame (using sprites for the explosions)
- one with PyGame and PyOpenGL (with drawn explosions).
cd src/
python main.py
cd src_pygame/
python main.py
There are two power ups:
- roller skates: increased velocity
- lightning: increased explosion power
The goal is to advance to destroy the block with the portal inside for going to the next level.
Enemies kill you, as well as your own bombs.
- a: put bomb
- arrow keys: move person
- q: quit
Power ups and explosions in OpenGL.
If there is an error like:
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open radeonsi:
It may be fixed with:
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6
as stated in Issue.
Author: Cristián Llull Torres
Contact: [email protected]
Help and initial code by:
- Pablo Pizarro R.
- Mauricio Araneda H.
- Pablo R. Polanco
- Daniel Calderón
8-bit version of Hunting High and Low, by Stratovarius.