[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109139":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":9,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":15,"starSnapshotCount":15,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},109139,"SuperMarioAllStars","Darhkfox\u002FSuperMarioAllStars","Darhkfox","Windows PC & Android port of Super Mario All-Stars (SNES) with true widescreen up to 21:9, simultaneous two-player co-op, 82 achievements, CRT filters and slang shaders, save states, rewind, cheats, level select and music player. Requires your own USA ROM.",null,"C++",397,14,7,28,0,5,27,226,21,77.03,"Other",false,"main",true,[],"2026-11-06 15:05:49","2026-11-23 14:17:35","# Super Mario All-Stars — PC Port\n\nA native Windows and Android version of *Super Mario All-Stars* (SNES) with a launcher, true widescreen,\nre-anchored HUDs, display options, cheats, level select, achievements, a sound test and a music\nplayer. **It contains no game data: it runs from your own ROM**\n(`Super Mario All-Stars (USA).sfc`, CRC32 `925637C7`); no game starts without it.\n\n## Building\nRequirements: Windows 10\u002F11, Visual Studio 2022 (C++ workload) and CMake 3.20+.\nNo other libraries are needed (Direct3D 11, Direct2D, XAudio2, XInput and\nDirectInput come with Windows).\n\n```\nbuild.bat\n```\nThe program is written to `build\\Release\\SuperMarioAllStars.exe`.\n\n### Android\nThe same code builds for Android (`android\u002F`), as the Mickey & Donald Collection's does: SDL2 2.32.10\ncompiled from source for the window, sound and controllers, OpenGL ES 3.0 for the picture. You need the\nAndroid SDK with NDK 28.2 and CMake 3.31.6 (both from the SDK manager) and JDK 17 or later. The SDL2 source\nbelongs in `third_party\u002FSDL2-2.32.10-src` (`android\u002Ffetch_sdl.ps1` downloads and checks it), then:\n\n```\ncd android\ngradlew assembleDebug\n```\nThe APK ends up in `android\u002Fapp\u002Fbuild\u002Foutputs\u002Fapk\u002Fdebug\u002F` (64-bit ARM phones and tablets, Android 6.0 or\nlater, and the x86_64 emulator). Release builds are signed when `android\u002Fkeystore.properties` names a\nkeystore (`storeFile`, `storePassword`, `keyAlias`, `keyPassword`), as the Disney collection's are.\n\n## Running\nPut the ROM next to the executable, in a `roms` folder beside it, or in any parent folder up to\nthree levels up; the location is remembered in `rompath.txt`. Without it the launcher's cards say\n*ROM not found* and what is needed, and a ROM copied in while the launcher is open is picked up\nwithin a second. Another version or dump of All-Stars runs too, its file name shown in amber on the\ncards: widescreen, cheats and the level select are tuned for the USA version.\n\nTo start a game directly, give `SuperMarioAllStars.exe` the argument `--game smb1`, `--game smbll`,\n`--game smb2` or `--game smb3` (for example in a shortcut).\n\nBattery saves go to `saves\\smas.srm`, save states to `saves\\`,\nscreenshots to `screenshots\\`, settings to `smas_port.ini`. Files are written in full before\nthey replace the old ones, so a full disk can't leave a truncated save (you are told the save\nfailed instead). Save states carry a checksum: a damaged one is refused rather than loaded. They\nalso keep the widescreen state, so a state loads exactly as it was saved, and one saved at a\nnarrower width (or by an older version) brings in the enemies of the wider view. If the graphics\ndriver resets (a driver update or crash), the picture comes back by itself and the game keeps\nrunning.\n\n## On Android\nInstall the APK (Android asks you to allow installing apps from the place you opened it). On the first\nstart the launcher's card says *ROM not found*: tap it, pick `Super Mario All-Stars (USA).sfc` (or a\n`.smc`) in the file picker, and it is copied into the app. A ROM can also be put in the app's folder\n`Android\u002Fdata\u002Fcom.darhkfox.allstars\u002Ffiles` (or a `roms` folder there) with a computer.\n\n- **Touch:** an SNES pad over the game: the D-pad bottom left, A B X Y bottom right, L and R at the\n  sides, Select and Start bottom centre, Menu top left, and (when they're switched on and achievements\n  are off) rewind and fast forward top right. Tap a game's card to choose it, tap it again to play; in\n  the menus tap a row to use it, drag to scroll, and the button top right goes back.\n- **Controllers and keyboards** work as on Windows (the same bindings); the on-screen controls hide\n  while one is in use (*Options → Controls → On-Screen Controls*: While Touching, Always or Never, and\n  their opacity).\n- **Back** opens and closes the menu, as Esc does.\n- The picture fills the screen (*Aspect Ratio: Auto*), with the same filters and colour settings. The\n  window settings, VSync, Black Frame Insertion, High Frame Rate and slang shaders are Windows only.\n- Saves, states and settings are kept in the app's own storage; screenshots go to\n  `Android\u002Fdata\u002Fcom.darhkfox.allstars\u002Ffiles\u002Fscreenshots`. Leaving the app saves the game's progress.\n\n## Launcher\nThe program opens on a launcher, laid out like the Mickey & Donald Collection's, over a night-blue\nsky with twinkling stars and a checkerboard floor after the All-Stars title screen. By default it\nshows one **Super Mario All-Stars** card with a live preview of the cartridge's title: choosing it\nstarts the cartridge as it is, at its own title and game select (`--game allstars` starts it\ndirectly). Below are buttons for **Options**, **Achievements**, **Music Player**, **Credits** and\n**Quit**.\n\n*Options → Launcher Shows → The Four Games* gives one card per game instead (Super Mario Bros., The\nLost Levels, Super Mario Bros. 2, Super Mario Bros. 3), each with a live attract-mode preview of that\ngame and the chosen card's sound playing. Each preview is its own console run through the All-Stars\ngame select into the game's title, out of sight while it starts. Choosing a card resets the console\nand takes it through the All-Stars menu to that game's save files (behind a short black loading\nscreen), where you pick the file as usual. The launcher remembers the last game chosen.\n\n*Options → Game Covers* shows the player's own cover pictures on the cards instead of the live\npreviews, and *Custom Background* their own picture behind the launcher (filling the window, darkened\na little so the text reads). None are shipped. PNG or JPG files named `smb1`, `lostlevels`, `smb2`,\n`smb3`, `allstars` (the single card) and `background` go in the `covers` folder (*Open Covers Folder*:\nnext to the exe on Windows, in `~\u002F.local\u002Fshare\u002FSuperMarioAllStars` on Linux); on Android *Choose Cover*\n\u002F *Choose Background* copy a picture from the phone in. They're read with\n[stb_image](https:\u002F\u002Fgithub.com\u002Fnothings\u002Fstb) (`third_party\u002Fstb`, public domain \u002F MIT), big ones\nshrunk to 1024 px (2048 for the background). A card without a cover keeps its preview; one with a\ncover runs no preview console at all, which also makes the launcher lighter on slow devices.\n\n## Controls\n| | Keyboard | Joypad (Xbox layout; PlayStation, Switch Pro and USB\u002FSNES pads supported) |\n|---|---|---|\n| D-pad | Arrow keys | D-pad \u002F left stick |\n| B \u002F A \u002F Y \u002F X | Z \u002F X \u002F A \u002F S | bottom \u002F right \u002F left \u002F top face buttons |\n| L \u002F R | Q \u002F W | LB \u002F RB |\n| Start | Enter | Menu\u002FStart |\n| **Menu** | Esc or Right Shift (Select) | View\u002FSelect |\n| Game's Select button | *Menu → Press Select In Game* | left stick press |\n| Save \u002F load state | F5 \u002F F8 | |\n| Fast forward | Tab (hold) | RT (hold) |\n| Rewind | Backspace (hold) | LT (hold) |\n| Fullscreen | F11 or Alt+Enter | |\n| Launcher: choose \u002F play \u002F quit | Arrow keys \u002F Enter \u002F Esc | D-pad \u002F A \u002F B |\n| Screenshot | F12 | |\n\nHold Rewind to go back through roughly the last minute of play (at twice the game's speed),\nthen let go to carry on from there; game progress the game has saved is never undone. Rewind and\nfast forward can each be switched off under *Menu → Controls*.\n\nEverything can be rebound under *Menu → Controls* (keyboard and pad, both players). Each\ncontroller keeps its pad number while others are plugged in or out, and gets it back when it\nreconnects, so the players never swap controllers. Select opens\nthe menu and backs out of it. The games only need their own Select button for the All-Stars save\nmenu (pause, then Select). If you'd rather have it on Select, set *Controls → Select Button* to\n\"Tap: Game Select - Hold: Menu\". In the menus and the launcher the pad's bottom face button confirms\nand the right one goes back; *Controls → Menu Buttons → Right Confirms* swaps them (Nintendo's layout).\n\n## Menu\nThe pause menu is a dark panel over the dimmed game, tinted in the running game's colour (red\nSMB1, green Lost Levels, purple SMB2, orange SMB3; the launcher's buttons gold). Every row\nexplains itself in the line at the bottom. It is laid out as:\n\n* **Resume** and **Press Select In Game**.\n* **Save states** — the slot (with the time it was saved, or \"Empty\"), Save State, Load State.\n* **Game** — Level Select, Cheats, Achievements (earned \u002F total), Sound Select, Music Player,\n  Options (Display, Graphics, Colour, Audio, Controls, fast forward and rewind, achievements on\n  or off), Credits.\n* **System** — Take Screenshot, Reset Game (back to the game's save files), Return to Launcher,\n  Quit to Desktop (the last three ask first).\n\nShort notices (state saved, screenshot taken) appear in the top-right corner, or at the bottom\nwhile the menu is open. An unlocked achievement shows a banner at the top of the screen.\n\nWhat each page holds:\n* **Level Select** — every level listed under its world, the game chosen at the top (it starts on\n  the one being played); picking one asks first. For SMB2 a Character choice (Mario, Luigi, Toad,\n  Peach) sets who plays it, picked for you on the character select. Any world and level of all four games: SMB1, The Lost Levels (worlds\n  1–9 and A–D), SMB2 (1-1 to 7-2) and SMB3 (every world map, numbered level and fortress, and\n  the levels without a numbered panel: each world's airship and the Coin Ship, World 2's desert and pyramid,\n  World 5's second fortress and tower, World 7's Piranha Plant levels, World 8's tanks,\n  battleship, hand traps, super tanks and Bowser's castle. Those are entered from 1-1's panel\n  with the level swapped as it loads, the map left as it was).\n  The chosen level comes up directly: the game is run to it behind a short black loading screen,\n  launched from the game-select screen when needed (a running game is reset first, so unsaved\n  progress is lost). In SMB3 it is a new game in that world, with the world as play would have\n  left it: the levels numbered before the chosen one are cleared, and where the map's paths lead\n  to it on foot, the fortresses before it too, with their locks open (World 1's 1-5: 1-1 to 1-4,\n  the fortress and its lock). Where the way leads through a map pipe (World 4 on), only the\n  numbered levels are. Clearing the level marks its panel as usual; losing a life there sends\n  Mario back to the world's start, from where the cleared part of the map is open.\n* **Cheats** (per game) — SMB1\u002FLost Levels: infinite lives, star power, invincibility, always\n  fire, infinite time, moon jump. SMB2: infinite lives, full health, star power, four\n  hearts, super jump, float like Peach. SMB3: infinite lives, star power, infinite flight,\n  full P-meter, infinite time, always raccoon, stocked item box, invincibility.\n* **Sound Select** — classic sound test: any music number of any game's sound bank plus\n  the three sound-effect channels.\n* **Music Player** — named track lists for the menu, SMB1 & Lost Levels, SMB2, SMB3 courses\n  and SMB3 world maps, with repeat \u002F play-next and an 8-channel level display. It plays on\n  its own sound chip, so the game is untouched.\n* **Display** — windowed \u002F borderless \u002F exclusive fullscreen, monitor selection, window\n  size, aspect ratio (4:3, 16:10, 16:9, 21:9, auto), pixel shape (CRT 8:7 or square),\n  scaling (fit, integer, stretch; integer uses whole multiples both ways, with CRT pixels as\n  close to 8:7 as that allows), HUD re-anchoring, widescreen enemy behaviour, dimmed sides\n  in SMB2's wrap-around climbing areas,\n  side-border style, VSync (turn it off for G-SYNC \u002F FreeSync), black frame insertion (a black\n  refresh after each game frame for sharper motion, like a CRT; needs VSync and a 120, 180 or\n  240 Hz display, and the picture gets darker), High Frame Rate (on 100 Hz and faster\n  displays the refreshes between the game's 60 frames show in-between pictures: each line is\n  drawn again with the layers' scroll and the sprites part of the way back to the last\n  frame, cuts and jumps left as they are; the game still runs at 60 and the picture is a frame\n  later; at a rate that isn't a multiple of 60, like 100, 144 or 165 Hz, each in-between is\n  drawn at the moment its refresh shows it, so motion stays even; with VSync off, on\n  G-SYNC \u002F FreeSync, they're presented at the display's rate), FPS\n  counter.\n* **Graphics** — nearest, sharp bilinear, bilinear, CRT scanlines, CRT aperture grille and\n  LCD grid filters, effect strength, screen curvature, sprite-limit removal.\n  **Slang Shader** runs a RetroArch slang preset (`.slangp`) in place of the filter, through\n  [librashader](https:\u002F\u002Fgithub.com\u002FSnowflakePowered\u002Flibrashader) (`librashader.dll` next to the\n  exe, MPL-2.0, `third_party\u002Flibrashader`; without it the game runs on the built-in filters).\n  Presets are listed from a `shaders` folder next to the exe, with their shader files beside\n  them, e.g. the libretro `slang-shaders` collection; the colour settings don't apply to them.\n  Seven CRT presets are bundled (`third_party\u002Fslang-shaders`, copied to `shaders\\` by the build):\n  crt-lottes (public domain), crt-geom, crt-royale, crt-easymode, crt-aperture, zfast-crt and\n  crt-pi (GPL, `LICENSE-GPL-2.0.txt`), unmodified from libretro\u002Fslang-shaders with only the files\n  they use; see `third_party\u002Fslang-shaders\u002FREADME.txt`.\n  Some presets assume a 4:3 picture and can stretch or frame oddly in widescreen.\n* **Colour** — colour profiles (Original, Vivid, CRT Television, Muted, Greyscale, Sepia,\n  Pocket, Virtual, Night, Console Accurate), brightness, contrast, saturation, gamma,\n  colour temperature, colour-vision assist (protanopia \u002F deuteranopia \u002F tritanopia), and\n  Mario's Colours \u002F Luigi's Colours: alternate outfits for each brother (Super Mario Bros. and The\n  Lost Levels), kept by each in co-op whichever is the game's player.\n* **Menu Style** — how the menus look: *Storybook* (the default: a cream card with a dark outline, Luckiest Guy\n  titles in the game's colour, a yellow star cursor), *Retro* (black with brick bars, a 5x7 pixel font drawn by the\n  port, ? block switches), *Themed Dark* (the dark panel under a heading in the game's pattern: bricks, the Lost\n  Levels' green bricks, SMB2's starry night, SMB3's checkers) or *Classic* (the original dark panel). `src\u002Fapp\u002Fmenu.cpp`.\n* **Audio** — volume, **Music Volume** and **Sound Effects Volume** (each 0–100%: music off with the sound effects kept, or the other way round; the sound driver marks the voices an effect holds at ARAM `$1A`, so the rest are the music and only the mix changes), latency, mute when unfocused, and **Music Pack**: an MSU-1 custom soundtrack (see below).\n* **Updates** — *Check for Updates* (on by default): once a day the launcher reads GitHub's public \"latest release\" for\n  this repository (`src\u002Fapp\u002Fupdatecheck.cpp`; WinHTTP on Windows, the system `curl` on Linux, `HttpURLConnection` on\n  Android, from a background thread) and shows a badge when its tag is newer than the app's version; the badge, or\n  *Get Version*, opens the release page. Nothing is sent but the request; nothing is downloaded or installed.\n* **Gameplay** — **NES Brick Bounce**: in Super Mario Bros. and The Lost Levels, a brick broken from below sends Mario back down as on the NES instead of letting him keep rising (BMF54123's brick fix, updated by Blittle McNilsen, written into the console's ROM while on: `SmasGame::setNesBrickBounce`). Off by default.\n* **Credits** — where to find the author (YouTube, Reddit, GitHub; each opens in your browser).\n* **CO-OP GAME on the title screens** of Super Mario Bros., The Lost Levels and Super Mario Bros. 3:\n  a third choice under 1 PLAYER GAME \u002F 2 PLAYER GAME (MARIO GAME \u002F LUIGI GAME; in SMB3 a fourth,\n  under BATTLE GAME), picked with the game's own cursor. It starts a one-player game with co-op on\n  (Luigi on controller 2); the game's own choices start without it. The choice sets the option below.\n  In SMB1 and The Lost Levels the status bar's name reads MARIO & LUIGI during a co-op game, and\n  the level card (WORLD 1-1) shows both brothers' heads; in SMB3 the status bar (in levels and on the map) shows a combined M L badge, x and the shared lives,\n  and the map's WORLD box shows both brothers. A co-op game\n  starts (or continues) with at least 10 lives, as the brothers share them.\n* **Options → Multiplayer → Two-Player Co-op (SMB1, Lost Levels, SMB3)** — Mario and Luigi play\n  at the same time in Super Mario Bros. and The Lost Levels. Controller 1 has the character the\n  game was started with (Mario, or Luigi in a Lost Levels Luigi game), controller 2 the other (by\n  default the second controller, or I J K L, N jump, H run). The game's own player code runs a\n  second time each frame with the other player's variables swapped in, so both move, jump, bump\n  blocks, stomp enemies, get hurt, take power-ups and throw fireballs as the game's player does;\n  in The Lost Levels each has his own physics and sprites (Luigi jumps higher and slides more).\n  Objects that meet the player in their own code (lifts, springboards, firebars, hammers) run a\n  second time for the other player, so both ride lifts, bounce on springs and get burnt.\n  The world is shared. Whoever is further right moves the screen and the other is held at its\n  left edge; the screen waits while the one behind is at that edge and still playing. Left idle\n  (controller untouched for 3 seconds) while the other plays, he is brought to where the other\n  last stood on the floor (or swims), can't be hurt by enemies, and is brought back rather than\n  lost if he drops into a hole, until his controller is used again. He walks through the game's scenes too: the pipe intro (as\n  before 1-2), and at the flag he slides down the pole if he reaches it and follows into the castle.\n  Whoever takes Bowser's axe has the victory scene (Toad thanks him); the other comes along to\n  Toad. The score is one shared score; after a game over, Continue goes on with the character the\n  game was started with. Either can take a pipe, a vine or the flag: the game goes on with him and the other\n  comes along after it. Lives are shared: a player who dies while the other plays on comes back\n  beside him once that player is on his feet (on solid ground where there is some), small and\n  blinking, for one life; with none left he sits out until the next area.\n  When a player dies while the other plays on, his death tune plays and the area's music then\n  carries on from where it paused (not from its start).\n  Save states and rewind keep both players (see `src\u002Fgame\u002Fsmb1coop.cpp`).\n* **Super Mario Bros. 3 co-op** (the same option; see `src\u002Fgame\u002Fsmb3coop.cpp`) —\n  Luigi on controller 2, run through the game's own player code with his own variables: his own\n  form and power-ups, stomps, hits, the star, flying, picking up the goal card. Each enemy or item\n  deals with whichever player is nearer (enemies' fireballs and hammers too; a kicked shell hits\n  either, as in the original), or with the one playing while the other is left idle. Luigi throws his own fireballs and hammers, carries shells and\n  slides down slopes. The screen follows the point between the two (both\n  directions, and up for a flyer) and its edges hold them in view (the whole wide view in\n  widescreen). A player whose controller has been left alone for 3 seconds rests: the screen\n  follows the other, and the resting one is brought to where the other last stood when the\n  screen leaves him behind (an auto-scroll's edge included), and nothing hurts him until his\n  controller is used again (pits, lava and the time limit still count). Lives are shared. Either can die while the other plays on, as in\n  SMB1's co-op: if Mario dies, Luigi takes over as the game's player (controllers and colours\n  follow each brother). The one who died plays his death tune and jump, then comes back where the\n  other stands, small and blinking. Either can take a pipe or a\n  door, or grab the goal card or a Koopaling's wand: the other goes along, into the next area in\n  the form he had. The map has Mario only; the level start card reads MARIO START! \u002F LUIGI START!.\n* **Co-op speed** — the game's player code runs twice a frame in co-op, which slowed busy scenes\n  down on the console's own clock, so with co-op on (SMB1, The Lost Levels, SMB3) the emulated\n  CPU runs at twice its speed (`Snes::setCpuFast`); the PPU, DMA and sound chip keep their timing.\n  One-player games keep the console's timing exactly.\n\n## Custom soundtracks (MSU-1)\n\nThe port plays MSU-1 music packs, the CD-quality soundtracks made for flash carts and emulators. None are included.\nPut each pack in its own folder in the `msu` folder (Windows: next to the exe; Steam Deck:\n`~\u002F.local\u002Fshare\u002FSuperMarioAllStars\u002Fmsu`; Android: `Android\u002Fdata\u002Fcom.darhkfox.allstars\u002Ffiles\u002Fmsu`), with its\nMSU-1 patch (`.bps` or `.ips`, for the USA ROM without a copier header) and its tracks (`NAME-1.pcm`, `NAME-2.pcm`,\n...), then choose it under Options > Audio > Music Pack. A pack without a patch can use one put in the `msu` folder\nitself.\n\nThe patch is applied to the console's copy of the ROM as it loads (the file is never changed; the launcher's\npreviews run it unpatched), and `src\u002Fcore\u002Fmsu1.cpp` emulates the chip: its registers at `$2000-$2007`, the tracks\nstreamed from disk and resampled from 44.1 kHz into the console's 32 kHz sound. The track and its place are kept in\nsave states. Both the standard patch (each song replaced) and the Super Mario All-Stars Deluxe patch (one of several\nversions of the music picked at each new level) work as they do on hardware.\n\n## Achievements\n82 achievements: 20 for Super Mario Bros., 19 for The Lost Levels, 20 for SMB2, 21 for SMB3,\nand two for the whole collection. *Menu → Achievements* lists them by game with the date each\nwas earned. Achievements with several steps show progress, for example \"3 \u002F 8\" castles; the\n\"defeat 100 enemies\" ones count across all your play. A\nfew are secrets: they are marked \"Secret:\" in their description. They are saved in `achievements.ini`\nnext to the settings, and they stay earned.\n\n**Fair play.** While achievements are on, cheats, level select, fast forward and rewind are\noff. *Options → Achievements* switches them off, and those features come back. A run counts\nfrom a game started from the launcher, or from *Reset Game*, with achievements on. A save state remembers\nwhether its run counts, so loading one from a cheated run doesn't earn anything. The first start\nexplains this once.\n\n| Game | Achievements |\n|---|---|\n| Super Mario Bros. | Wrong Castle (World 1 castle), Castle Crasher (every castle, 0\u002F8), Thank You Mario! (8-4), The Long Way Round (finish from 1-1 without a warp zone), Shortcut (a warp zone), Top of the Pole (5000 at the flagpole), Fireworks Show, Coin Heaven (a vine up to a hidden area), Pocket Change (100 coins), Not a Scratch (a castle without getting hurt), Star Power (5 enemies with one Starman), Lives to Spare (20 lives), Player Two (finish a level as Luigi), Six Figures (100,000 points), Fired Up (a Fire Flower), Express to World 8 (warp straight there), Bro Down (a Hammer Bro), Barbecue Bowser (Bowser by fireballs), Goomba Stomper (100 enemies, counted over all your play), and a secret: Speedy Plumber (finish 1-1 with 300 or more on the clock) |\n| The Lost Levels | Same Old Story, Lost No More (castles of worlds 1-8, 0\u002F8), Peach Found, Secret World 9, The Very End (World D castle), Warp Ahead, Lofty Leap, Celebration, Cloud Nine, Coin Purse, Lost but Unharmed, Shooting Star, Hot Stuff (a Fire Flower), Brother Beater (a Hammer Bro), Green Machine (a castle in the LUIGI GAME), Bowser Flambé (Bowser by fireballs), Lost Legion (100 enemies), and two secrets: Wrong Way! (get sent back by a warp zone), No Time to Lose (finish 1-1 with 300 or more on the clock) |\n| Super Mario Bros. 2 | One for each boss: Bomb Squad (Mouser), Snake Charmer (Tryclyde), Cat and Mouser, Cool Customer (Fryguy), Rock Lobster (Clawgrip), Heads Will Roll and Wake Up! (Wart). Also Dream Team (clear a level with each hero, 0\u002F4), Untouchable (a level without getting hurt), Jackpot (a life from the Bonus Chance), Full of Heart (four hearts), Mushroom Hunter, Starman, Down the Jar (a warp), POW! (three enemies at once), Extra Lives (10 lives), Through the Door (Subspace), Phanto Menace (wake a Phanto), Egg Return (defeat Birdo), Veggie Tales (100 enemies) |\n| Super Mario Bros. 3 | Royal Rescue (a king's wand), All the King's Wands (0\u002F7), Dark Land (World 8), The End of Bowser, Warp Whistle, Frog Prince, Tanooki Time, Hammer Time, Wings of Wonder (P-Wing), Full House (three matching cards), Coin Hoard (100 coins), Packed Inventory (28 items), Toad's Treasure, Seven Figures (1,000,000 points in one game; a game over resets the score, saves keep it), Lives Galore (99 lives), Stone Cold (a Tanooki statue), If the Shoe Fits (Kuribo's Shoe), Lullaby (a Music Box on the map), Rock Breaker (a Hammer on a map rock), Koopa Krusher (100 enemies), and a secret: Five-Up (three Star cards at the goal) |\n| Collection | All-Star (finish all four games, 0\u002F4), Completionist (every other achievement) |\n\nIn SMB1 co-op, Player Two counts when Luigi takes the axe or rides the flagpole down (as the\ngame's player, or kept aside and already on the pole as the flag scene starts), and Not a Scratch\nis lost when either player is hurt.\n\n\n**Export to CSV** (top of the Achievements list) writes an `achievements export` folder: `achievements.csv` in\nthe columns PlayniteAchievements' spreadsheet import reads (ID, Title, Description, Points, Trophy Type, Hidden,\nRarity, Category, Progress, Progress Total, Unlocked, Unlock Time, Unlocked Icon, Locked Icon) and `icons\u002F` with\neach achievement's badge, earned and locked, drawn by the port (`src\u002Fapp\u002Fachexport.cpp`: a colour per game, a rim\nper trophy tier, a symbol per achievement). Points follow the tier: bronze 10, silver 25, gold 50, platinum 100.\n\n## Frame pacing\nThe games run at 60.1 frames per second. With VSync on, the frame loop waits on the display's\nvertical blank itself, so driver settings that force VSync off or use \"Fast Sync\" don't cause\nuneven frames. On 60, 120 or 240 Hz displays every frame lasts the same number of refreshes. With\nVSync off, frames are presented at the game's own rate, which is what G-SYNC \u002F FreeSync displays want.\n\n## How widescreen works\nThe port emulates the SNES hardware and renders each scanline wider than the original\n256 pixels. Per-game logic (in `src\u002Fgame\u002F`) makes the extra area show real content:\n* level tiles come from the game's own streamed tilemaps; columns the game has not\n  produced yet are never shown as garbage;\n* parallax scenery that the game streams only just ahead of the screen is rebuilt from\n  the game's scenery data;\n* the status bar is split and pinned to the screen edges;\n* sprites in the margins get correct 9-bit positions, and with *Widescreen Enemies:\n  Active In Full View* enemies spawn just outside the wide view and stay active across\n  it, instead of popping in or freezing at the old 4:3 edges. What's in the margins then\n  behaves as on the screen: the games skip things for objects off their 4:3 screen, and\n  those tests use the wide view instead (fireballs and kicked shells hit enemies there,\n  enemies there fire, throw and spit, and their projectiles aren't erased at the old edge).\n\nPer game:\n* **SMB1 \u002F The Lost Levels** — the screen can't scroll back, and the game stops the player at\n  the left edge of its 256-px screen. The extra width is shown ahead of the player first, as far\n  as the game has always built the level, with room for an enemy to stand on it (72 px). The rest\n  (20 px at 16:9, up to 128 px at 21:9) shows the level just passed on the left, and the player\n  can walk back into it, right up to the display edge: the game's own wall at its screen edge\n  moves out to there, and his collisions with enemies and fireballs there are worked out in full\n  precision (the game's are 8-bit and screen-relative).\n  Left of where an area begins (a level start, a pipe exit) the game has built nothing, so the\n  margin there continues the area's own floor, ceiling, hills and clouds (an area that opens with\n  a wall, like 1-2, carries on the wall, and one that opens raised, like the castles' first steps,\n  carries on the raised floor, with sky above where the rest of the area is a bridge, as in 2-3\n  and 7-3; the hills carry on as their panorama loops, or mirrored\n  about the level's start where its loop doesn't join up); the player still stops at the area's\n  real start, as on the console. The level is built\n  exactly when the console builds it, because level objects act when they're built (scroll locks,\n  warp zones, frenzies, castle loops). The game's logic is untouched: only its sprite drawing is\n  told that objects in the margin are visible. With *Widescreen Enemies: Original Timing*\n  fireballs, hammers and enemies behave, collide and disappear exactly as on the console; with\n  *Active In Full View* the player's fireballs fly on into the margin and hit enemies there\n  (they were erased at the 4:3 edge), Hammer Bros there throw, and their hammers stay in the\n  view (also with the player in the left margin, where they reach him and hurt him). A coin\n  block hit in the left margin bounces and shows its coin there. With *Original Timing*, the game's own\n  screen is pixel-identical to 4:3; this is checked automatically in 1-1, 1-2, 1-4 and 2-2. The\n  hill and cloud panoramas are drawn from the game's background maps in RAM. The \"BONUS\" Mario\n  picture in the cloud bonus areas (2-1's vine) leaves through the margin as it scrolls by: it\n  used to vanish once it had left the 4:3 part, the sky on screen then too plain to keep its\n  layer recognised. Night levels have\n  no clouds, and their hills are a fixed 512 px map the hardware wraps, drawn as such (3-1's and\n  6-2's used to be cut at the edges of the 4:3 part). The castle mazes keep their margins when\n  they loop: after a wrong turn sends Mario back, the walls in the margins carry on the ones in\n  the 4:3 part (4-4's showed other parts of the castle's backdrop). The level next to the\n  start, where the loop leaves the camera, is shown too, not left blank. An area entered further on (a pipe's way out) carries its own background on, mirrored,\n  left of where it starts (8-4's castle showed the water level's ruins there). With *Active In Full View*,\n  enemies (groups of Goombas and Koopas and Bowser's flames included) arrive from just outside the\n  wide view, the game's own distances measured from its edge. That is further out than the game\n  has built the level, so a walking enemy spawned there waits, out of sight, until the level under\n  it is built (it would otherwise fall through the unbuilt part, or end up inside the bricks built\n  around it). A group of enemies that had to wait for room (the wide view keeps enemies longer),\n  or that comes in range as an area loads mid-level (out of a pipe), never starts inside a block\n  or where the level isn't built yet (1-1's last two Goombas used to end up in the end staircase\n  after the coin room). A single walker or swimmer that had to wait for one of the five enemy\n  slots starts just beyond the view's edge rather than at its own place, which by then is in view\n  (2-2's Blooper popped in), on the same kind of ground; where there is none clear there (5-1's\n  Koopa, at a block), and for hopping Paratroopas, it starts in its place. A jumpspring always\n  gets one of the enemy slots: with them all taken it went to the slot the flagpole's flag and\n  power-ups use, and vanished (2-1's spring before its wall, leaving the player stuck on its\n  tiles); now an enemy behind the 4:3 screen makes room, or the spring moves to the first slot\n  that frees up. A vine stays until it leaves the view (the game erased it once off its 256 px\n  screen, so it vanished in the margin as Mario climbed on and the screen moved). Sprites are\n  placed by their objects' true positions, so one that\n  leaves on the right (a kicked shell) can't reappear on the left, and sprites the game hides by\n  moving them off its screen (sparks, fireworks) stay hidden. Enemies that walk off left past where\n  an area began keep to the floor shown there. The status line is split to the\n  corners. The underground coin rooms are shown wide and centred: their brick wall carries on\n  into both margins and the exit pipe is drawn whole, its right half included (checked in every\n  coin room of both games). The short scene before x-2's pipe (the castle, the pipe Mario walks\n  into) is shown wide and centred too, from the moment it fades in: its ground, hills and clouds\n  carry on into both margins (it used to be 4:3). So is the card between levels (WORLD 1-2, the\n  lives left, the level's picture): its grey fills the display and the status line is split to\n  the corners as in play. Leaving play (a pipe, a death, a level's end, a vine), the picture\n  changes once the screen has gone dark. Once Bowser is beaten, the walk to Toad (or the princess) and the\n  messages stay wide, eased to the centre of the display (the messages are centred on the\n  game's screen); before, the view dropped to 4:3 as the message came up. 8-4's ending shows\n  its message once (it is on the cloud layer, which the margins used to repeat) and the room\n  whole to the right. Bowser is drawn whole\n  as he comes into view: All-Stars' own Bowser drawing made half his sprites 8x8 while they were\n  off its 256 px screen, which cut off his shell in the margin. Firebars are drawn in the margin too: with *Original Timing* they stay\n  still there until they reach the 4:3 screen, as the console leaves them; with *Active In Full\n  View* they turn (and burn) across the whole view.\n* **SMB2** — enemies spawn across the whole wide view, including when an area starts (the\n  game's check against spawning on top of the player compared positions modulo 256 px, which\n  refused almost every spawn ahead at 21:9). Levels are kept whole in RAM, so the margins are drawn from the level data\n  with the game's own tile tables (checked tile-for-tile against the game's output); night\n  skies come from the game's own star map. Near an area's start the slower hills and clouds\n  show more than the game has laid out. The clouds are a loop of four screens (shuffled each\n  time an area is entered), so the loop carries on; hills that repeat do the same. Other\n  scenery repeats its first screen where its ends join up, and is mirrored about the area's\n  start where they don't, so no cloud or hill is ever cut off. All 8 cloud orders and every area's\n  start and end were checked at 21:9. Jar interiors are shown wide and centred, the jar standing\n  in its area's scenery: the screen's background carries on into the margins (repeated where its\n  ends join up, mirrored where they don't), only what runs on from the screen's edge, so a moon\n  or a lone cloud isn't doubled. Vertical areas (one screen wide; the game wraps them around)\n  and single-page areas are shown 4:3, centred. Both switch while the screen is dark. Enemies are drawn across the\n  whole view, and Albatosses and diving Beezos arrive from its edges. The life meter moves to the\n  edge, and the pause box (with its undimmed window) is centred in the view. Subspace, and the\n  fades into and out of it, stay 4:3; the end of a level switches width once the screen is dark.\n* **SMB3** — enemies and moving platforms spawn across the whole wide view and move as soon as\n  they are in it. On auto-scroll levels, where the scroll speed is known, anything heading\n  into view is kept on the console's timeline: it comes in from the edge of the picture already\n  moving, and is exactly where the 4:3 game would have it from the moment that game spawns it\n  (1-4's drifting platforms cross the gaps at their original times). The game has room for only\n  five level objects at a time, and the wider view shows more of them: objects still waiting to\n  come into view don't hold a place, what the 4:3 game has at that moment always gets one, and\n  objects that find no room come in as soon as there is. An object about to come into view\n  takes a place from one out of sight that the 4:3 game has already removed (behind the player)\n  or that is further out, and the one nearest to coming into view goes first; until then the\n  objects kept behind the player held every place, and those ahead appeared only at the 4:3\n  spawn point, about 100 px inside the wide picture. Where the console itself is short of room\n  (the tank levels) or the margin behind still shows the objects holding the places (World 7's\n  pipe-plant level), an object can still appear inside the wide picture rather than at its\n  edge. Objects the 4:3 game has always get a place first, on auto-scroll and normal\n  levels alike, taking it from one that only the margins show (one out of sight first) or that\n  the 4:3 game has already removed. Walking enemies simply start where they appear, so they may\n  be further along than on the console. The playfield margins are drawn from the level data in\n  RAM as it was at the frame's vblank, which is what the game's own tilemap shows that frame, so a\n  block an enemy carries off or a coin collected changes on the same frame in the margins as in\n  the 4:3 picture; the status bar stays centred on the screen. Vertical areas show their scenery in the\n  margins. Single-screen rooms are wide too, centred: the boss rooms, the bonus rooms behind\n  pipes, the hammer brothers' and the King's room, with black either side: each is a set piece,\n  and made up from its edges it showed things it doesn't have (a second throne, the hammer\n  brothers' blocks twice). The airships' boss rooms instead carry on: the cabin's log walls\n  and beams as wide as the view, the deck's posts in front of them. The mushroom house keeps its own shape, with black either side,\n  and so does the world map (it stays the wide shape between the map and the levels, the\n  picture never switching to 4:3 and back).\n  The spade game's black surround carries on. The battle game's arena wraps around, so its\n  pipes, platforms and floor carry on off both sides, dimmed (the \"Dim Wrap-Around Sides\"\n  option), with the backdrop pattern continuing; the round panel between rounds carries its\n  gold border on, undimmed. Objects in the margins are\n  spawned when a level loads, as they would be if they were on screen (two sharing a spot\n  included). A level opens with its circle reaching out to the edges of the wide picture, and\n  the picture goes wide while the screen is still black. A door or pipe that moves the camera\n  without the screen going dark (the World 1 fortress's door) spawns only what the new view\n  shows, not everything between the two places (it used to bring the fortress's hidden Warp\n  Whistle chest out at the door). Levels that scroll a lower band separately (the World 1\n  fortress's moving floor, the tank levels' ground) keep that band joined to the margins. The\n  level's own controllers (the objects that\n  start, steer and stop auto-scrolling, or switch a level's behaviour, as in the hand-trap and\n  World 4 levels) act exactly when they do at 4:3, however much further the wide view reaches,\n  so the game's camera always follows the console's path. After the goal card the player walks\n  on past the level's end to the edge of the wide picture (at 4:3 he walks 32 px off the\n  screen; the level ends at the same moment either way). On an auto-scroll level, where the\n  view shows past the level's start or end, the player is held at the level's start or end\n  instead of the view's edge, and stands still there (he used to drift past the end and die in\n  the cloud treasure areas while the camera was still on its way). Enemies brought in to fill the margins are set up from the side they come in on.\n* **SMB2 and SMB3** keep their own camera. In SMB2, at the ends of a level the view stops at\n  the level edge rather than showing space outside the level, so the player can walk right up to\n  the display edge. While the view is held there, the slower background layers are shifted to\n  match it (rounded exactly as the game rounds them), so the parallax stays correct. SMB3's\n  view stays centred on the game's screen, as at 4:3, at a level's start and end too, auto-scroll\n  levels included: the goal area, an airship's end and the boss rooms sit in the middle. The\n  level carries on past its ends: its floor, ceiling or sky as they repeat there (checkered\n  floors stay checkered, a floor's end piece isn't repeated), and the scenery between them,\n  where it reaches the end, mirrored about it, so a slope becomes a hilltop and bushes, posts\n  and hills go on as they look (where the end is plain, it carries on plain, and where it is a\n  wall, as the fortress boss rooms end, it carries on as a wall; where it is a cliff, as 2-2\n  ends, the ground carries on solid beyond it; where a level ends at a solid wall from top to\n  bottom, as 3-5 and the World 4 tower levels do, the wall carries on, a pipe through it with\n  it; where a platform's own edge is at the level's start, as 3-9's big bolted blocks are,\n  there is open sky beyond rather than a mirrored copy). Plain textures\n  such as dirt carry on unturned; coins and blocks are never shown there, nor anything the\n  level has only once (a pipe's rim, the goal's card frame). Inside a level, a wall the player\n  can't get past (solid all the way down the screen, as the fortresses' sections and boss rooms\n  are walled off) is carried on over what lies beyond it, rather than showing the next part of\n  the level or what moves there; and a room walled in on both sides (the bonus rooms down the\n  pipes in 2-1, 4-5 and 3-9, the last with walls only a block or two thick) is centred on the\n  display. The \"COURSE CLEAR!\" message hides the layer it is drawn on in the margins (3-7's\n  clouds showed there). SMB3's layer speeds are measured as the\n  level scrolls; a newly measured speed never makes a layer jump.\n* **SMB3 auto-scroll levels** (such as 1-4 and the airships) use the whole wide picture: the\n  player can run ahead to the display's right edge and is pushed by its left edge, exactly as the\n  4:3 game does with its own screen edges (and is crushed if the scroll pins him against a wall),\n  and enemies there can be stomped (and can hurt). The\n  picture scrolls exactly as steadily as the original: it stays centred on the game's screen,\n  through pauses on the way (the W6 airship, 7-4), to the level's end. Near the start, the\n  player can walk back to the level's beginning (off an airship's stern too, as off any\n  ledge). Objects heading into view are kept on the console's timeline from the\n  first frame, while the scroll is still picking up speed. When 5-9's camera jumps ahead, what only\n  the margins showed of the part left behind goes with it. The pause menu is centred on the\n  display.\n* The title screens are wide too:\n  * SMB1's and The Lost Levels' title is the start of 1-1 with the logo over it. It is shown\n    centred, as that level would be. When the demo starts scrolling, the view eases back to the\n    level's own layout.\n  * SMB2's title and story, and SMB3's title, are pictures drawn 256 px wide. Each layer is\n    carried on into the margins from the picture's edges, line by line.\n    * Where a pattern repeats there (red border, stage curtain, checkered floor), the repeat\n      continues.\n    * SMB3's hills at the edges are mirrored as far as each hill reaches, so the half-hills\n      become whole groups ending in their own outline.\n    * Elsewhere the edge pixel carries on.\n\n  * SMB2's character select is framed by a lattice of diamonds, which carries on over the\n    margins with its colours alternating, as in the frame.\n  * SMB2's level cards (\"WORLD 1-1\") have a blue background with small emblems scattered over\n    it. The margins get the same emblems, read off the card, at the same density. Emblems the\n    card's blank edge columns cut in half are made whole.\n  * The select stays wide while the card wipes in over it.\n\n  The game carousel is wide from the moment it starts to appear. The All-Stars title is wide too:\n  the sky and the pale band go on in their colours, and the checkerboard floor carries on in\n  perspective, each row's tiles continued at their width and in their colours (read off the tiles\n  at both screen edges; the floor is symmetric about the middle). The cast stays as drawn. As the\n  title dissolves into the game select (black triangles drawn in ring by ring from the edges in),\n  the margins dissolve with the outermost ring, in its triangles. World maps and other full-screen compositions stay 4:3, with the chosen side-border\n  style.\n\n## Development tools\n`build\\Release\\smastool.exe` is a headless runner\u002Fdebugger used to reverse-engineer the\ngames (see `tools\u002FSMASTOOL.md`); findings are documented in `docs\u002Fre\u002F`.\n\n### Source layout\n| Folder | What |\n|---|---|\n| `src\u002Fcore\u002F` | The SNES: 65C816, SPC700 and DSP, PPU (with the widescreen and high frame rate parts) |\n| `src\u002Fgame\u002F` | The four games' widescreen, achievements, cheats, level select and co-op |\n| `src\u002Fapp\u002F` | The application, the same on both systems: `app.cpp` (launcher, game, menu pages, achievements), menus (`menu.cpp`), launcher, music player, settings, drawn on `canvas.h`; `sys.h` for files and paths. Windows: `app_win.cpp` (window, frame pacing, test modes), `video.cpp` (Direct3D 11), `canvas_d2d.cpp` (Direct2D \u002F DirectWrite), `audio.cpp` (XAudio2), `input.cpp` (XInput \u002F DirectInput) |\n| `src\u002Fplatform\u002Fandroid\u002F` | Android: `app_android.cpp` (SDL window, events, pacing, ROM picker), `video_gles.cpp` (OpenGL ES picture and canvas, text from Android's own font), `audio_sdl.cpp`, `input_sdl.cpp`, `touch.cpp` |\n| `android\u002F` | Gradle project; `SmasActivity.java` adds the ROM picker and the UI font rasteriser to SDL's activity |\n\nThe Android build uses SDL2 by Sam Lantinga and contributors (zlib licence, `third_party\u002FSDL2-2.32.10-src`).\nThe launcher's title is set in Luckiest Guy by Astigmatic (Apache 2.0 licence, `third_party\u002Ffonts`), copied beside the exe and into the Android app.\n","这是一个为Windows和Android平台开发的《超级马里奥全明星》（SNES原版）原生移植项目，不包含游戏数据，需用户自行提供合法ROM文件。核心功能包括真实宽屏支持（最高21:9）、双人本地同屏合作、82项成就系统、CRT模拟滤镜与风格化着色器、即时存档\u002F读档、倒带、作弊码、关卡选择及内置音乐播放器。技术上基于C++实现，Windows端使用Direct3D 11\u002FDirect2D，Android端基于SDL2与OpenGL ES 3.0，无外部依赖库。适用于希望在现代设备上以增强体验重温经典马里奥合集的怀旧玩家与模拟器爱好者。",2,"2026-11-24 04:35:58","CREATED_QUERY"]