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
3 changes: 2 additions & 1 deletion arcade/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def configure_logging(level: int = None):
from .window_commands import start_render
from .window_commands import unschedule

from .camera import Camera, BaseCamera, AdvanceCamera
from .camera import SimpleCamera, Camera
from .sections import Section, SectionManager

from .application import MOUSE_BUTTON_LEFT
Expand Down Expand Up @@ -348,6 +348,7 @@ def configure_logging(level: int = None):
'ArcadeContext',
'AtlasRegion',
'Camera',
'SimpleCamera',
'Color',
'DEFAULT_FONT_NAMES',
'EasingData',
Expand Down
8 changes: 3 additions & 5 deletions arcade/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import os
import sys
import time
from typing import Tuple, Optional, Union
from typing import Tuple, Optional

import pyglet

Expand All @@ -29,8 +29,6 @@

_window: 'Window'

ArcadeCameras = Union[arcade.Camera, arcade.BaseCamera, arcade.AdvanceCamera] # type alias


def get_screens():
"""
Expand Down Expand Up @@ -170,7 +168,7 @@ def __init__(
set_window(self)

self._current_view: Optional[View] = None
self.current_camera: Optional[ArcadeCameras] = None
self.current_camera: Optional[arcade.SimpleCamera] = None
self.textbox_time = 0.0
self.key: Optional[int] = None
self.flip_count: int = 0
Expand Down Expand Up @@ -528,7 +526,7 @@ def on_draw(self):
"""
pass

def on_resize(self, width: float, height: float):
def on_resize(self, width: int, height: int):
"""
Override this function to add custom code to be called any time the window
is resized. The main responsibility of this method is updating
Expand Down
Loading