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.
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.
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.
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:
-
Dark Blast, https://xyezawr.itch.io/free-pixel-effects-pack8
-
Ice Spike, https://pimen.itch.io/ice-spell-effect-01
-
Ice Explosion, https://tiopalada.itch.io/spellbook-2d-v1
-
Time Slow, https://pipoya.itch.io/pipoya-free-vfx-time-magic
Music:
-
Main menu, https://pixabay.com/music/horror-scene-walk-alone-dark-cinematic-music-horror-music-153445/
-
Game, https://pixabay.com/music/beautiful-plays-inspiring-cinematic-ambient-116199/
-
Game Over, https://pixabay.com/music/modern-classical-lonestar-136900/
-
Install Node.js (if not done yet): download and install Node.js from the official website following the installation instructions for your operating system.
-
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
- Navigate into the downloaded repository folder:
$ cd RandomTower
- Install dependencies by running the following command in your terminal:
$ npm install
- Start the development server: type the following command in order to run the project locally:
$ npm run dev
- Navigate to Vite's default server port in your browser


