pymunk_demo_platformer_03.py Diff

pymunk_demo_platformer_03.py
--- C:\Users\craven\Desktop\WebServer\arcade\doc\tutorials\pymunk_platformer\pymunk_demo_platformer_02.py
+++ C:\Users\craven\Desktop\WebServer\arcade\doc\tutorials\pymunk_platformer\pymunk_demo_platformer_03.py
@@ -35,6 +35,22 @@
         # Init the parent class
         super().__init__(width, height, title)
 
+        # Player sprite
+        self.player_sprite: Optional[arcade.Sprite] = None
+
+        # Sprite lists we need
+        self.player_list: Optional[arcade.SpriteList] = None
+        self.wall_list: Optional[arcade.SpriteList] = None
+        self.bullet_list: Optional[arcade.SpriteList] = None
+        self.item_list: Optional[arcade.SpriteList] = None
+
+        # Track the current state of what key is pressed
+        self.left_pressed: bool = False
+        self.right_pressed: bool = False
+
+        # Set background color
+        arcade.set_background_color(arcade.color.AMAZON)
+
     def setup(self):
         """ Set up everything with the game """
         pass