A helper library to write Gecko code for Super Mario Sunshine
Project description
supSMSGecko
A tool to make Gecko codes for Super Mario Sunshine.
Installation
pip install supSMSGecko
Example
from supSMSGecko import make_xml, symbols, Button as B
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)
TODO
- document of each function
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
supSMSGecko-0.1.0a4.tar.gz
(2.0 MB
view hashes)
Built Distribution
Close
Hashes for supSMSGecko-0.1.0a4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e6117f912d3c60b93dd18dadf4cd99a557fbb10a5efaae2b0feabeb68445cd7 |
|
MD5 | 672fadc83589dd35f571ee7ec873b596 |
|
BLAKE2b-256 | 37acf6c758466bc4e139573fa20e548337db49319f87acbbcb8de860c564f83e |