Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Add "ghosts" feature #97

Open
city41 opened this issue Jun 18, 2021 · 0 comments
Open

Add "ghosts" feature #97

city41 opened this issue Jun 18, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@city41
Copy link
Owner

city41 commented Jun 18, 2021

Just like in mario maker, enable the user to turn on "ghosts". where after they have tested their level, a trail of semi-transparent marios are overlayed to show where they went while testing. The purpose is to make it easier to figure out where to place things based on mario's capabilities.

this doesn't seem too hard, mario's x position is an unsigned 16 bit value stored in gba memory at 3003f20 and y is at 3003f22. Grabbing mario's position every frame if it different from the last frame, then handing it back to the editor is enough for a very simple version.

other things to consider:

  • if they test for a long time, the position grabs will start using a lot of memory. perhaps store only the x most recent positions
  • I really doubt it, but might slow down the emulator for some slower machines.
  • position is good enough for a very simple version, but it'd be nice to grab which way he is facing as well as his current animation frame for more accurate ghosts
@city41 city41 added the enhancement New feature or request label Jun 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant