TypeScript icon, indicating that this package has built-in type declarations

1.0.43 • Public • Published

WWW III Martians and Humans

It is year 2081. Martian base that was founded in 2035 has extended and evolved into whole Mars population with support of terraforming techniques. In 2079 an unknown virus has stroke the population of Mars and resulted in a major economic downturn. People on Mars rioted. Starships from Earth were sent to support and protect local government. When the Earth deputy governor was assasinated, Mars proclaimed indenpendence. That's how the World War III between Earth and Mars has started...

So you are a captain on one of the ships - either of the Earth Ist Fleet or the Mars Freedom Army. Complete your ship and your crew and go for battle.

Way of Bushido - Battle system

Battle system is turn based.

Each turn both player select on of three available tactics or chooses to retreat. Tactics influence ship's win chances. Each turn one of the units that participate in battle is selected as the attacker, according to unit maneuverability. Attacker has a slight strength bonus against the defender.

Vessel equipment influences ship's core attributes (strength, maneuver, energy, shields).

Ship's strength is limited when damages are inflicted.

Result of turn is calculated, hit points are decreased and next turn is started.

The battle ends when one of the players retreats or looses his ship due to casualties.

Battle tactics

Each turn players choose their tactics for the turn. Player should choose carefully, taking into consideration enemy player previous tactics and both ships' state. Player gets battle bonus for choosing tactic that is superior to the tactic played by the opponent.

Following tactics can be selected by player

Tactics Vulnerable to Superior to
Long range assault Surprise assault Short range assault
Short range assault Long range assault Surprise assault
Surprise assault Short range assault Long range assault
Retreat All tactics None


During battle ships incur damage from battle. Each damage results in a lost of ship's hit points. Each damage also poses a risk of damageing one of the equipments installed on the ship.

When equipment is damaged it's bonuses do not apply and it does not consume ship's energy.

Risk of being damaged is greater in some parts of the ship's hull than others. Player needs to choose equipment location carefully, in order to avoid risk of damage.

When energy equipment is damaged it may lead to an energy shortage. When on energy shortage ship's equipment bonuses incur penalty. The bigger the shortage the larger the penalty.


Initiative is checked each turn. Ship's maneuverability increses ship initiative which may result in having the attacker role in a current turn. Being an attacker gives the unit strength bonus in the current turn.

Ship Yard

In ship yard each player can create and customize starship.

Hull classes

Starship creation starts with selection of hull class. Each hull class is described by following properties

  • capacity that describes the size of the hull and number of free slots to be populated with starship equipment
  • base strength which is used when fighting. Base strength can be modified by fight tactics and starship Weapon equipment.
  • base energy that describes energy capacity of the starship. Each equipment element requires certain amount of energy so there is a limit on which elements may be placed in ship. Energy can be increased by placing PowerSource equipment
  • maneuver increases vessel chance of taking initiative during battle. Can be increased by the BridgeSystem equipment
Class Capacity Base strength Base energy
Interceptor 3 10 10
Fighter 4 20 14
Corvette 6 36 22
Destroyer 10 54 38
Cruiser 15 70 52
Battleship 20 90 68

Ship's Hit Points

Each starship regardless of its hull type has 10 HP. During fight the ship may be damaged. Damaged ship has reduced strength. When there are no more hit points the starship is destroyed.


Each starship can be customized by placing different type of equipment. Once placed equipment cant be modified. Each equipment consumes one slot, requires certain amount of energy. Following types of equipment are available:

Kind Game Effects
Weapon Systems adds strength to ship, uses 1 slot, consumes energy
Power Source adds energy to ship, uses 1 slot, does not consume energy
Shields reduces damage to ship, uses 1 slot, consumes energy
Bridge Systems increases maneuverability, uses 1 slot, consumes energy

⚔️ Weapon Systems

Weapon systems increase vessel strength.

Code Name Characteristics Energy consumption Capacity usage
W_FCT Fusion Chain Turrets +8 strength 5 1
W_PTO Plasma Torpedos +13 strength 6 1

🛡️ Shields

Power sources increase energy.

Code Name Characteristics Energy consumption Capacity usage
S_360 360 Shield -3 unit's damage 5 1

☢️ Power Source

Power sources increases energy.

Code Name Characteristics Energy consumption Capacity usage
P_FC Fusion Cell +3 energy 1 1

📟 Bridge Systems

Bridge systems increase maneuverability.

Code Name Characteristics Energy consumption Capacity usage
B_MII Mark II Nav Computer +1 maneuverability 1 1



Package Sidebar


npm i starshyp-game

Weekly Downloads






Unpacked Size

229 kB

Total Files


Last publish


  • grulka