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>2020-01-21 15:18:19 +0700
committerNguyễn Gia Phong <vn.mcsinyx@gmail.com>2020-01-21 15:18:19 +0700
commit5e5778d814c3d76cf74aa4e660d5fbaeeeb50c82 (patch)
treeeb837ef7d4faf9c8037d626e4c4b2bb704a68814 /brutalmaze/constants.py
parente2149b18c27f536ea823ffe1a925ac483cafe3ec (diff)
downloadbrutalmaze-5e5778d814c3d76cf74aa4e660d5fbaeeeb50c82.tar.gz
Drop Python 2 support (resolve #13)
Diffstat (limited to 'brutalmaze/constants.py')
-rw-r--r--brutalmaze/constants.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/brutalmaze/constants.py b/brutalmaze/constants.py
index 4c10843..1fab35a 100644
--- a/brutalmaze/constants.py
+++ b/brutalmaze/constants.py
@@ -1,6 +1,5 @@
-# -*- coding: utf-8 -*-
 # constants.py - module for shared constants
-# Copyright (C) 2017, 2018  Nguyễn Gia Phong
+# Copyright (C) 2017-2020  Nguyễn Gia Phong
 #
 # This file is part of Brutal Maze.
 #
@@ -56,7 +55,7 @@ BULLET_SPEED = 15   # grid/s
 ATTACK_SPEED = 333.333  # ms/strike
 MAX_WOUND = 1   # per attack turn
 FIRANGE = 6     # grids
-BULLET_LIFETIME = 1000.0 * FIRANGE / (BULLET_SPEED-HERO_SPEED)  # ms
+BULLET_LIFETIME = 1000 * FIRANGE / (BULLET_SPEED-HERO_SPEED)    # ms
 EMPTY, WALL, HERO, ENEMY = range(4)
 ADJACENTS = (1, 0), (0, 1), (-1, 0), (0, -1)
 CORNERS = (1, 1), (-1, 1), (-1, -1), (1, -1)