Created
August 22, 2019 09:28
-
-
Save 0xd669/1e05df973352118f2912fa1295ac90b6 to your computer and use it in GitHub Desktop.
PyCon KR 2019 Banksalad Pythonic Adventure Sound 1
This file contains hidden or 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
| 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