supSMSGecko/README.md

31 lines
636 B
Markdown
Raw Normal View History

2023-07-14 22:00:15 +09:00
# supSMSGecko
A tool to make Gecko codes for Super Mario Sunshine.
## Installation
```
2023-07-14 22:00:15 +09:00
pip install supSMSGecko
```
2023-07-14 22:00:15 +09:00
## Example
```python
2023-07-14 22:00:15 +09:00
from supSMSGecko import make_xml, symbols, Button as B
2023-07-14 22:00:15 +09:00
def main(g, ver):
S = symbols[ver]
addr_inst = 0x26 + S['TMarDirector::direct']
addr_input = S['mPadStatus']
# code
g.write16(addr_inst, 600)
g.if16(addr_input, '==', B.B | B.DL)
g.write16(addr_inst, 2400)
g.if16(addr_input, '==', B.B | B.DR, endif=True)
g.write16(addr_inst, 4800)
g.endif()
# output the generated Gecko codes for all 4 versions to "@code.xml"
make_xml(main)
```
2023-07-14 22:00:15 +09:00
## TODO
- [ ] document of each function