exp-runtime-player 0.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- exp_runtime/app_icon.py +12 -0
- exp_runtime/app_info.py +16 -0
- exp_runtime/application.py +825 -0
- exp_runtime/assets/kiwi.svg +49 -0
- exp_runtime/desktop.py +726 -0
- exp_runtime/desktop_choice.py +202 -0
- exp_runtime/desktop_dialogue.py +271 -0
- exp_runtime/desktop_input.py +176 -0
- exp_runtime/desktop_loading.py +45 -0
- exp_runtime/desktop_menu.py +448 -0
- exp_runtime/desktop_message.py +123 -0
- exp_runtime/desktop_pause.py +105 -0
- exp_runtime/desktop_picker.py +68 -0
- exp_runtime/desktop_text.py +88 -0
- exp_runtime/desktop_title.py +82 -0
- exp_runtime/graphics.py +79 -0
- exp_runtime/platforms/__init__.py +1 -0
- exp_runtime/platforms/drawing.py +612 -0
- exp_runtime/platforms/ios.py +225 -0
- exp_runtime/pointer.py +25 -0
- exp_runtime/projection.py +68 -0
- exp_runtime/settings.py +46 -0
- exp_runtime/updates.py +144 -0
- exp_runtime_player-0.5.0.dist-info/METADATA +49 -0
- exp_runtime_player-0.5.0.dist-info/RECORD +29 -0
- exp_runtime_player-0.5.0.dist-info/WHEEL +5 -0
- exp_runtime_player-0.5.0.dist-info/entry_points.txt +3 -0
- exp_runtime_player-0.5.0.dist-info/licenses/LICENSE +21 -0
- exp_runtime_player-0.5.0.dist-info/top_level.txt +1 -0
exp_runtime/app_icon.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""The authored app logo, independent of player-supplied game artwork."""
|
|
2
|
+
from functools import lru_cache
|
|
3
|
+
from importlib.resources import files
|
|
4
|
+
from io import BytesIO
|
|
5
|
+
|
|
6
|
+
from . import graphics as pygame
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@lru_cache(maxsize=8)
|
|
10
|
+
def icon_surface(size=128):
|
|
11
|
+
data = files('exp_runtime').joinpath('assets/kiwi.svg').read_bytes()
|
|
12
|
+
return pygame.image.load_sized_svg(BytesIO(data), (size, size))
|
exp_runtime/app_info.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""Public runtime identity, independent of the imported game's version."""
|
|
2
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
PROJECT_REPOSITORY = 'joshrmcdaniel/exp-runtime'
|
|
6
|
+
PROJECT_URL = f'https://github.com/{PROJECT_REPOSITORY}'
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def runtime_version():
|
|
10
|
+
# A custom install may use the player component without the umbrella.
|
|
11
|
+
for distribution in ('exp-runtime', 'exp-runtime-player'):
|
|
12
|
+
try:
|
|
13
|
+
return version(distribution)
|
|
14
|
+
except PackageNotFoundError:
|
|
15
|
+
pass
|
|
16
|
+
return 'development'
|