feat(init): KittyMacro
Roblox macros that play from outside the game: Anime Vanguards, and a falling-notes piano event.
This commit is contained in:
commit
bc09d70516
16 files changed
+5542
No files matched your search
@@ -0,0 +1,35 @@
|
||||
"""Beeps, because the console is behind Roblox when it matters."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
try:
|
||||
import winsound
|
||||
except ImportError: # not Windows; every call below becomes a no-op
|
||||
winsound = None
|
||||
|
||||
|
||||
def _beep(frequency: int, milliseconds: int) -> None:
|
||||
if not winsound:
|
||||
return
|
||||
try:
|
||||
winsound.Beep(frequency, milliseconds)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
def started() -> None:
|
||||
_beep(880, 60)
|
||||
_beep(1320, 60)
|
||||
|
||||
|
||||
def stopped() -> None:
|
||||
_beep(880, 60)
|
||||
_beep(560, 60)
|
||||
|
||||
|
||||
def tick() -> None:
|
||||
_beep(1500, 45)
|
||||
|
||||
|
||||
def alarm() -> None:
|
||||
_beep(400, 120)
|
||||
Reference in new issue
Block a user