Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions arcade/examples/camera2d_splitscreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ def setup_players_cameras(self):
# Calling equalise will equalise/equalize the Camera's projection
# to match the viewport. If we don't call equalise, proportions
# of our sprites can appear off.
player_one_camera.equalise()
player_two_camera.equalise()
player_one_camera.equalize()
player_two_camera.equalize()

# Save a list of our cameras for later use
self.cameras.append(player_one_camera)
Expand Down Expand Up @@ -310,8 +310,8 @@ def on_resize(self, width: float, height: float):

self.cameras[PLAYER_ONE].viewport = arcade.LBWH(0, 0, half_width, height)
self.cameras[PLAYER_TWO].viewport = arcade.LBWH(half_width, 0, half_width, height)
self.cameras[PLAYER_ONE].equalise()
self.cameras[PLAYER_TWO].equalise()
self.cameras[PLAYER_ONE].equalize()
self.cameras[PLAYER_TWO].equalize()

# Our divider sprite location will need to be adjusted as
# we used the screen's width and height to set it's location
Expand Down
Loading
Loading