mirror of
https://github.com/n0remac/game-jam-2020.git
synced 2025-12-07 03:13:15 -06:00
indentation and positioning correction in config for constants
This commit is contained in:
@@ -17,7 +17,7 @@ class Config(object):
|
|||||||
"""
|
"""
|
||||||
A simple class dedicated to loading, storing and organizing constants.
|
A simple class dedicated to loading, storing and organizing constants.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Constants
|
# Constants
|
||||||
SCREEN_WIDTH = 1650
|
SCREEN_WIDTH = 1650
|
||||||
SCREEN_HEIGHT = 1000
|
SCREEN_HEIGHT = 1000
|
||||||
@@ -29,6 +29,7 @@ class Config(object):
|
|||||||
# Constants used to scale our sprites from their original size
|
# Constants used to scale our sprites from their original size
|
||||||
CHARACTER_SCALING = 1
|
CHARACTER_SCALING = 1
|
||||||
TILE_SCALING = 2
|
TILE_SCALING = 2
|
||||||
|
BULLET_SCALING = 0.8
|
||||||
|
|
||||||
# The number of pixels across the level
|
# The number of pixels across the level
|
||||||
LEVEL_SIZE = 10 * TILE_SCALING * TILE_WIDTH
|
LEVEL_SIZE = 10 * TILE_SCALING * TILE_WIDTH
|
||||||
@@ -42,9 +43,9 @@ class Config(object):
|
|||||||
BOTTOM_VIEWPORT_MARGIN = 50
|
BOTTOM_VIEWPORT_MARGIN = 50
|
||||||
TOP_VIEWPORT_MARGIN = 100
|
TOP_VIEWPORT_MARGIN = 100
|
||||||
|
|
||||||
#Bullet constants
|
#Bullet constants
|
||||||
BULLET_SPEED = 5
|
BULLET_SPEED = 5
|
||||||
SPRITE_SCALING_BULLET = 0.8
|
|
||||||
|
|
||||||
|
|
||||||
class Enums(Enum):
|
class Enums(Enum):
|
||||||
|
|||||||
Reference in New Issue
Block a user