Code Monkey home page Code Monkey logo

nesgo's Introduction

NES-GO

Another NES Emulator implemented in Golang

Dependencies

MacOS

brew install glfw
brew install portaudio

Linux/Unix Based Systems or Windows

Refer to https://www.glfw.org/ And http://www.portaudio.com/

Usage

go run cmd/nesgo/main.go <path-to-rom>

Key bindings

Currently the keys are statically mapped, dynamic mapping through a configuration file will be supported in the future. Only the first controller is supported.

Controller 1 (keyboard)

  • A - N
  • B - M
  • Up/Down/Left/Right - WSAD
  • Start - Enter
  • Select - Backspace

Special keys

  • E - enable/disable emulation
  • L - enable/disable disassembler in stdout
  • Space - Step one frame
  • O - Cycle through: PPU rendered output - Pattern table 1 - Pattern table 2
  • P - Cycle through palette index 0-7 (when showing pattern tables)

Progress:

  • - CPU implementation
  • - Basic cartridge / mapper implementation
  • - GUI framework: glfw/gl
  • - Basic controller support
  • - PPU background rendering
  • - PPU foreground rendering (sprites)
  • - Framework for audio
  • - APU (audio processing unit)
  • - Multiple controller mappings
  • - Dynamic controller mapping
  • - Save state
  • - Battery support
  • - More mappers... (contributions are appreciated)

Notes:

  • The code is set up as simple as possible, depicting all steps in emulation, specially when rendering the image in the PPU, optimisations are omitted intentionally

References:

Special thanks to https://github.com/OneLoneCoder and his YouTube channel, this implementation it is based on his hard work creating such an amazing step-by-step guide to implement this emulator

nesgo's People

Contributors

i82orbom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.