Skip to content

Commit

Permalink
Better
Browse files Browse the repository at this point in the history
  • Loading branch information
jinglemansweep committed Jan 25, 2024
1 parent af5ce24 commit 3c33e71
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 12 deletions.
26 changes: 23 additions & 3 deletions wideboy/systems/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,31 @@ def start(self) -> None:
(
self.cache,
"mode7_vinyl",
f"{self.app_state.config.paths.images_sprites}/misc/vinyl.png",
(
512,
self.display_info.current_h,
),
0.2,
0 - r,
0.5,
),
)
)
self.queue.append(
(
preprocess_mode7,
(
self.cache,
"mode7_vinyl_serato",
f"{self.app_state.config.paths.images_sprites}/misc/vinyl_serato.png",
(self.display_info.current_w, self.display_info.current_h),
0.15,
(
512,
self.display_info.current_h,
),
0.2,
0 - r,
0.4,
0.3,
),
),
)
Expand Down
28 changes: 19 additions & 9 deletions wideboy/systems/scene/stages/seven.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,25 @@ def __init__(
def setup(self) -> None:
self.cache = next(self.entities.get_by_class(Cache))

self.stage_entities.append(
WidgetSpinner(
build_image_sprite(self.cache.surfaces["mode7_vinyl"][0]),
x=0,
y=0,
z_order=5,
frames=self.cache.surfaces["mode7_vinyl"],
frame_delay=1,
), # type: ignore[call-arg]
self.stage_entities.extend(
[
WidgetSpinner(
build_image_sprite(self.cache.surfaces["mode7_vinyl"][0]),
x=-100,
y=0,
z_order=5,
frames=self.cache.surfaces["mode7_vinyl"],
frame_delay=1,
), # type: ignore[call-arg]
WidgetSpinner(
build_image_sprite(self.cache.surfaces["mode7_vinyl_serato"][0]),
x=420,
y=16,
z_order=5,
frames=self.cache.surfaces["mode7_vinyl_serato"],
frame_delay=2,
), # type: ignore[call-arg]
]
)

for w in self.entities.get_by_class(
Expand Down

0 comments on commit 3c33e71

Please sign in to comment.