paradoxinversion / lib-eoe

The Empire of EVIL Game Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lib-eoe: The Empire of EVIL Library

This repository is a library for the game Empire of EVIL, aiming to serve as a basis for single and multiplayer implementations. The goal of this library is to encapsulate the core mechanics of the game and leave the rest to whatever framework is desired to finish the game itself.

Development

Install dependencies on Node 14+

npm install

Testing

npm run test

Code coverage goal is 80%.

Contributing

This repo is currently not taking contributions, but may in the future.

Notes

  • Try to avoid nesting data-- keep things as flat as possible. Approach it as though this data would be used with a database. (ie, prefer structures with fast lookup times wherever possible)
  • Underlying game data is not modified by this library. Functions within should return updated objects and fields that can then be used with complete implementations.
  • Object/Entity references should be made via ids (rather than the objects they represent) wherever possible. This should help keep savedata serializable and lightweight.

Implementations

client-eoe

About

The Empire of EVIL Game Library


Languages

Language:TypeScript 98.3%Language:JavaScript 1.7%