This module implement a simple Bomberman game. No concrete net yet (just some try : connect all players to a server, and log all move).
Warning
This script is deprecated, don’t use it. Delete me ! I’m useless now...
Can also be used as a program, currently just for testing. ./SimpleGame.py [OPTIONS]
--help, -h Exit and print this help message.
-v1 Increase verbosity (default).
-v2 Increase again ! (not very good).
--debug Run with pygdb.
--noANSI Disable colors and escape caracters from ANSIColors. Usefull to run the program with bpython.
--noUTF Disable UTF caracters for boxes printing. Uggly, but more universal !
Creating all Game variables.
Save all variables content the list variables_to_save, in a .pkl file.
Big loop to test some behaviour. How to print bombs and bonuses in text mod ? How to move players, allow theme to drop bombs ? Make bombs explosion ?
There are a lot of stuff to work arround !
[nbmax] Is max number of players,
[lx], [ly] Are lenght of the board,
[pl] Is the list of player (represented as Player.Player instances),
[board] Is ... the board (represented as Board.Board instance !),
[Mi], [Mj] Are list of players’ position to initiate the game,
[verb], [verb2] Are option for verbosity of the game,
- [keyBindingList] Is a KeyBinding.KeyBinding to map key to moves.
For now, just ONE key (from a to z, A to Z, or ASCII caracters e.g. ~?;/ etc...).
Default = True
Default = False