A PHP Terminal GameBoy Emulator
A PHP Terminal GameBoy Emulator
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-masterUsing 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-gameboyYour roms are loaded from the directory you are running the php-gameboy command.
$ php-gameboy drmario.gb
$ php-gameboy pokemon.gbcIf 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 -oFor 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 checkConverting 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.
No open issues yet, or sync has not completed.