Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 06-09-2025, 11:25 AM   #1
crazyelectron
Junior Member
crazyelectron doesn't littercrazyelectron doesn't littercrazyelectron doesn't litter
 
crazyelectron's Avatar
 
Posts: 5
Karma: 212
Join Date: Nov 2023
Device: PW5 * 2, KS 2022
Gambatte-K2 - Game Boy / Game Boy Color emulator

Gambatte-K2: Game Boy Emulator for Kindle (GTK2/FBInk)

Gambatte-K2 is a Game Boy / Game Boy Color (.gb, .gbc ROMS) emulator frontend for Kindle e-ink devices, built with performance in mind. It uses the gambatte-libretro core and provides a GTK2 interface, as well as direct framebuffer rendering mode via FBInk

Usage

Grab the zip (gambatte-k2.zip), unpack on /mnt/us/extensions as any other extension:

Launch via KUAL and/or copy the shortcut (shortcut_gambatte-k2.sh) to /mnt/us/documents so it shows on your library.

Open a game/ROM using the Open button.

TL-DR Technical Features

Spoiler:

- Fast, Lightweight UI:
Minimal dependencies (`2.5Mb` binary), runs pretty well on low-RAM e-ink Kindles using around `15Mb` of RAM.
- Two Rendering Modes:
- GTK2:Standard X11/GTK2 drawing mode using the OS e-ink refreshing.
- FBInk:Direct framebuffer output for maximum speed, a little quirky, with more ghosting.
- Performance-Oriented Design:
- Only one main loopin the frame processing path doing scaling and dithering at once.
- Ordered dithering (BW)(Bayer 4x4) applied during a first scaling stage for improved frame speed processing.
- Nearest-neighbor scalingin the second stage for fast upscaling.
- Single GdkPixbufreused for all frames to minimize RAM usage and allocations.
- LUT (Lookup Table):Precomputed 65536-entry lookup table with RGB565→RGB888→grayscale conversion for fast pixel processing.
- Touch & Multi-Touch Controls:
- On-screen virtual Game Boy like buttons with ad-hoc multi-touch support (up to 2 touches) listening directly on the /dev/input/eventX device events.
- Dynamic Quality/Size Controls:
- Toggle between some scaling/quality presets.
- Threaded Frame Processing:
- Frame conversion and drawing are offloaded to a worker thread to keep the UI responsive.
- Minimal External Dependencies:
- Only needs GTK2, GDK-Pixbuf, and FBInk (for direct mode).


Download: gambatte-k2.zip

https://github.com/crazy-electron/gambatte-k2
Attached Thumbnails
Click image for larger version

Name:	screenshot_2025_06_09T17_18_18+0200.png
Views:	118
Size:	38.8 KB
ID:	216113   Click image for larger version

Name:	screenshot_2025_06_09T17_17_47+0200.png
Views:	99
Size:	32.6 KB
ID:	216114  
crazyelectron is offline   Reply With Quote
Old 06-15-2025, 01:36 AM   #2
HenriHenry
Member
HenriHenry began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jun 2025
Device: Kindle PW5
Amazing!
Works exceptionally smoothly for an e-reader.
Are there any plans to add an option to save the game?
It's the only missing thing to play Pokemon on kindle
(or is it already implemented? If yes, how do I use it?)
HenriHenry is offline   Reply With Quote
Advert
Old 06-15-2025, 01:43 AM   #3
HenriHenry
Member
HenriHenry began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jun 2025
Device: Kindle PW5
Amazing!
Runs exceptionally smoothly for an e-reader.
Are there any plans to add an option to save the game?
It's the last thing needed to play Pokemon on kindle (well that,and a GBA emulator, but I have a feeling the RAM wouldn't like it...)
Or is saving already implemented? If yes, how do I use it?
HenriHenry is offline   Reply With Quote
Old 06-15-2025, 01:46 AM   #4
HenriHenry
Member
HenriHenry began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jun 2025
Device: Kindle PW5
Sorry, posted it twice.
Guess the kindle browser does lag a lot
HenriHenry is offline   Reply With Quote
Old 06-21-2025, 12:49 PM   #5
crazyelectron
Junior Member
crazyelectron doesn't littercrazyelectron doesn't littercrazyelectron doesn't litter
 
crazyelectron's Avatar
 
Posts: 5
Karma: 212
Join Date: Nov 2023
Device: PW5 * 2, KS 2022
Update: save/load functionality
-save/load functionality with 5 available slots, allowing to save and resume game progress. experimental
-fixed button positions and geometries.
-added a manual e-ink refresh button.
-some multitouch improvements.
Note: as an e-ink device, designed for reading, with just a two-point multi-touch capacitive touch-screen, it may not be extremely responsive at the end.
crazyelectron is offline   Reply With Quote
Advert
Old 06-26-2025, 06:39 PM   #6
HenriHenry
Member
HenriHenry began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jun 2025
Device: Kindle PW5
Honestly, this is incredible:
A fast gb/gbc emulator, on an e-ink screen, that can save ANY game (even those without built-in save functionality!)
And with (almost) no bugs!
(Altough there is one that is common occurence: the down key staying pressed seemingly forever, but a quick press on up + down keys fixs that.
This app truly deserves any praise it receives.
HenriHenry is offline   Reply With Quote
Old Yesterday, 07:44 PM   #7
Eltico2k
Junior Member
Eltico2k began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2025
Device: PW11
Wow!

It really works very well and fast, on my Kindle11 it can be played without ghosting.
Eltico2k is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gambatte-K - Game Boy Color emulator liim Kindle Developer's Corner 28 05-25-2025 10:55 AM
Free (Kindle) Fool's Game by R. M. Dorn [Magic Card Game vs Monsters Urban Fantasy] ATDrake Deals and Resources (No Self-Promotion or Affiliate Links) 0 07-09-2017 02:21 PM
THE GAME IS ON! (an anthology based on 'The Most Dangerous Game') sakman70 Self-Promotions by Authors and Publishers 1 08-07-2011 02:07 PM


All times are GMT -4. The time now is 02:21 PM.


MobileRead.com is a privately owned, operated and funded community.