about summary refs log tree commit diff homepage
path: root/brutalmaze/constants.py
diff options
context:
space:
mode:
authorNguyễn Gia Phong <vn.mcsinyx@gmail.com>2017-10-22 17:07:05 +0700
committerNguyễn Gia Phong <vn.mcsinyx@gmail.com>2017-10-22 17:07:05 +0700
commitaafa943a5313721cb2dee408a0b60c8b11ff5ad2 (patch)
tree806ec57188ad45634bf3eb363344ba78bdef4820 /brutalmaze/constants.py
parentc5a67b0e590838f955ff31d478cbb0938cd5c308 (diff)
downloadbrutalmaze-aafa943a5313721cb2dee408a0b60c8b11ff5ad2.tar.gz
Enable pausing, fix sticky move bug and clean up
Diffstat (limited to 'brutalmaze/constants.py')
-rw-r--r--brutalmaze/constants.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/brutalmaze/constants.py b/brutalmaze/constants.py
index e85c1cb..d3d97b5 100644
--- a/brutalmaze/constants.py
+++ b/brutalmaze/constants.py
@@ -18,7 +18,6 @@
 # Copyright (C) 2017 Nguyễn Gia Phong
 
 from pygame import image
-from pygame.locals import *
 from pkg_resources import resource_filename
 
 __doc__ = 'brutalmaze module for shared constants'
@@ -29,6 +28,7 @@ SQRT2 = 2 ** 0.5
 GOLDEN_MEAN = 5**0.5/2 + 0.5
 
 INIT_FPS = 30.0
+MAX_FPS = 144.0
 SIZE = 640, 480
 MAZE_SIZE = 10
 ROAD_WIDTH = 5  # grids
@@ -38,7 +38,7 @@ LAST_ROW = (MAZE_SIZE-1) * ROAD_WIDTH * 2
 INIT_SCORE = 208.2016
 MOVE_SPEED = 5  # grid/s
 BULLET_SPEED = 10   # grid/s
-HEAL_SPEED = 1.0    # HP/s
+HEAL_SPEED = 1  # HP/s
 ATTACK_SPEED = 333  # ms/strike
 BULLET_LIFETIME = 1000  # ms
 
@@ -56,5 +56,7 @@ TANGO = {'Butter': ((252, 233, 79), (237, 212, 0), (196, 160, 0)),
                        (136, 138, 133), (85, 87, 83), (46, 52, 54))}
 ENEMIES = ('Butter', 'Orange', 'Chocolate', 'Chameleon',
            'Sky Blue', 'Plum', 'Scarlet Red')
+ENEMY_HP = 3
+HERO_HP = 6
 BG_COLOR = TANGO['Aluminium'][-1]
 FG_COLOR = TANGO['Aluminium'][0]