Download .zip |
Info | Example | Screenshots | View files (17) | Download .zip | Reputation | Support forum (4) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2018-01-22 (15 hours ago) | 69% | Total: 328 This week: 6 | All time: 6,915 This week: 93 |
Version | License | PHP version | Categories | |||
php-terminal-gameboy 1.0.4 | MIT/X Consortium ... | 5.6 | PHP 5, Emulators, Games, Console |
Collaborate with this project | Author | |||
php-terminal-gameboy-emulator - github.com Description This package can emulate Gameboy console in a terminal in pure PHP. Innovation Award
|
<p align="center"><img src="https://cloud.githubusercontent.com/assets/2197005/13260438/2f6e96ac-da3a-11e5-86cf-bbfa15083f74.gif" width="560" alt="PHP Terminal GameBoy Emulator" /></p>
Want to play Dr Mario or Pokémon on your server terminal? That's for you!
Some people will ask me: _"Why you did that?"_
Well, a friend asked me _"What PHP can do?"_. I thought about that awhile and the idea came up. With PHP7's performance improvement now it's possible to emulate some systems :smile: and, come on, that's funny! :dancers:
It's based on the GameBoy JS Emulator.
The following PHP versions are supported:
You will need a good terminal! I've tested only on MacOSX and Linux. I'm sorry about that Windows guys :disappointed:
Using composer:
$ composer g require gabrielrcouto/php-terminal-gameboy-emulator:dev-master
Using PHAR:
$ wget https://raw.githubusercontent.com/gabrielrcouto/php-terminal-gameboy-emulator/master/bin/php-gameboy.phar
$ chmod +x php-gameboy.phar
$ mv php-gameboy.phar /usr/local/bin/php-gameboy
Your roms are loaded from the directory you are running the php-gameboy
command.
$ php-gameboy drmario.gb
$ php-gameboy pokemon.gbc
If you like to run this emulator locally, simple clone the repository:
$ git clone https://github.com/gabrielrcouto/php-terminal-gameboy-emulator.git
$ cd php-terminal-gameboy-emulator
$ composer install -o
For running roms, pass the full path to your rom or put then in the php-terminal-gameboy-emulator
folder:
$ bin/php-gameboy pokemon.gbc
$ bin/php-gameboy /full/path/to/your/rom/drmario.gb
_n_________________
|_|_______________|_|
| ,-------------. |
| | .---------. | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | `---------' | |
| `---------------' |
| _ |
| _|W|_ ,-. |
||A D| ,-. "._,"|
| |S| "._," Dot |
| _ _ Comma |
| // // |
| // // \\\\\\ |
| N M \\\\\\ ,
|________...______,"
You can use the following command to run the most common checks, such as php -l
, phpcs
:
$ ant check
Converting from the JS paradigm was a lot of work, and I still need to adapt somethings like:
The purpose of this project was to study all the capabilities of PHP.
It does not have any commercial or profitable intentions.
The user is responsible to use this code and its content in the terms of the law.
The author is completely against piracy and respects all the copyrights, trademarks and patents of Nintendo.
Screenshots | ||
Files |
File | Role | Description | ||
---|---|---|---|---|
bin (2 files) | ||||
src (8 files, 1 directory) | ||||
boot.php | Example | Example script | ||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
docker-php-7 | Data | Auxiliary data | ||
README.md | Data | Auxiliary data |
Files | / | src |
File | Role | Description | ||
---|---|---|---|---|
Canvas (2 files) | ||||
Cbopcode.php | Class | Class source | ||
Core.php | Class | Class source | ||
Data.php | Class | Class source | ||
Keyboard.php | Class | Class source | ||
LcdController.php | Class | Class source | ||
Opcode.php | Class | Class source | ||
Settings.php | Class | Class source | ||
TICKTables.php | Class | Class source |
Files | / | src | / | Canvas |
File | Role | Description |
---|---|---|
DrawContextInterface.php | Class | Class source |
TerminalCanvas.php | Class | Class source |
php-terminal-gameboy-2018-01-22.zip 394KB | |
php-terminal-gameboy-2018-01-22.tar.gz | |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
94% |
|
|
User Ratings | User Comments (5) | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.