Coder Social home page Coder Social logo

php-chip8's Introduction

PHP Chip-8 Emulator

I don't know how many turing mashines deep this is but here is a Chip8 Emulator written in PHP.

Built on PHP-GLFW and the VISU framework.

demo

Features

  • It runs Chip8 ROMs!
    This is obvious, but the moment it started working was magical to me, so I'm putting it here.

  • Debugger
    You can step through the code and see the state of the registers and memory.
    Press space to pause or hit the Pause button. stepper

  • Drag and Drop
    As seen in the demo, you can simply drag and drop your ROMs onto the emulator.

  • Fullscreen mode
    If you don't care for all the debugging stuff, you can simply go fullscreen and enjoy the game.

  • Virtual Keyboard
    You can use the keyboard in the GUI or use the keybindings:

    keyboard
    1 2 3 C -> 1 2 3 4
    4 5 6 D -> q w e r
    7 8 9 E -> a s d f
    A 0 B F -> y x c v
  • Ghosting Effect
    I'm honestly not very knowledgeable about old hardware, but I'm assuming that the old CRTs would take some time for the phosphor to fade out. I tried to emulate this effect by adding a ghosting effect to the display, as the flickering otherwise is quite unpleasant.
    You can change the strength of the effect. ghosting

  • CRT Effect
    Some might hate this effect; I like it, but of course, you can turn it off. crt

  • GUI! The GUI is created using an immediate mode style of drawing. You get results really quickly, the code is really ugly and performance is really not great.

FAQ

  • What is this?
    It is a Chip8 Emulator written in PHP.
  • Can I use it in Production?
    Of course! Its beyond my understanding why you would want to do that, but sure go for it!
  • Why did you make this?
    Yes!
  • Thats not a real answer
    Yes!
  • Is this a real FAQ?
    Yes!
  • Yes!
    No!

How To use it

  1. Clone the repository
    $ git clone [email protected]:mario-deluna/php-chip8.git
    
  2. Install the dependencies
    $ cd php-chip8
    $ composer install
    
  3. Double check PHP-GLFW is properly installed.
  4. Run the emulator
    $ php bin/start.php
    

Credits

License

Please see License File for more information.

php-chip8's People

Contributors

mario-deluna avatar

Stargazers

tebe avatar Mateusz Cholewka avatar Barış avatar Osaigbovo Emmanuel avatar Petar Popov avatar Ion Bazan avatar Rodolfo Berrios avatar 372 avatar Gina Peter Banyard avatar Michiel Erasmus avatar Adaías Magdiel avatar Joseph Giglio avatar Wil Collins avatar Dac Chartrand avatar Peter Ivanov avatar Jcoder avatar Mauran Muthiah avatar mluna avatar wilbur.yu avatar Flávio Heleno avatar tobozo avatar Bekir Pehlivan avatar Edoardo Luppi avatar Antonio Muñoz avatar  avatar Oliver Kurmis avatar AuroraHe avatar Niek Keijzer avatar Romel Gomez avatar guanguans avatar Malphigi avatar  avatar Philippe Thiers avatar  avatar Siarhei Karavai avatar Jack Wilkinson avatar Philip Burggraf avatar Thanh Trần avatar Florin-Gabriel Dumitru avatar Niels Dossche avatar Stefano Azzolini avatar  avatar  avatar  avatar

Watchers

 avatar Peter Ivanov avatar  avatar  avatar

Forkers

fgdumitru

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.