A classic tower defense game, currently it's a very minimal game. It works best on mobile environments or touch enabled emulation environments (e.g. Google Chrome developer mode supports this). A live demo can be found here: live demo.
-
Install Node.js and npm
If you don't have Node.js installed, download and install it from the official Node.js website. This will also installnpm
(Node Package Manager), which is required for managing project dependencies. -
Clone the repository
Clone this project repository to your local machine using Git or download it directly as a ZIP file and extract it.git clone https://github.com/rednasn/HTML5-Tower-Defense.git cd HTML5-Tower-Defense``
-
Install dependencies
Usenpm
to install the necessary dependencies for the project:
npm install
-
Run the development server
This project uses Vite as the development server. Start the server using the following command:
npm run dev
-
Access the local server
Once the server is running, Vite will provide a local development URL. Typically, it will look like this:
http://localhost:5173/HTML5-Tower-Defense/
Open this URL in your web browser to view the project.
- Developing more projectiles, weapons, enemies and explosions.
- More levels
- Level designer
- Developing waves of enemies