Name: | Reset Level on Falling Down Offscreen |
Author: | Nitrocell Inc. |
Added: | |
Type: | Level |
Includes GFX: | No |
Includes Hijack: | No |
Featured: | No |
Description: | This UberASM works as Level and Game Mode 14. Instead of dying when fall offscreen, level will restart as same as player's position. There is a little issue at level 024 but it will be fixed as soon as possible (not big problem). Teleporting is based on GPS's %teleport() routine with small modifications. |
Tags: | lorom off screen reset sa-1 teleport |
Comments: | 1 (jump to comments) |
Rating: |
Download
984 bytes | 197 downloads
Comments (1)
- Lunar Magic v3.33
- SA-1 Pack v1.40
- UberASM Tool v1.6
- BSNES v115
Added lorom and sa-1 tags.It's functional and useful for a few types of levels, though I also would like to see midway point support for the next update. However, please, please, please improve the following code:
This is an incredibly overcomplicated way of performing
sublevel_id = translevel_id + 0x00DC
.CLC : ADC #$0001
is almost always replaceable byINC
(the only time it isn't is when carry comes up and even then) but you don't even need to do that because you're in 16-bit mode anyway soCLC : ADC #$0100
and noXBA
in sight except you don't even have to do that as you already are doing an addition which with these numbers always yields a number greater than 0x101, you just need to be in 16-bit mode to get the result immediately (and for that matter, you don't have to use X for this either — you can even load the translevel ID in 16-bit if you're smart).It is a particularly egregious example of unoptimisation, I don't really want to see this for the next update in any form whatsoever.