Skip to content
forked from RSamaium/RPG-JS

Framework to create an RPG or MMORPG (with the same code) in the browser with Typescript

License

Notifications You must be signed in to change notification settings

Nebula234/RPG-JS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Header icon

RPG JS v3-alpha. 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!

The alpha.10 version has brought a lot of changes on the structure of a project. From now on, a system of modules has been added to the game development. I remind that it is not yet appropriate to make a game to put it in production because the version is still unstable. However, we will soon have a Beta version which will be more interesting for your future projects.

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
  • 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

Why Alpha Version ?

because, there are still several parts to realize

  • Put unit tests
  • Battle System (A-RPG System)
  • Must complete the main menu
  • Chat GUI

Planned for the Beta version

  • Admin Front
  • Guild GUI

Can I use the current version in production?

For the moment, i do not recommend it. The Alpha version is unstable and its structure may change. You can try RpgJS in experimental mode or get familiar with it in order to make a game later

I will update to indicate when the version is more stable

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 ...
npm install
npx lerna bootstrap
npm run dev

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

Old Version

RPGJS Version 2

License

MIT. Free for commercial use.

About

Framework to create an RPG or MMORPG (with the same code) in the browser with Typescript

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 86.5%
  • Vue 8.9%
  • JavaScript 3.6%
  • Other 1.0%