1.5.9 • Published 6 years ago

battle-engine v1.5.9

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

Turn-based Battle Engine

This is an implementation of a simplified Pokemon-style turn-based battle engine. Players each initialize with a team of "heroes", each with their own stats affecting their damage output, resistance, and health. They also contain a moveset that they can use to damage other heroes. Victory is achieved when one player reduces all the other player's heroes' health to 0.

Architecture

  • Battle Manager - orchestrates all other managers, talks to UI and recieves player input - Arena Manager - manages the arena, such as arena hazards - Team Manager - manages the player and enemy teams, as well as effects applied to all the heroes on each team - Turn Manager - manages the team and arena state and processes turns which mutate that state

  • Models:

    • ActionTurn, EffectTurn - different types of turns which mutate game state in different ways
    • Hero - maintains stats, movepool data about a single hero
    • Move - maintains move name, power, logic for damage calculation

How to run

  • Tests: npm run test
1.5.9

6 years ago

1.5.8

6 years ago

1.5.7

6 years ago

1.5.6

6 years ago

1.5.5

6 years ago

1.5.4

6 years ago

1.5.3

6 years ago

1.5.2

6 years ago

1.5.1

6 years ago

1.5.0

6 years ago

1.4.4

6 years ago

1.4.3

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago