Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Alternate Main Menu

Choose a tag to compare

@Useott Useott released this 28 Jul 01:44
· 2 commits to main since this release
10b90f1

437714547-49b4b9c2-f39c-4a49-b1b8-018938625c6b
Changes the main menu background to Angel Island Zone's beach, with Knuckles is relaxing there. If you have reached The Doomsday Zone on a save, you will see Sonic and Tails relaxing together with Knuckles. Screenshots taken with A.I.R. Freshener.

It also works with skin mods.
437714793-b02beae8-b531-412b-bce9-27bc1117053a

v2.0.1 - Fixed a crash with lower end devices, added ultrawide support and tweaked character randomization.

v2.0 - Added compatibility with A.I.R. Freshener, and significantly changed the way characters work in the menu:

  • Only 4 characters can appear on the menu at the same time. If there are more than 4, the characters will be randomly picked to appear in the menu.
  • You must to use AlternateMainMenu.fillCharacterList() to add characters now.
    • Use base. like before and call AlternateMainMenu.addCharacter("function goes here", only with clear save).
    • Knuckles uses AlternateMainMenu.addCharacter("AlternateMainMenu.renderKnuckles", false).
    • This also means characters that were previously compatible will need to be updated.
  • You will also need to add the Y position of the sprite to the render queue.
    • The character shadow uses the same render queue as the main sprite.
    • Example for Sonic:
	s16 py = 130
	SpriteHandle char.s = Renderer.addSpriteHandle(sonic_key, 132, py, 0x5000 + py)
	SpriteHandle char.s.shadow = Renderer.addSpriteHandle(sonic_key, 132, py + 20, 0x5000 + py)

v1.1 - Small code changes