Thumbnail

rani/games.git

Clone URL: https://git.buni.party/rani/games.git

Viewing file on branch master

1# TD
2
3A simple, randomly generated, tower defense game.
4
5Click on a turret's name in the shop to begin purchasing, then click on a tile
6to place it there. Press q to abort the purchase. Click on a turret (that has
7already been placed) to open the upgrade menu. Click on the info button to see
8the turret's stats. Buttons (in any menu) can be clicked on if they are
9highlighted. Otherwise, they cannot be clicked on. Space to pause, any to
10resume. q to quit.
11
12Start by purchasing a turret and placing it on the map such that it is in range
13of a path tile. Spikes may only be placed on path tiles and will run out after a
14certain number of enemies run over them. When an enemy is killed, cash is
15rewarded and the score increases. Once enough cash is earned, a turret may be
16upgraded from its upgrade menu. Otherwise, another turret can be purchased and
17placed on the map. Certain turrets may deal splash damage to enemies so that one
18attack will damage multiple enemies at once. After killing enough enemies, the
19round is progressed and a new wave of enemies is spawned. As the rounds
20progress, enemies will gain more health and move faster.
21
22# Config
23
24* `X`: Board width (integer)
25* `Y`: Board height (integer)
26* `SEED`: PRNG seed (integer)
27* `DELAY`: The delay (in milliseconds) between game ticks (integer)
28* `PATH_BENDS`: The number of bends in the path (integer)
29* `ATTACK_ANIMATION_DELAY`: The delay (ms) to animate attacks (integer)
30* `MAX_ENEMIES`: The maximum number of enemies in a round (integer)
31* `MAX_TURRETS`: The maximum number of turrets allowed on the map (integer)
32* `STARTING_CASH`: Amount of cash at the start of the game (integer)
33* `STARTING_LIVES`: Amount of lives at the start of the game (integer)
34* `STARTING_ROUND`: The round at which the game starts (integer)
35