Coder Social home page Coder Social logo

emckay / gbajs3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thenick775/gbajs3

0.0 0.0 0.0 9.28 MB

Gbajs3 is a full Game Boy Advance emulator online in the browser supporting the mGBA WASM core. It is freely licensed and works in any modern browser.

Shell 0.84% JavaScript 0.28% Go 21.93% TypeScript 75.98% CSS 0.28% Makefile 0.13% HTML 0.16% Dockerfile 0.40%

gbajs3's Introduction

gbajs3 -- A Browser Based Game Boy Advance Emulator

This project is a Game Boy Advance emulator that is freely licensed and works in any modern browser without plugins.

It began as a re-skin of the gbajs2 fork by andychase, but now supports the mGBA wasm core through the use of emscripten, for a feature rich user experience.

This project was driven specifically by a need to play modern GBA rom hacks outside of desktop applications, without side loading or building through xcode. It is designed as an all-in-one mono repo containing the backend services and frontend services.

Use it online! https://gba.nicholas-vancise.dev

Do not attempt to log into the server unless you are the server owner or an approved user, your IP may be banned.

New Feature List

  • Golang server for logged-in user support
  • Nginx server for gbajs3 content
  • Fast Forward
  • Re-mappable Keyboard Bindings
  • Virtual Controls (Desktop/Mobile)
  • Movable desktop canvas and controls
  • Mobile UI support
  • Offline PWA Support
  • Save state support
  • Cheat code support
  • Core Support
    • mGBA support (wasm based)
  • Admin UI
  • Postgres support
  • Persistent file system utilizing IndexedDB
  • Interactive Product Tour

Existing Feature List

To Do

  • Debugger enhancements
  • Server enhancements
    • request an account feature suite
    • s3 backed file storage
  • SkyEmu secondary core (tentative)

Sample Screenshots

  • Example Desktop

  • Example Mobile

  • Example Admin

Getting Started

  • Local builds require docker

  • Run the bootstrap script and follow the interactive prompts:

    ./bin/boostrap.sh;
    
  • The bootstrap script will do the following:

    • copy env files from the examples in all directories
    • create default local directories
      • note: the database mount directory will be created by the container with the correct permissions
    • generate a local test ssl certificate pair
  • This script will generate a top level .env file of the following format merging all service specific env files:

    # gbajs3
    ROM_PATH=./<local server rom path>/
    SAVE_PATH=./<local server save path>/
    CLIENT_HOST=https://<your client location>
    CERT_DIR=./<path to your certificate root directory>
    CERT_LOC=./<path to your certificate>
    KEY_LOC=./<path to your key>
    
    # admin
    ADMIN_APP_ID=<your unique alphanumeric app id>
    
    # postgres
    PG_DB_HOST=<database host>
    PG_DB_USER=<database user>
    PG_DB_PASSWORD=<database user password>
    GBAJS_DB_NAME=<your gbajs3 database name, default `gbajs3`>
    ADMIN_DB_NAME=<your goadmin database name, default `goadmin`>
    PG_DB_PORT=<postgres db port, default 5432>
    PG_SSL_MODE=<pg ssl mode>
    PG_DATA_LOCATION=./<path to postgres persistent bind mount point>
    

    Leaving all default values in place will work for local development.

  • If your developing on a mac, you will need to share the bind mount location(s) manually, and ensure they have the correct permissions

    These settings are located in Settings -> Resources -> File Sharing

  • Build and run the docker containers:

    docker compose up;
    
  • Once docker has created the containers, the web server will be available at https://localhost

  • The Admin UI can be found at https://localhost/admin

    • The default password for all admin users is admin, please log in to the admin portal and change the default passwords immediately
  • Golang api swagger UI can be found at https://localhost/api/documentation/

  • To run each service individually, with or without docker, see the nested READMEs under each top level service directory

Contributing

Feel free to open discussions, issues, and pull requests. Contributions are welcome!

License

Original work by Endrift. Repo: (Archived / No longer maintained) https://github.com/endrift/gbajs Copyright © 2012 – 2013, Jeffrey Pfau

Original work by Endrift. Repo: (mGBA wasm base) https://github.com/endrift/mgba mGBA is Copyright © 2013 – 2018 Jeffrey Pfau. It is distributed under the Mozilla Public License version 2.0. A full copy of the license is available at my fork.

Original work by andychase. Repo: (gbajs2 base) https://github.com/andychase/gbajs2 Copyright © 2020, Andrew Chase

Copyright © 2022 - 2023, Nicholas VanCise

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

gbajs3's People

Contributors

endrift avatar thenick775 avatar andychase avatar rettgerst avatar fordi avatar catarax avatar tintheanh avatar cam-opperman avatar domon 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.