Name: | Instant Death on Powerup Loss v2.1 |
Author: | badummzi |
Added: | |
Version History: | View |
Type: | Level |
Includes GFX: | No |
Includes Hijack: | No |
Featured: | No |
Description: | This uberASM can be inserted as level specific asm or as gamemode 14. All it does, is, killing the player instantly, after getting hurt. Update to Version 2.1: -Small optimizations Compatible with SA-1 |
Tags: | instant kill kaizo lorom power-up sa-1 |
Comments: | 6 (jump to comments) |
Rating: |
Download
26.29 KiB | 474 downloads
Comments (6)
Or you can add "LDA $1497|!addr : BNE death" right after main to also check for cape and Yoshi i-frames.
Do note that, as before, getting hurt will drop the player's reserve item before killing them, effectively erasing it. This resource is geared more towards Kaizo design making this less of a concern, but be aware at any rate.
Tested with Asar 1.71, Lunar Magic 3.11, SA-1 1.32, Snes9x 1.59.2, UberASM Tool 1.4.
Works fine overall. The only thing I don't particularly like about the function of this code is that the player's reserve item is dropped at the same time they're killed, which seems more like a side effect than anything deliberate. On the other hand, the code in general seems more geared towards kaizo-type design, in which the item box would probably be strictly controlled anyway. Be aware, at any rate.
Small as the code is, there's still some fat that can be trimmed. If there's ever an update to this code, consider implementing the following optimizations:
Tested with Asar 1.71, Lunar Magic 3.10, SA-1 1.32, Snes9x 1.59.2, UberASM Tool 1.4.
Lunar Magic 3.03
SNES9X 1.60
SA-1 1.32
UberASM 1.4
Fixed SA-1 compatibility and added screenshot. You don't need to apply |!addr to zero page adresses. The code could've used a few optimizations, but it's not necessary - it's pretty small and shouldn't affect performance. I can see this being used in hacks that don't have small status (always big).