Giter VIP home page Giter VIP logo

rpg-js's Introduction

Header icon

RPG JS v3-beta. Create RPG and MMORPG in your browser

RPG JS is a framework for creating RPGs and MMORPGs.The code remains the same depending on the type of game!

Don't hesitate to propose your ideas, your remarks and feedbacks on bugs, that will allow us to progress faster on the project!

rpgjs.dev

Summary

Features

  • Create events Shared/Scenario mode
  • Tiled Map Editor Map creation with Tiled Map Editor. You can have as many scenery layers and event layers as you want
  • Collisions by tile or precise
  • WebGL Rendering Game rendering uses WebGL rendering (with PixiJS) for better rendering performance
  • Precise movement, pixel by pixel
  • Playing on mobile, with a gamepad and of course the keyboard
  • MMORPG Performance Low Bandwidth, Client-Side Prediction
  • Using VueJS for user interfaces Prebuilt GUI (dialog box, main menu, shop menu, etc.)
  • Code with Typescript The creation of the game uses TypeScript. The interest is to know the properties and to make the structure clearer.
  • Thought for the RPG The API is simple. For example, just by doing: player.exp += 100. This can raise the player one level automatically, you can indicate this to all the players on the map, and the map events will be updated according to this new state.
  • With same code: MMORPG or RPG
  • Modular
  • Unit tests

Demo

Demo

Demo

Documentation

Read Documentation

Installation

npx degit rpgjs/template my-rpg-game
cd my-rpg-game
npm install
npm run dev

To test only in RPG mode:

RPG_TYPE=rpg npm run dev

Production

To put into production:

MMORPG

NODE_ENV=production npm run build

  1. Put the folders dist/server and dist/client on a server
  2. Starting the server in dist/server/index.js.

Example 1:

node dist/server

Example 2: (with PM2)

pm2 start dist/server/index.js

RPG

NODE_ENV=production RPG_TYPE=rpg npm run build

Put the files in the dist/standalone folder on a static server (as Vercel or Netlify or your own server)

Benchmark

WIP

Contribute to developments

To contribute to the developments, install the sources locally:

git clone https://github.com/RSamaium/RPG-JS.git
npm install
npx lerna bootstrap
npm run dev

The game can be found in @rpgjs/sample3 package.

With Docker

  1. docker build -t rpgjs -f Dockerfile.dev .
  2. docker run -p 3000:3000 rpgjs

Old Version

RPGJS Version 2

License

MIT. Free for commercial use.

rpg-js's People

Contributors

rsamaium 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.