Coder Social home page Coder Social logo

ppfc's Introduction

PPFC

A simple fc emulator implemented in c++11 using SDL2 (for Windowns and Linux)

Info

  • 目前仅支持Mapper000,但并不保证其所有游戏能玩
  • 支持自适应窗口
  • 支持Linux平台,不过仅在Ubuntu18上测试过

Environment

  • SDL2-2.0.12
  • vs2017
  • Windowns 10

Make

  • Windowns:

    • vs2017:用Release x86生成解决方案,然后将lib/SDL2-2.0.12/lib/x86/SDL2.dll 复制到ppfc.exe 所在目录

    • mingw64:

      cd ppfc
      g++ -o ppfc.exe src/*.cpp -std=c++11 -O1 "-Ilib\x86_64-w64-mingw32\include\SDL2" "-Llib\x86_64-w64-mingw32\lib" -lSDL2 -lSDL2main
      

      然后将lib/x86_64-w64-mingw32/bin/SDL2.dll 复制到ppfc.exe 所在目录

  • Linux: 需要另外安装SDL2

    cd ppfc
    g++ -o ppfc src/*.cpp -std=c++11 -O1 -lpthread $(sdl2-config --cflags --libs)
    

Usage

  • ppfc.exe <nes rom path>
  • 用鼠标将ROM拖曳到ppfc.exe

Controller

Player 1

Button Key
Up W
Down S
Left A
Right D
A J
B K
Select U
Start I

Player 2

Button Key
Up
Down
Left
Right
A Keypad 2
B Keypad 3
Select Keypad 5
Start Keypad 6

Other

Action Key
Reset Ctrl + 3

TODO

  • Save/Load
  • APU
  • Trainer (金手指)
  • 将该项目移植到stm32或esp32上运行

Reference

ppfc's People

Contributors

hui0808 avatar

Stargazers

FMSans avatar fumoumou avatar

Watchers

 avatar

Forkers

elfensterben

ppfc's Issues

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.