Language…
5 users online: Ice Man, Isikoro, Lizard__Machine, RageQuitLife, Zavok - Guests: 1,272 - Bots: 87
Users: 70,532 (2,463 active)
Latest user: karsenesprit

Reverse Controls

UberASM Repository → Reverse Controls

Submission Details

Name: Reverse Controls
Author: Nowieso
Added:
Type: Level
Includes GFX: No
Includes Hijack: No
Featured: No
Description: This is a very user-friendly code that lets you switch certain buttons on the controller.

You can switch controls based on:
- Nothing - always switch the controls
- ON/OFF Switch
- P-Switch
- Star-Power
- Yoshi
- Water
Feel free to submit more options!

This code might be useful to create a unique ghosthouse/ghost themed level.

Set your options in the asm file!!!

Credit is optional, just don't claim it as your own.
Tags: abilities controller controller button lorom mario on-off-switch p-switch sa-1 star water yoshi
Comments: 5 (jump to comments)
Rating:
5.0 (1 rating)
No rating
Download 1.43 KiB | 555 downloads

Screenshots

Comments (5)

Sacri Pan Link
I hate you
ninj Link
can you switch it for getting a 1up?
Romano338 Link
I really was expecting the possibility to reverse all controls, like the YBAX buttons
 Major Flare Link
Update: Added image.
 Telinc1 Link
This is quite impressive for a first submission. The code is a little hard to follow but it works quite well. I should note that setting two choices to the same options (such as switch left/right for both states of the ON/OFF switch), the code will refuse to insert - I didn't count this as a rejection reason because it's an edge case which is unlikely to come up in practice.

During the moderation, I added SA-1 compatibility and removed a few unnecessary branching instructions to slightly speed up the code. Ideally, the code should be swapped to optimize it even further (taken branches add an extra cycle).

A future suggestion could be to clean up all the magic numbers to make this code even more user-friendly. Remember: Asar defines can be absolutely anything and can also substitute anything, not just numbers.