Skip to content

Instantly share code, notes, and snippets.

@0xd669
Created August 22, 2019 09:28
Show Gist options
  • Select an option

  • Save 0xd669/1e05df973352118f2912fa1295ac90b6 to your computer and use it in GitHub Desktop.

Select an option

Save 0xd669/1e05df973352118f2912fa1295ac90b6 to your computer and use it in GitHub Desktop.
PyCon KR 2019 Banksalad Pythonic Adventure Sound 1
import pyxel
class PlayerAttack:
def __init__(self):
pyxel.sound(3).set(
note="b4b4b4a2 c2c2c2c2 c2c2c2c2 c2c2c2c2",
tone="s",
volume="7766 5566 7766 5531",
effect="s",
speed=5,
)
def get_soundlist(self):
return {3: 3}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment