Difference between revisions of "Application:Gnuboy"

From WebOS Internals
Jump to navigation Jump to search
Line 43: Line 43:
 
=== Side note on launching gnuboy from within Webos ===
 
=== Side note on launching gnuboy from within Webos ===
  
The emulator can be launched from the Mojo Webos [[Application:Terminal|Application:Terminal]] app, which can be downloaded from Preware.  http://www.webos-internals.org/wiki/Application:Terminal .  The emulator even works like this with Luna on, meaning you can receive calls  
+
The emulator can be launched from the Mojo Webos [[Terminal|Application:Terminal]] app, which can be downloaded from Preware.  http://www.webos-internals.org/wiki/Application:Terminal .  The emulator even works like this with Luna on, meaning you can receive calls  
 
even when playing a game.  However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen & Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the "disable screen timer" functionality in the Webos app "Mytether", or find some way to set the 'Turn Off After' parameter in 'Screen & Lock' to a higher option than those listed.
 
even when playing a game.  However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash.  This period of time is defined in the Webos 'Screen & Lock' application under 'Turn Off After'.  A workaround is to either tap the screen periodically before the screen turns off, use the "disable screen timer" functionality in the Webos app "Mytether", or find some way to set the 'Turn Off After' parameter in 'Screen & Lock' to a higher option than those listed.
  

Revision as of 14:42, 30 November 2009

Setup:

1. Setup Debian.

2. Setup DirectFB.

Some program specific notes about the directfbrc config file:

mode=320x480
primary-layer=00
pixelformat=RGB16  #This needs to be changed from ARGB to RGB16 for accurate gameboy color emulation.
no-vt
no-cursor
bg-color=00000000
hardware

3. Run, outside the chroot:

<source lang="text">/sbin/initctl stop LunaSysMgr #NOTE: THIS WILL KILL THE GUI</source> 4. Run, inside the debian chroot: <source lang="text"> apt-get install -y gnuboy-sdl </source>

Run:

Get into the Debian chroot: <source lang="text"> export SDL_VIDEODRIVER="directfb" export SDL_NOMOUSE=1 sdlgnuboy --scale=2 --density=2 --bind q quit --bind u +up --bind h +left --bind k +right --bind j +down YOURROMFILE.GB </source>

Notes

  • You will have to unzip your gameboy rom in order to work with gnuboy
  • Mappings for the gameboy start and select buttons are not specified in the program launch parameters, but the defaults are enter for start and space for select.
  • If sound is not working for you, try installing the package 'libsdl1.2debian-all' in your debian chroot. To disable sound in the emu, add --sound=0 as a launch parameter.
  • Playability in this emulator is excellent. Gameboy and Gameboy Color games run at full speed.


Side note on launching gnuboy from within Webos

The emulator can be launched from the Mojo Webos Application:Terminal app, which can be downloaded from Preware. http://www.webos-internals.org/wiki/Application:Terminal . The emulator even works like this with Luna on, meaning you can receive calls even when playing a game. However, with Luna on, the Webos gui functions will turn off the screen and go into sleep mode after a period of time, which causes the emulator to crash. This period of time is defined in the Webos 'Screen & Lock' application under 'Turn Off After'. A workaround is to either tap the screen periodically before the screen turns off, use the "disable screen timer" functionality in the Webos app "Mytether", or find some way to set the 'Turn Off After' parameter in 'Screen & Lock' to a higher option than those listed.

Video

Video on Viddler