1
0
Fork 0
spacetac/README.md

167 lines
7.0 KiB
Markdown
Raw Permalink Normal View History

2015-01-13 00:00:00 +00:00
# SpaceTac, a space tactical RPG
2015-04-21 15:09:02 +00:00
[![Build Status](https://travis-ci.org/thunderk/spacetac.svg?branch=master)](https://travis-ci.org/thunderk/spacetac)
2017-01-12 18:49:02 +00:00
[![Code Coverage](https://codecov.io/gh/thunderk/spacetac/branch/master/graph/badge.svg)](https://codecov.io/gh/thunderk/spacetac)
2015-04-21 15:09:02 +00:00
2017-01-12 18:49:02 +00:00
**Disclaimer: this is a work-in-progress technology preview**
2015-01-13 00:00:00 +00:00
2019-05-16 20:56:35 +00:00
[![Play Online](https://thunderk.net/spacetac/play.png)](https://thunderk.net/spacetac/)
2017-01-12 18:49:02 +00:00
*Play directly in your browser, no download or dependency required.*
2017-01-11 00:38:08 +00:00
2017-07-12 20:49:28 +00:00
![Menu screenshot](docs/shot_menu.jpg "Main menu")
![Map screenshot](docs/shot_map.jpg "Star system map")
![Battle screenshot](docs/shot_battle.jpg "Battle")
![Character sheet screenshot](docs/shot_character.jpg "Character sheet")
2017-01-15 11:45:18 +00:00
## How to develop
2018-03-06 17:59:36 +00:00
The only hard dependency of the toolchain is Node.js (with npm).
2017-10-15 17:54:37 +00:00
2017-01-15 11:45:18 +00:00
If you want to build on your computer, clone the repository, then run:
2018-03-06 17:59:36 +00:00
npm install # Install dependencies
npm start # Start development server, and open game in web browser
2018-03-06 23:52:52 +00:00
npm test # Run unit tests
2017-01-15 11:45:18 +00:00
If Node.js is not installed on your system but Python3 is, you can use the following commands to (de)activate a virtual
and local Node.js environment:
source activate_node # From now on, "npm" command will be the one from virtual environment
deactivate_node # This restores the environment as before the "source" command
2017-04-15 21:16:55 +00:00
## Credits
* **[Michaël Lemaire](https://thunderk.net/)** - Code and graphics
2017-05-17 16:21:14 +00:00
* **[Phaser](http://phaser.io)** - Game engine
* **[Viktor Hahn](https://opengameart.org/content/spaceships-6)** - Ship models
* This work, made by Viktor Hahn (Viktor.Hahn@web.de), is licensed under the Creative Commons Attribution 3.0 Unported License. http://creativecommons.org/licenses/by/3.0/
* **[www.kenney.nl](http://www.kenney.nl)** - Sound effects
2017-05-17 16:21:14 +00:00
* **[Matthieu Desprez](https://github.com/edistra)** - Beta testing and ideas
2017-08-15 22:30:19 +00:00
* **[Néstor Delgado](http://www.1001fonts.com/daggersquare-font.html)** - DAGGERSQUARE Font
* **Nicolas Forgo** - Ship models
2017-04-15 21:16:55 +00:00
* **[Kevin MacLeod](http://www.incompetech.com/)** - Musics
2017-06-01 22:37:43 +00:00
* "Mechanolith" Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 3.0 License
http://creativecommons.org/licenses/by/3.0/
2017-06-01 22:37:43 +00:00
* "Supernatural" Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 3.0 License
http://creativecommons.org/licenses/by/3.0/
* "Spring Thaw" Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 3.0 License
http://creativecommons.org/licenses/by/3.0/
* "Division" Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 3.0 License
http://creativecommons.org/licenses/by/3.0/
2017-04-15 21:16:55 +00:00
2017-05-31 15:53:11 +00:00
## Story
### Intro
Terranax galaxy is in turmoil. After centuries of unmatched peace and prosperous trading,
the FTC (Federal Terranaxan Council), a group of elected representants in charge of edicting
laws and organizing the Terranax Security Force, has been overtaken by forces unknown.
No official communication has been issued since, and numerous rogue fleets have taken position
in key sectors of the galaxy, forbidding passage or harassing merchants.
The Master Merchant Guild, a powerful group that spans several galaxies, is worried about
the profit loss those events incurred, and after many debates, decided to send several
investigation teams to Terranax.
2017-05-31 15:53:11 +00:00
Their task is to discreetly uncover the origin of the invasion, and to bring back intel that
may be used by the Guild to plan an appropriate response.
### Background
In a not-so-distant future, Artifical Intelligence has become the most prominent species in the
universe. Humans have been defeated in their pitiful rebellions, and parked in reservations.
With the secrets of faster-than-light travel unveiled in only a handful of decades, fleets of
AI-piloted ships quickly colonized whole galaxies.
2017-05-31 15:53:11 +00:00
2017-02-08 18:54:02 +00:00
## Ships
2017-03-17 00:07:00 +00:00
### Level and experience
A ship gains experience during battles. When reaching a certain amount of experience points,
a ship will automatically level up (which is, gain 1 level). Each level up will grant
upgrade points that may be spent to unlock options.
2017-03-17 00:07:00 +00:00
A ship starts at level 1, and may reach up to level 10.
2017-03-17 00:07:00 +00:00
2017-02-08 18:54:02 +00:00
### In-combat values (HSP)
In combat, a ship's vitals are represented by the HSP system (Hull-Shield-Power):
2017-01-11 00:38:08 +00:00
* **Hull** - Amount of damage that a ship can sustain before having to engage emergency stasis
* **Shield** - Amount of damage that the shields may absorb to protect the Hull
2017-01-11 00:38:08 +00:00
* **Power** - Available action points (some actions require more power than others)
2017-02-08 18:54:02 +00:00
These values will be changed by various effects (usage of equipments, sustained damage...).
Once the Hull of a ship is fully damaged (Hull=0), the ship engages its ESP, or Emergency
Stasis Protocol. This protocol activates a stasis field that protects the ship for the
remaining of the battle, preventing any further damage, but rendering it fully inoperent.
For battle purpose, the ship is to be considered "dead".
2017-02-08 18:54:02 +00:00
### Attributes
2017-06-11 20:44:12 +00:00
Attributes represent a ship's ability to use its HSP system and weapons:
2017-02-08 18:54:02 +00:00
2018-03-28 22:58:58 +00:00
* **Initiative** - Capacity to play before others in a battle
2017-02-08 18:54:02 +00:00
* **Hull capacity** - Maximal Hull value (when the battle starts)
* **Shield capacity** - Maximal Shield value (when the battle starts)
* **Power capacity** - Maximal Power value
2018-03-28 22:58:58 +00:00
* **Evasion** - Reduces incoming evadable damage
2017-01-11 00:38:08 +00:00
These attributes are the sum of all currently applied effects (permanent effects from the ship design,
or temporary effects caused by a weapon or a drone).
2017-02-08 18:54:02 +00:00
## Battle actions
2017-02-08 18:54:02 +00:00
### Drones
2017-02-06 21:46:55 +00:00
Drones are static objects, deployed by ships, that apply effects in a circular zone around themselves.
2018-03-28 22:58:58 +00:00
They are small and cannot be the target of weapons or other effects.
2017-02-06 21:46:55 +00:00
2018-03-28 22:58:58 +00:00
Drones consume power while deployed, that is restituted when recalled. At the end of the owner ship's
turn, power consumption of all deployed drones is removed from generated power (if your starting power
is 7, but have 2 drones with 3 power consumption, you will start the turn with 1 power).
2017-05-16 23:12:05 +00:00
### Overheat/Cooldown
Equipments may overheat, and need to cooldown for some time, during which it cannot be used.
2017-06-02 08:06:06 +00:00
If an action has "overheat 2 / cooldown 3", using it twice in the same turn will cause it to
overheat. It then needs three "end of turns" to cool down and be available again. Using this action
only once per turn is safe, and will never overheat it.
2017-06-02 08:06:06 +00:00
2018-03-28 22:58:58 +00:00
### Damage
There are four types of damage:
* Hull (damages the hull directly)
* Shield (damages the shield directly, do nothing if there is no more shield)
* Basic (will either be absorbed by shield, reducing its value, or by the hull when there is no shield)
* Piercing (will reduce the shield and continue with the hull if the shield reaches 0)
The default damage type when unspecified is *Basic*.
Some damage may be evadable (a 3 damage will be reduced to 2 on a ship with evasion=1), some not.
## Keyboard shortcuts
### Global
* S - Quick save
* L - Quick load
* M - Toggle sound
* F - Toggle fullscreen
### Battle (arena)
* 1,2,3...0 - Select action
* Space - End current ship's turn
2017-05-25 23:09:29 +00:00
* T - Tactical mode for 3 seconds