Skip to content

Repository files navigation

RandomTower

A tower survival game built with TypeScript, Preact, and Phaser.JS. Deployed here: https://georgeharland.github.io/RandomTower/

Open to contributions and opinions! I'll add more issues over time.

Description

Enemies spawn in increasing numbers. Slower enemies that can take more hits spawn after a while.

Enemies are destroyed by the player's circle weapon (arrow keys) or the tower's automatic arrow or powerup attacks.

There are currently 9 powerups in the game. Press Q, W, E after getting some gold to try them out!

Powerups get more expensive each purchase, by 1 gold + 1 for every 30 seconds played.

Gallery

image

image

image

Controls

Enter/Space - Start the game

Q W E - Buy items

Up Down Left Right - Move the circle weapon

Mouse/touch - Move the circle towards the cursor

U - Cheat command for 1000 gold

K - Cheat command to increase enemy spawn speed by 1 per second.

External Assets

All assets were free to use, but please check out the designers.

Game Background - https://edermunizz.itch.io/free-pixel-art-forest

Game Over Background - https://lornn.itch.io/backgrounds-dungeons-ruins-caves

Tower assets - https://foozlecc.itch.io/spire-tower-pack-2

Spell icons - https://mythril-age.itch.io/mythril-age-spell-icons-v1

Spell effects:

Music:

How to open the project on your computer:

  1. Install Node.js (if not done yet): download and install Node.js from the official website following the installation instructions for your operating system.

  2. Clone the repository: navigate to the directory where you want to clone the repository and run the following command in your terminal:

$ git clone https://github.com/GeorgeHarland/RandomTower.git
  1. Navigate into the downloaded repository folder:
$ cd RandomTower
  1. Install dependencies by running the following command in your terminal:
$ npm install
  1. Start the development server: type the following command in order to run the project locally:
$ npm run dev
  1. Navigate to Vite's default server port in your browser

About

Tower Survival game with Preact, TypeScript, Phaser.js.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages