Name: | Password System |
Author: | Nowieso |
Added: | |
Version History: | View |
Type: | Level |
Includes GFX: | No |
Includes Hijack: | No |
Featured: | No |
Description: | With this code, you can easily create a unique password system for your level. Define inputs that have to be done in the correct order and one of these things will happen: -Kill the player -Hurt the player -Give the player 1-UP(s) -Give the player a Power-UP -Give the player some coins -Give the player Star-Power -End the level (normal exit) -End the level (secret exit), triggers the keyhole animation -Spawn a sprite -Change ON/OFF Switch state -Activate P-Switch -Teleport to current screen exit -Teleport the player to the overworld, no event triggered -Teleport the player to a different overworld position Every option is very customizable, so make sure to change the defines in the asm file. V1.1 fixes - You can now define an unlimited amount of inputs and not only 10 - HUGE code optimization making the code about 200 lines shorter - P-Switch music now correctly plays - Sprites now turn into silver coins when using the silver P-Switch |
Tags: | input lorom on off p-switch password sa-1 sprite spawn teleport |
Comments: | 8 (jump to comments) |
Rating: |
Download
3.55 KiB | 477 downloads
Comments (8)
Indeed a nice update, glad you fixed the couple of issues of the previous version and I saw a lot of improvements in the code. Also very nice that now you can define codes of arbitrary length.
As westslasher said you could also decrease the code for spawning normal/custom sprites since almost all of it is shared, but since doing this doesn't affect the insert size it doesn't really matter.
Example:
I found a couple of small issues that would be nice to fix in an update: when enabling the PSwitch option, the song doesn't change. Also, for the silver PSwitch, you need to add a "JSL $02B9BD" to turn all the on-screen sprites to silver coins.
Besides that, it would be nice to make an update to optimize the code (it's not a major issue, but it could also be a useful exercise for you