8000 Fix member resolving in docs + camera docs (#2613) · pythonarcade/arcade@32cb543 · GitHub
[go: up one dir, main page]

Skip to content

Commit 32cb543

Browse files
authored
Fix member resolving in docs + camera docs (#2613)
1 parent a1cb4ba commit 32cb543

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+95
-88
lines changed

arcade/examples/background_blending.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
class GameView(arcade.View):
2525
def __init__(self):
2626
super().__init__()
27-
self.camera = arcade.camera.Camera2D()
27+
self.camera = arcade.Camera2D()
2828

2929
# Load the first background from file. Sized to match the screen
3030
self.background_1 = background.Background.from_file(

arcade/examples/background_groups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self):
2929
# Set the background color to equal to that of the first background.
3030
self.background_color = (5, 44, 70)
3131

32-
self.camera = arcade.camera.Camera2D()
32+
self.camera = arcade.Camera2D()
3333

3434
# create a background group which will hold all the backgrounds.
3535
self.backgrounds = background.BackgroundGroup()

arcade/examples/background_parallax.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(self):
4040
# Set the background color to match the sky in the background images
4141
self.background_color = (162, 84, 162, 255)
4242

43-
self.camera = arcade.camera.Camera2D()
43+
self.camera = arcade.Camera2D()
4444

4545
# Create a background group to hold all the landscape's layers
4646
self.backgrounds = background.ParallaxGroup()

arcade/examples/background_scrolling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
class GameView(arcade.View):
2525
def __init__(self):
2626
super().__init__()
27-
self.camera = arcade.camera.Camera2D()
27+
self.camera = arcade.Camera2D()
2828

2929
# Load the background from file. Sized to match the screen
3030
self.background = background.Background.from_file(

arcade/examples/background_stationary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class GameView(arcade.View):
2424
def __init__(self):
2525
super().__init__()
26-
self.camera = arcade.camera.Camera2D()
26+
self.camera = arcade.Camera2D()
2727

2828
# Load the background from file. It defaults to the size of the texture
2929
# with the bottom left corner at (0, 0).

arcade/examples/camera_platform.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def __init__(self):
6868
self.fps_message = None
6969

7070
# Cameras
71-
self.camera: arcade.camera.Camera2D = None
71+
self.camera: arcade.Camera2D = None
7272
self.gui_camera = None
7373

7474
self.camera_shake = None
@@ -131,7 +131,7 @@ def setup(self):
131131
self.player_sprite.center_y = 128
132132
self.scene.add_sprite("Player", self.player_sprite)
133133

134-
self.camera = arcade.camera.Camera2D()
134+
self.camera = arcade.Camera2D()
135135

136136
self.camera_shake = arcade.camera.grips.ScreenShake2D(self.camera.view_data,
137137
max_amplitude=12.5,

arcade/examples/full_screen_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self):
4343
self.example_image = arcade.load_texture(":resources:images/tiles/boxCrate_double.png")
4444

4545
# The camera used to update the viewport and projection on screen resize.
46-
self.camera = arcade.camera.Camera2D(
46+
self.camera = arcade.Camera2D(
4747
position=(0, 0),
4848
projection=LRBT(left=0, right=WINDOW_WIDTH, bottom=0, top=WINDOW_HEIGHT),
4949
viewport=self.window.rect

arcade/examples/gl/custom_sprite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class GeoSprites(arcade.Window):
3434

3535
def __init__(self):
3636
super().__init__(800, 600, "Custom Sprites", resizable=True)
37-
self.camera = arcade.camera.Camera2D()
37+
self.camera = arcade.Camera2D()
3838
self.program = self.ctx.program(
3939
vertex_shader="""
4040
#version 330

arcade/examples/light_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(self):
4747
self.physics_engine = None
4848

4949
# Camera
50-
self.camera: arcade.camera.Camera2D = None
50+
self.camera: arcade.Camera2D = None
5151

5252
# --- Light related ---
5353
# List of all the lights
@@ -59,7 +59,7 @@ def setup(self):
5959
""" Create everything """
6060

6161
# Create camera
62-
self.camera = arcade.camera.Camera2D()
62+
self.camera = arcade.Camera2D()
6363

6464
# Create sprite lists
6565
self.background_sprite_list = arcade.SpriteList()

arcade/examples/line_of_sight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def setup(self):
7070
""" Set up the game and initialize the variables. """
7171

7272
# Camera
73-
self.camera = arcade.camera.Camera2D()
73+
self.camera = arcade.Camera2D()
7474

7575
# Sprite lists
7676
self.player_list = arcade.SpriteList()

0 commit comments

Comments
 (0)
0