Skip to content

Latest commit

 

History

History
100 lines (71 loc) · 2.15 KB

README_eng.md

File metadata and controls

100 lines (71 loc) · 2.15 KB

Game like Bomberman

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.

Requirements:

  • Python 2.7.13
  • PyGame
  • PyOpenGL
  • numpy

Installation

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

Executing

There are two versions of the game:

  • one with pure PyGame (using sprites for the explosions)
  • one with PyGame and PyOpenGL (with drawn explosions).

OpenGL version:

cd src/
python main.py

PyGame version (with sprites):

cd src_pygame/
python main.py

Gameplay

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.

Controls:

  • a: put bomb
  • arrow keys: move person
  • q: quit

Screenshots

Gameplay with OpenGL

Power ups and explosions in OpenGL.

Gameplay OpenGL Explosion 1 Explosion 2 Explosion 3 Explosion 4

Gameply with PyGame

Gameplay PyGame

Troubleshooting

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.

Credits

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

Music

8-bit version of Hunting High and Low, by Stratovarius.