mirror of
https://github.com/n0remac/game-jam-2020.git
synced 2025-12-09 04:05:20 -06:00
cleanup Game init
This commit is contained in:
@@ -45,23 +45,16 @@ class Game(arcade.Window):
|
|||||||
# Call the parent class and set up the window
|
# Call the parent class and set up the window
|
||||||
super().__init__(Config.SCREEN_WIDTH, Config.SCREEN_HEIGHT, Config.SCREEN_TITLE)
|
super().__init__(Config.SCREEN_WIDTH, Config.SCREEN_HEIGHT, Config.SCREEN_TITLE)
|
||||||
|
|
||||||
# These are 'lists' that keep track of our sprites. Each sprite should
|
# Sprite Lists
|
||||||
# go into a list.
|
|
||||||
self.enemy_list = None
|
self.enemy_list = None
|
||||||
self.bullet_list = None
|
self.bullet_list = None
|
||||||
self.player = None
|
self.player = None
|
||||||
|
# Game Objects
|
||||||
self.dungeon = None
|
self.dungeon = None
|
||||||
|
self.prev_keypress = [] # A list that assists with tracking keypress events
|
||||||
# list to keep track of keypresses
|
self.physics_engine = None # Our physics engine
|
||||||
self.prev_keypress = []
|
|
||||||
|
|
||||||
# Our physics engine
|
|
||||||
self.physics_engine = None
|
|
||||||
|
|
||||||
# Used to keep track of our scrolling
|
# Used to keep track of our scrolling
|
||||||
self.view_bottom = 0
|
self.view_bottom = self.view_left = 0
|
||||||
self.view_left = 0
|
|
||||||
|
|
||||||
arcade.set_background_color(arcade.color.BLACK)
|
arcade.set_background_color(arcade.color.BLACK)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user