Fixed README
This commit is contained in:
parent
5ee33d27fb
commit
4c0b3bcbbb
1 changed files with 22 additions and 8 deletions
30
README.md
30
README.md
|
@ -1,16 +1,30 @@
|
|||
# supGecko
|
||||
A helper library to write Gecko code
|
||||
# supSMSGecko
|
||||
A tool to make Gecko codes for Super Mario Sunshine.
|
||||
|
||||
## Installation
|
||||
```
|
||||
pip install supGecko
|
||||
pip install supSMSGecko
|
||||
```
|
||||
|
||||
## Usage
|
||||
## Example
|
||||
```python
|
||||
from supGecko import Gecko
|
||||
from supSMSGecko import make_xml, symbols, Button as B
|
||||
|
||||
g = Gecko()
|
||||
# TODO: usage of the Gecko class
|
||||
print(g.dump_txt())
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue