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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file supSMSGecko-0.1.0a5.tar.gz.

File metadata

  • Download URL: supSMSGecko-0.1.0a5.tar.gz
  • Upload date:
  • Size: 3.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.1

File hashes

Hashes for supSMSGecko-0.1.0a5.tar.gz
Algorithm Hash digest
SHA256 78c8fe3b61724399569b51604cbfe830b7b9abaea24ef5fbb311d242e47f714d
MD5 f22892a6f3d92ffee857b4b021d54c52
BLAKE2b-256 9b83405a06c13c26db2df529ff0d91ddcad4152243fedf88273218bcc351b3ae

See more details on using hashes here.

File details

Details for the file supSMSGecko-0.1.0a5-py3-none-any.whl.

File metadata

File hashes

Hashes for supSMSGecko-0.1.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 595f784a8a2bd6229745294602d41afc6b24ae7c202c956d7a5eb24ee6fa477e
MD5 f71bd571d3457d30efcf6686dce1cbf3
BLAKE2b-256 f18ac04830c60548c6bb900c078440b58568cc68fe7de402cd47a2c5c9d27c65

See more details on using hashes here.

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