all repos — uStrat @ 245abc4d3be03d43a1a4a5429dc17e6f8617ff79

simple turn-based strategy game inspired by uCity, Super Robot Wars, C&C, Fire Emblem

README.md (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# uStrat

uStrat is a strategy game developed primarily for mobile phones. It is inspired by games like uCity, Fire Emblem, and Super Robot Wars. uStrat is written in Javascript using HTML5 Canvas and a whole lotta elbow grease.

## Gameplay

The map is randomly generated at the beginning of the game. P1 and CPU headquarters are spawned in opposite quadrants of the map. The goal is to build your headquarters up with power generation, factories, and armories (Structures), and build an army of mecha soldiers (Units) equipped to defend the Cities and destroy the enemy's HQ. The CPU team will be doing the same, but aiming to destroy the Cities.

Resource management is centered around Energy. Each power generation Structure adds a certain amount of Energy to your team's pool, up to a maximum defined by the sum of the power generation Structures. Building Units, Structures, and Equipment costs energy.

Each Unit has its own strengths and weaknesses; Same goes for the equipment. You can mix and match units and equipment to come up with an arsenal that best matches your strategy.

The game ends when too many cities are destroyed or either HQ is destroyed.

## Controls

uStrat can be controlled by keyboard (desktop/laptop) or touch (mobile). The game will automatically detect a mobile platform and render the touch controls when necessary. The controls are as follows:

### touch

* `d-Pad (left cross)`: movement
* `pause (center button)`: show/hide mini-map
* `face buttons (right cross)`:
  * `Y (right button)`: select tile/menu option
  * `X (bottom button)`: cancel selection or operation
  * `Z (top button)`: reset movement path; change cycle class; rotate attack pattern
  * `W (left button)`: cycle through current cycle class; rotate attack pattern

### keyboard

* `arrow keys`: movement
* `spacebar`: show/hide mini-map
* `x`: select tile/menu option
* `z`: cancel selection or operation
* `s`: reset movement path; change cycle class; rotate attack pattern
* `a`: cycle through current cycle class; rotate attack pattern

## Development

* currently finishing the AI and polishing up some UI
* there is a lot of improvement to be made on the AI's basic pathfinding. more will be done with this later after the game is more or less playable
* probably a million and one bugs. please do report them and/or contribute fixes!