Skip to content

Dangermannn/Bomberman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Used:

  • python 3.8.1
  • pygame 1.9.6

Bomberman

Well known bomberman game written in python.

Main menu

About the game

Bomberman (ボンバーマン, Bonbāman, also briefly known as Dyna Blaster in Europe) is a strategic, maze-based video game franchise originally developed by Hudson Soft and currently owned by Konami. The first game in the series was released in Japan in December 20, 1985 (1987 in the US) and new games have been published at irregular intervals ever since. Today, Bomberman has featured in over 70 different games on numerous platforms.

You can read more about it here

Main rules of the game

  • Player's goal is to kill all ghost wandering around
  • Player has 5 HP at the beggining (it changes with further level), if he gets hit by a bomb's fire or steps on any ghosts - his HP is being reduced
  • Game ends when player's HP is 0
  • Player can destroy blocks and kill ghost by placing bombs at any place on the map

Level system

After passing the level player's stats are reduced respectively:

  • LEVEL > 5 => BOMB AMOUNT -= 1, BOMB RANGE -= 1
  • LEVEL > 10 => PLAYER'S SPEED -= 1
  • LEVEL > 15 => PLAYER's HEALTH -= 1 (PLAYER CANNOT DIE BECAUSE OF IT)

How to play

  • Menu: pressing particular button with mouse
  • In game:
    • Movement: ARROWS - UP, DOWN, LEFT, RIGHT
    • Placing bomb: SPACEBAR

Description of created classes

Character

Basic class initializing basic statistics of a player and simple methods for collision

Player

Main player class extending Character's class. That class handles movement with arrows and placing bombs

Ghost

Ghost class handles movement of the bots.

Bomb

Class for creating a bomb, finding blocks to set fire, checking if there's collision with player/ghosts/bricks after explosion, picking proper animation frame.

Button

It creates a button at any place with a particular size. Additionaly handles mouse hover.

SpriteTool

Loading sprite to memory, picking right frame.

Menu

Simple menu class

MainGame

Class for handling main game.

BombTest

Class for bomb tests.

PlayerTest

Class for player tests.

GhostTest

Class for ghost tests.

Assets

Class for loaded images.

MainGame

Class for handling main game.

Menu

It creates a menu with button and handles particular buttons.

About

Well known bomberman game written in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages