Skip to main content

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

You also need devkitPro if you want to make C0/C2 codes.

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


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.0a5.tar.gz (3.0 MB view hashes)

Uploaded Source

Built Distribution

supSMSGecko-0.1.0a5-py3-none-any.whl (3.0 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page