-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(single-mode): support aoharu final race
close #172
- Loading branch information
1 parent
2be8781
commit bbe4a81
Showing
15 changed files
with
75 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# pyright: strict | ||
|
||
from __future__ import annotations | ||
|
||
|
||
from ... import action, templates | ||
from ...scenes import Scene | ||
from ..scene import Scene, SceneHolder | ||
|
||
|
||
class AoharuMainScene(Scene): | ||
def __init__(self) -> None: | ||
super().__init__() | ||
self.is_final = False | ||
|
||
@classmethod | ||
def name(cls): | ||
return "single-mode-aoharu-main" | ||
|
||
@classmethod | ||
def _enter(cls, ctx: SceneHolder) -> Scene: | ||
if ctx.scene.name() == "single-mode-aoharu-competitor": | ||
action.wait_tap_image(templates.RETURN_BUTTON) | ||
action.wait_image(templates.SINGLE_MODE_AOHARU_FORMAL_RACE_BANNER) | ||
return cls() | ||
|
||
def go_race(self) -> None: | ||
rp = action.resize_proxy() | ||
action.tap(rp.vector2((265, 805), 540)) | ||
|
||
def recognize(self) -> None: | ||
self.is_final = ( | ||
action.count_image(templates.SINGLE_MODE_AOHARU_FINAL_BANNER) > 0 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+161 Bytes
auto_derby/templates/single_mode_aoharu_final_battle_button.pos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.