GithubHelp home page GithubHelp logo

paganaye / moddio2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moddio/moddio2

0.0 0.0 0.0 30.98 MB

HTML5 multiplayer game engine

Home Page: https://www.modd.io/

License: MIT License

JavaScript 90.41% TypeScript 8.45% CSS 0.36% EJS 0.79%

moddio2's Introduction

Moddio is a Multiplayer-First Game Engine. It has a built-in server-authoritative netcode, including snapshot interpolation and client-side reconciliation. It can support 50+ concurrent players or 300+ moving entities hosted on a $5/month VM. Join us on Discord


What's included in the box.

  • Box2D Physics
  • Server-authoritative netcode using Websocket, Snapshot interpolation, Client-side reconciliation, and LZ-string compression
  • Inventory & Item system
  • Built-in Attributes (e.g. HP, Energy, etc) with regeneration rates
  • Built-in Item system (melee & projectile)
  • Dialogues (ideal for visual novel-style games)
  • Shops (for selling items)
  • Unit control (top-down WASD or platformer)
  • Client-side predicted projectile + unit movement (optional)
  • Unit AI including A* pathfinding
  • Mobile controls
  • and more!

Running the game

Make sure you have Node 16 or later. First, setup the repo

git clone https://github.com/moddio/moddio2.git
cd moddio2
npm install
npm run tsc

Then, go to /src directory, and rename game-sample.json to game.json. Go back to the root directory and run the command below:

npm run server

You can now play the game at http://localhost:80

How do I create a new game from scratch?

Moddio games are created & edited using Moddio Game Editor available at https://www.modd.io. To learn how to use the game editor, visit https://learn.modd.io.

Once you create the game, you can export the game.json which you can use in your local installation. Inside the Moddio Game Editor, Go to Menu -> Click Export Game.

How to get game json in game's in-game editor

Next, rename the downloaded Game JSON as `game.json` and move it to the `./src` directory.

How to contribute

Moddio is completely free and open source under the MIT license, and we are always looking for more contributors. To learn about how to become a contributor, please visit how to contribute page

Credits

Isogenic Game Engine

Phaser

PlanckJS

uWebsocket

Box2D

Kenney Assets

Hero Icons

moddio2's People

Contributors

grenagar avatar m0de avatar sloont avatar pranshu6 avatar pavle-goloskokovic avatar pankaj9296 avatar moe-moe-pupil avatar nickyvanurk avatar damienvesper avatar vietnamneko avatar dependabot[bot] avatar parthvakharia avatar nagendraallam avatar pineapplebrain avatar antocorr avatar nishantdesai1306 avatar bruh-9000 avatar bergice avatar 420kyle69 avatar nishantdesaimoddio avatar acheo avatar billyboyyy avatar danielmjacobson avatar sky4ce09 avatar minotalen avatar youssefhoumazen avatar tohodragon avatar xcjames29 avatar capibawa avatar paganaye 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.