Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

moddio/taro

Repository files navigation

Taro Engine

Taro Engine logo

2D multiplayer HTML5 game engine.

Taro Engine is a multi-player-first, cross-platform game engine to launch 2D HTML5 game servers. It can support up to 64 concurrent players hosted on a $5/month VM while running box2d physics.

Taro Engine uses various versions of Box2D physics engine(Planck.js, Box2Dweb, etc), and uses Pixijs as a rendering engine. For netcode, it uses websocket and LZ string compression to optimize bandwidth and performance.

Join us on Discord or support us on Patreon

Demo

Hunt and gather

What's included in the box

Taro Engine is NOT designed for single player games. Instead, it comes with a set of features that are ideal for casual multiplayer games including:

  • Inventory & item system
  • Unit attributes (HP, Energy, etc)
  • Weapon system (melee & projectile)
  • Dialogue windows
  • Shops
  • Unit control (top-down WASD or platformer)
  • Client-side predicted projectile + unit rotation
  • Basic AI
  • Ability to run multiple game server instances in one process
  • Mobile controls
  • and more!

Open sourced to empower all game developers.

Taro is completely free and open source under MIT license. We understand that Netcode and performance optimizations are difficult problems to solve. We have solved much of this already, so you don't have to. We are always looking for more contributors to help us further optimize our game engine.

Before being open sourced in September 2019, Taro Engine was originally forked from Isogenic Game Engine back in 2016

How to run a game server

Taro engine will run a game made in modd.io platform. To run the game, execute the following command:

npm run server --game=<gameID>

*if the argument is not provided, then the engine will use game.json stored in root directory Your game's Game ID can be found in your modd.io's game's sandbox. Go to menu -> about.

Connecting to the game server

Visit http://localhost:2000 to start testing game.

How to customize game client UI

Game client's user interface is rendered using /template/index.html file. Feel free to edit it for your needs

How to make games on modd.io

Please visit https://www.modd.io/tutorials for more information