Skip to content

Commit

Permalink
Update camera parameters to current 2.6.0.dev2 standard
Browse files Browse the repository at this point in the history
  • Loading branch information
pvcraven committed Jul 28, 2021
1 parent 5b5151a commit cced2a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/python_arcade_rpg/game_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def __init__(self, map_list):
self.enemy_dictionary = json.load(f)

# Cameras
self.camera_sprites = arcade.Camera(self.window, self.window.width, self.window.height)
self.camera_gui = arcade.Camera(self.window, self.window.width, self.window.height)
self.camera_sprites = arcade.Camera(self.window.width, self.window.height)
self.camera_gui = arcade.Camera(self.window.width, self.window.height)

# Create a small white light
x = 100
Expand Down Expand Up @@ -169,7 +169,7 @@ def on_draw(self):
# of what we drew into the light layer above.
if cur_map.properties and 'ambient_color' in cur_map.properties:
ambient_color = cur_map.properties['ambient_color']
ambient_color = (ambient_color.green, ambient_color.blue, ambient_color.alpha, ambient_color.red)
# ambient_color = (ambient_color.green, ambient_color.blue, ambient_color.alpha, ambient_color.red)
else:
ambient_color = arcade.color.WHITE
cur_map.light_layer.draw(ambient_color=ambient_color)
Expand Down

0 comments on commit cced2a1

Please sign in to comment.