[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-117278":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":13,"stars7d":13,"stars30d":13,"stars90d":15,"forks30d":15,"starsTrendScore":16,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":9,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":9,"trendingCount":15,"starSnapshotCount":15,"syncStatus":13,"lastSyncTime":25,"discoverSource":26},117278,"Pinball-NS","ReiniShari\u002FPinball-NS","ReiniShari","Optimized Pokémon Pinball [GBC] No Split Emulator",null,"C",54,3,2,7,0,6,44.01,false,"main",true,[],"2026-10-28 10:51:19","2026-11-23 14:13:46","# Pinball NS\n\nA project for **Pokémon Pinball** (Game Boy Color, US version) for **Android**, **iPhone**, **Windows**, **macOS** and **Linux**, written in C with an emulation core in assembly. It also plays **Pokémon Pinball Generations** 1.6, the fan-made extension of the game by RainbowDevs, with its Gold and Silver tables.\n\nIn the original game, each table is split into a top and a bottom stage: only one is loaded at a time, and the screen goes blank while the other is loaded. Pinball NS turns each table into **a single field**: both halves are loaded, updated and shown together on one tall screen, and the ball moves between them without any reloading. The original physics and collisions are kept, so the table plays like the original.\n\n- The whole table on one screen, the score bar under the table.\n- Objects, lights and animations of both halves always running; flippers moving even when the ball is at the top.\n- The top of the \"SLOT\" cave halo, never visible in the original, completed by symmetry.\n- On the tables, the original game runs in the double-speed mode of the Game Boy Color, as Generations does, with its music and timings kept: no slowdown when much happens at once.\n- Smooth pacing on 60, 90, 120 and 144 Hz screens, with the sound following the picture.\n- Phones: the game fills the width of a portrait screen, extended to the edges with its own graphics, with touch controls styled after each table (or hidden).\n- Computers: the table alone in a resizable window, or the phones' screen with its touch keys (handheld mode), keyboard and gamepads, key mapping.\n- Screen filters (dots, LCD) and colors (original, black and white, Game Boy green) everywhere.\n\nThe ROM is never modified: the program contains a Game Boy Color emulator and hooks the game's routines.\n\n## What you need\n\nThe ROM dumped from **your own** cartridge: *Pokémon Pinball (USA, Australia) (Rumble Version)*, SHA-1 `9402014d14969432142abfde728c6f1a10ee4dac`. It is not provided. The European version is not supported.\n\nFor Pokémon Pinball Generations, the version 1.6 patch ([rainbowdevs.com](https:\u002F\u002Frainbowdevs.com\u002Ftitle\u002Fpinball\u002F)) applied to that ROM (SHA-1 `9407074cc9b5a93d731a07e2d24b9ca06ecf17d7`). The phone versions can apply the `.ips` patch themselves.\n\nReady-to-use builds are in the **Releases** of this repository (they do not contain the ROM).\n\n## Android\n\nAndroid 8.0 or later, 64-bit ARM. Install the APK (allow apps from unknown sources if asked), then give it the ROM once: open the `.gbc` file with **Pinball NS** (\"Open with\" or \"Share\" in your file manager). For Generations, open its ROM, or its `.ips` patch once the US ROM is installed; the menu's GAME entry switches between the two games, each with its own saves.\n\n- The control layout follows a design by Gianchy3000: two flipper keys showing the game's flipper, each one active on its own key only; a \"T\" for the tilts; MENU and START under it, away from the thumbs.\n- CONTROLS: SHOWN, or HIDDEN: in a game, MENU and START only, and the screen under the game plays the flippers (its left and right halves).\n- GAME TOUCH: tap the left, middle or right third of the game for the left, upper or right tilt (TILT, the default); or its left and right halves play the flippers (FLIPPERS); or OFF.\n- MOTION TILT: tap the left or right side of the phone, even lightly, to tilt the table that way; shake it up and down for the upper tilt.\n- **MENU** (or Back): resume, quick save and load, vibration, sound, motion tilt, game touch, controls, screen filter (dot, LCD), colors (original, black and white, Game Boy green), game, restart, about, quit.\n\nBluetooth or USB gamepads and keyboards also work (gamepads Android does not know too, by their numbered buttons), and gamepads with a motor rumble with the game. The game is saved and paused when the app goes to the background.\n\n## iPhone (experimental)\n\niOS 14 or later. The `.ipa` is not signed by Apple: install it with your own Apple ID through a sideloading tool (AltStore, Sideloadly; with a free Apple ID the app must be refreshed every 7 days). Then give it the ROM once: tap the screen to choose it in Files, share it to Pinball NS, or copy it to Files > On My iPhone > Pinball NS (the `.ips` patch of Generations too). Everything else is as on Android: the same screen, controls, menu and settings; MOTION TILT reads the accelerometer, the Taptic Engine vibrates, and MFi, Xbox, PlayStation and Switch gamepads and keyboards work (the gamepad's home button opens the menu).\n\n## Windows, macOS and Linux\n\n- **Windows** 10 or 11, 64-bit: run `PinballNS.exe`.\n- **macOS** 10.15 or later, Apple silicon and Intel (experimental): the app is not notarized; the first time, right click `Pinball NS.app` > Open (on macOS 15: open it once, then allow it in System Settings > Privacy & Security). If macOS says the app is damaged, run `xattr -dr com.apple.quarantine \"Pinball NS.app\"` in Terminal.\n- **Linux** x86-64 (glibc 2.34 or later, X11 or XWayland, ALSA): run `.\u002Fpinball-ns` from the archive (`pinball-ns.desktop` can add it to the menu).\n\nChoose the ROM in the window shown at the start, drop it onto the window, or give it on the command line; the original game or Generations. Saves are kept next to the ROM (`.sav`, compatible with other emulators).\n\n| Action | Keyboard | Gamepad |\n|---|---|---|\n| Left flipper | Left Shift, Z, W, Left arrow | LB, LT, d-pad left |\n| Right flipper, launch, confirm | Right Shift, X, Space | RB, RT, A |\n| Tilt left \u002F right \u002F up | Down arrow \u002F C, Backspace \u002F V, Tab | d-pad down \u002F B, X \u002F Y, Back |\n| Pause menu | Enter | Start |\n| About \u002F key mapping | F1 \u002F F2 | |\n| Handheld mode (the phones' screen, played with the mouse or a touch screen) \u002F its keys hidden | F3 \u002F F4 | |\n| Quick save \u002F load | F5 \u002F F9 | |\n| Screen filter (none, dots, LCD) \u002F colors | F6 \u002F F7 | |\n| Table width (whole or original) \u002F sharp or smooth | F8 \u002F F10 | |\n| Full screen | F11 (Alt+Enter; Control-Command-F on a Mac) | |\n| Pause | P | |\n\nGamepads: Xbox (XInput), PlayStation, Switch Pro and most USB and Bluetooth gamepads on Windows; every gamepad the kernel knows on Linux (with rumble); MFi, Xbox, PlayStation and Switch Pro gamepads on macOS. The display stays on during a game played with a gamepad.\n\n## Building\n\nAll the code is in C (C99\u002FC11).\n\n```\nmake tools                        # test tools (Linux)\nmake windows                      # PinballNS.exe (mingw-w64, without the assembly interpreter)\nmake android                      # PinballNS.apk (see platform\u002Fandroid\u002Fbuild_apk.sh)\nsh platform\u002Flinux\u002Fbuild.sh        # Linux: PinballNS and its archive\nsh platform\u002Fmacos\u002Fbuild_mac.sh    # macOS: Pinball NS.app (universal) and its zip\nsh platform\u002Fios\u002Fbuild_ipa.sh      # iPhone: PinballNS.ipa\n```\n\nOn Windows with Visual Studio, `tools\\build_msvc.bat` builds `PinballNS.exe` and the tools into `build\\`. The Android build needs the NDK and the SDK build tools; `platform\u002Fandroid\u002Fbuild_apk.sh` creates its own signing key on the first build (keep it: updates must be signed with the same key). The macOS and iPhone apps build on a Mac with Xcode, or elsewhere with the NDK's clang and lld and the declarations of `platform\u002Fapple\u002Fsdk`.\n\n| Folder | Contents |\n|---|---|\n| `src\u002Fcore\u002F` | Game Boy Color emulator (SM83 interpreters in C and assembly, MBC5, video, sound). |\n| `src\u002Fgame\u002F` | The single field: the rewrite of the stage management, and where the routines of each ROM are. |\n| `src\u002Ffront\u002F` | Screen and sound pacing, screen filters, shared by all versions. |\n| `platform\u002Fmobile\u002F` | The phones' screen, controls and menu (also the handheld mode of the computers). |\n| `platform\u002Fdesktop\u002F` | What the computer versions share: game, saves, settings, keys, pictures. |\n| `platform\u002Fandroid\u002F`, `ios\u002F`, `windows\u002F`, `macos\u002F`, `linux\u002F` | Each system's own part; `apple\u002F`: Objective-C from C, the mini SDK. |\n| `tools\u002F` | Test and build tools. |\n\n## Credits\n\nPinball NS by Reinhard Sharapov (2026). It contains no part of the game: it runs the ROM dumped from your own cartridge. The control layout of the phone versions follows a design by Gianchy3000.\n\nPokémon Pinball Generations by RainbowDevs (formerly TPPDevs).\n\nPokémon Pinball © 1995-1999 Nintendo, Creatures Inc., GAME FREAK inc. © 1999 HAL Laboratory, Inc., Jupiter Corp. Pokémon, the names of the Pokémon, Game Boy and Game Boy Color are trademarks of Nintendo.\n","2026-11-24 04:55:15","CREATED_QUERY"]