refall 1.0.0__py3-none-win_amd64.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.
refall/__init__.py ADDED
@@ -0,0 +1,8 @@
1
+ """Refall: a music-reactive falling-block puzzle game that plays any playlist."""
2
+
3
+ from importlib.metadata import PackageNotFoundError, version
4
+
5
+ try:
6
+ __version__ = version("refall") # single source of truth: pyproject.toml
7
+ except PackageNotFoundError:
8
+ __version__ = "unknown"
refall/__main__.py ADDED
@@ -0,0 +1,3 @@
1
+ from ._launcher import main
2
+
3
+ main()
refall/_launcher.py ADDED
@@ -0,0 +1,53 @@
1
+ """Console entry points: run the bundled native binaries (refall, refall-scope, refall-voyage-viewer)."""
2
+
3
+ import os
4
+ import shutil
5
+ import subprocess
6
+ import sys
7
+ import sysconfig
8
+ from pathlib import Path
9
+
10
+ BIN_DIR = Path(__file__).resolve().parent / "bin"
11
+
12
+
13
+ def _tool_env() -> dict:
14
+ env = dict(os.environ)
15
+ # yt-dlp is a dependency of this package: point the game to the one installed alongside.
16
+ scripts = Path(sysconfig.get_path("scripts"))
17
+ for name in ("yt-dlp", "yt-dlp.exe"):
18
+ if (scripts / name).is_file():
19
+ env.setdefault("REFALL_YTDLP", str(scripts / name))
20
+ break
21
+ # yt-dlp needs ffmpeg to convert audio; use the bundled one when the system has none.
22
+ if not shutil.which("ffmpeg"):
23
+ try:
24
+ import imageio_ffmpeg
25
+
26
+ env.setdefault("REFALL_FFMPEG", imageio_ffmpeg.get_ffmpeg_exe())
27
+ except Exception:
28
+ pass
29
+ return env
30
+
31
+
32
+ def _run(name: str) -> None:
33
+ exe = BIN_DIR / (name + (".exe" if os.name == "nt" else ""))
34
+ if not exe.is_file():
35
+ sys.exit(f"{name}: bundled binary not found at {exe}")
36
+ try:
37
+ code = subprocess.call([str(exe), *sys.argv[1:]], env=_tool_env())
38
+ except KeyboardInterrupt:
39
+ code = 130
40
+ sys.exit(code)
41
+
42
+
43
+ def main() -> None:
44
+ _run("refall")
45
+
46
+
47
+ def scope() -> None:
48
+ _run("refall-scope")
49
+
50
+
51
+ def voyage_viewer() -> None:
52
+ _run("refall-voyage-viewer")
53
+
@@ -0,0 +1,66 @@
1
+ # Refall campaign: 15 stages of 4 songs, played in a row (song 1 to 4).
2
+ # One line per song: stage, song (1..4), YouTube video id, universe (NAME or NAME:VARIANT, as --universe
3
+ # takes it), the velocity (1..40, decimals allowed: 20 is ten times velocity 1, 40 about twenty times, on HARD from 30 on its drops fall in hyperdrop (20G), on EXPERT from 24 on (at 40 its choruses too); the game climbs to it over the song's first seconds) on EASY, NORMAL, HARD and EXPERT (HARD + 7, at most 40; a line without it gets that), and the title.
4
+ # Columns are separated by tabs; lines starting with # are comments. The game reads this file from the
5
+ # sources when it starts (else the copy built into it, or --campaign FILE).
6
+ # stage song id universe easy normal hard expert title
7
+ 1 1 H_9xqc084UA PRISM:AURORA 3.0 5.0 9.0 16.0 Small Town Kid - Shards
8
+ 1 2 pJguiXxgaFo WATERCOLOR:TURNER SUNSET 3.8 6.2 10.5 17.5 AVAION - Colors
9
+ 1 3 YyFyudLOkeA TOPOGRAPHY:CYANOTYPE 4.5 7.5 12.2 19.2 Jasper Tygner - First Light
10
+ 1 4 gjTkkswfVLE ORIGAMI:INDIGO 5.5 9.0 14.1 21.1 Last Sun - Care 4 U
11
+ 2 1 agu39idW5VY SMOKE:DAYLIGHT 3.4 5.2 9.2 16.2 Magic Wand ft. Emma Carn - Sunset
12
+ 2 2 7PcQtXcOxrY NOTEPAD:CHALK 4.1 6.4 10.8 17.8 Mura Masa ft. A$AP Rocky - Love$ick
13
+ 2 3 uOFTqVi-qp4 ELECTRON:PLASMA 4.9 7.7 12.4 19.4 San Holo - Light
14
+ 2 4 HZ6L_6a7RcQ FRACTAL:SUNSHINE 5.9 9.2 14.3 21.3 Elderbrook - Shallow Water
15
+ 3 1 8ayH60ET4U0 GARDEN:SPRING DAY 3.8 5.6 9.8 16.8 ODESZA ft. WYNNE & Mansionair - Line Of Sight
16
+ 3 2 JNVXi3QpaMo BRICKS:NIGHT 4.5 6.8 11.3 18.3 Louis The Child ft. K.Flay - It's Strange
17
+ 3 3 -h96iBmn2LE WHITE ROOM:NORDIC 5.3 8.1 12.9 19.9 oskar med k - Too Tense
18
+ 3 4 1TlckH2mCmI RISOGRAPH:VIOLET & GREEN 6.3 9.6 14.9 21.9 AVAION, PaulWetz, Nu Aspect, YUMA - Sleepless
19
+ 4 1 bCneCCvp0N0 CITY:SNOWFALL 4.2 6.1 10.6 17.6 Killen. - Get Lost
20
+ 4 2 iZAqaykiS70 MANGA:SHONEN 4.9 7.3 12.1 19.1 L'Impératrice - Vanille Fraise (Edit)
21
+ 4 3 u40t4XMxmMc PINK VIBE:ROSE 5.7 8.6 13.7 20.7 Lucian ft. Philosofie - Do My Thing
22
+ 4 4 oHRrxtcm21Q MIRROR:VAPOR 6.7 10.1 15.7 22.7 Lane 8 ft. Arctic Lake - Road
23
+ 5 1 sUwm6SjlpJ0 ORBITAL STATION:ORBITAL DAWN 4.6 6.8 11.5 18.5 AVAION - About You
24
+ 5 2 HQl4o0g-wy0 LIBRARY:MORNING 5.3 8.0 13.1 20.1 nimino - Rest Easy
25
+ 5 3 KiIc54yyktw NEON:AURORA 6.1 9.3 14.7 21.7 HUGEL x Topic x Arash ft. Daecolm - I Adore You
26
+ 5 4 S9KsOqTftFA POLAR NIGHT:SOLAR STORM 7.1 10.8 16.6 23.6 MA:RK - That's Where I Should Be
27
+ 6 1 qbGZDEFHBmc ISLANDS:CARIBBEAN 5.0 7.6 12.7 19.7 Jai Wolf - Indian Summer
28
+ 6 2 pLuQ0MGLBXU SUMI:KAKI & CHARCOAL 5.7 8.8 14.2 21.2 Mura Masa - What If I Go?
29
+ 6 3 -NHdDcdJCIk DOCKS:NORTH SEA 6.5 10.1 15.9 22.9 Matteo Cole - I Like The Way You Move
30
+ 6 4 _yQeIVZFk2U BRUTALIST:MOONLIGHT 7.5 11.6 17.8 24.8 Ian Asher, D A N N Y - Take Me (To The Moon)
31
+ 7 1 IhVvPrGh48E MEGACITY:NEON 5.4 8.5 14.1 21.1 Funkin Matt - Open Your Eyes
32
+ 7 2 N2hKqI8nU7w PIXEL:SEA CLIFFS 6.1 9.7 15.6 22.6 Lonely in the Rain ft. Oaks - Chemicals
33
+ 7 3 Og0A10H7YqU RUINS:MAYA 6.9 11.0 17.2 24.2 Aaron Hibell, Alex Wann - set me free
34
+ 7 4 xhpudFvsMjU RAINY WINDOW:SODIUM 7.9 12.5 19.2 26.2 SRTW ft. Charity Children - Whispering Still (Little Rose Remix)
35
+ 8 1 S9ld5hiKg8w LIMBO:MOOR 5.8 9.5 15.6 22.6 Nora En Pure - Come With Me
36
+ 8 2 UKou-bIHgYA LIGHTSOURCE:NEON 6.5 10.7 17.1 24.1 Nu Aspect - Sweet Release
37
+ 8 3 lTgIZtKoYQc DIORAMA:LANTERN HARBOR 7.3 11.9 18.7 25.7 LAVERN ft. NEIMY - All I Want Is You
38
+ 8 4 QBcX3cZQdek BIOME:CALM NOON 8.2 13.5 20.7 27.7 Lewis Capaldi - Bruises (Delta Jack Remix)
39
+ 9 1 SHg5c59JF7w ABYSS:ULTRAMARINE 6.1 10.5 17.3 24.3 Rome in Silver - Waiting
40
+ 9 2 H6jDQK1-O6I FLUO:CONCRETE 6.9 11.7 18.8 25.8 Palastic x ALLKNIGHT - Heaven
41
+ 9 3 nXIZCMwFKis HEAT:ARCTIC 7.7 13.0 20.4 27.4 sadagain & iilliaa - I Need Your Kiss (sadagain Version)
42
+ 9 4 MlwBZ2MSNtE LASER SHOW:AMBER 8.6 14.5 22.4 29.4 FISHER x Kita Alexander - Atmosphere
43
+ 10 1 r-sGtrldNKc TILES:BYZANTINE 6.5 11.7 19.1 26.1 it's murph - Food for the Soul
44
+ 10 2 QjCiLzm-0kI PLANKS:HONEY 7.3 12.9 20.6 27.6 Mozambo & Basic Tape ft. Julia Church - Bright Side
45
+ 10 3 6xD7YhdzmIc TERRARIUM:ORCHID 8.1 14.1 22.3 29.3 Womack & Womack - Teardrops (Rules Remix)
46
+ 10 4 TsdT5bSGypc GLOWING FOREST:VERDIGRIS 9.0 15.7 24.2 31.2 Zen/it - Crazy
47
+ 11 1 KgkQ_HvNjSQ GIANT TREE:CANDY 6.9 12.9 21.1 28.1 Lost Frequencies ft. Bandit - Dance In The Sunlight
48
+ 11 2 dwvCb0FKEwY RAIN:NEON STREET 7.7 14.1 22.6 29.6 PhatAdam - I Know You See
49
+ 11 3 heUI3TYAZjw MARBLES:MIDNIGHT 8.5 15.4 24.2 31.2 Crunkz - I Don't Care
50
+ 11 4 3KFPGWIfLnM SONAR:AMBER 9.4 16.9 26.2 33.2 BUNT. - Only Friends
51
+ 12 1 eqc50IErJxo CELESTIAL OCEAN:DAWN 7.3 14.2 23.2 30.2 AVAION - drown
52
+ 12 2 iWiilOH4cQE RECYCLE:TERRAZZO 8.1 15.4 24.7 31.7 Gregory Porter - Liquid Spirit (Claptone Remix)
53
+ 12 3 fMvEOabCEFc BAUHAUS:NACHT 8.9 16.7 26.4 33.4 CamelPhat, Josh Gigante ft. Kuuda - So Good
54
+ 12 4 zjANqMu7m2c LOST PANDA:BLOSSOM 9.8 18.2 28.3 35.3 INNERVERSE - Reverie
55
+ 13 1 NwxenaTGGA4 CORAL REEF:MOONLIT 7.7 15.5 25.5 32.5 The Bausa - Magnetic
56
+ 13 2 6QvMcQ2Eejo ARCHITECT:TROPICS 8.5 16.7 27.0 34.0 CloZee - Koto
57
+ 13 3 43A0MdrRZzE CRYSTAL CAVE:EMBER 9.3 18.0 28.6 35.6 NOTSOBAD - Inna Fire
58
+ 13 4 VUzg5liIjcs LANTERNS:MIDNIGHT 10.2 19.5 30.6 37.6 Elderbrook - Lost In The View
59
+ 14 1 qdjmd9J6cr0 KINTSUGI:SERPENTINE & GOLD 8.1 17.0 27.9 34.9 Petit Biscuit - Memories
60
+ 14 2 dP7KuXdb-wE BLUEPRINT:DIAZO 8.9 18.2 29.4 36.4 Sultan + Shepard - Start Again
61
+ 14 3 BSVOAD-Nyfc TIDE POOL:MORNING 9.7 19.5 31.0 38.0 Elderbrook - Never Get Enough
62
+ 14 4 4V3exJW1-Ig SWISS POSTER:ALPINE VILLAGE 10.6 21.0 33.0 40.0 Elderbrook x Tourist - Howl
63
+ 15 1 jmnBSB7DCTI MYCELIUM:ORCHID 8.5 18.5 30.4 37.4 BUNT., Malou - i need u
64
+ 15 2 h1l4pDXbkic VECTOR:P4 WHITE 9.2 19.7 31.9 38.9 The xx - You Got The Love (Florence And The Machine Cover)
65
+ 15 3 a0W9bS7qZSk SHADOW:COLOR GEL 10.1 21.0 33.6 40.0 BUNT. ft. Tom Odell - Best Day of My Life (BUNT. Version)
66
+ 15 4 9Sh9ZSecyFU SKY WHALE:MOONLIGHT 11.0 22.5 35.5 40.0 callah x Laura Brehm - skyline