Open source game written with Phaser JS where you need to build towers to kill the monsters they will try to destroy your castle.
Warning
The game is not finished yet, but you can play it here
The project is written with Phaser JS and Vite. To run the project locally, follow the steps below:
- Clone the repository
- Navigate to the project directory
- Run
npm installto install the dependencies - Run
npm run devto start the development server
The project is licensed under the MIT License
If you a container engine, do these commands inside of a container.
npm inpm run devNavigate to http://localhost:5173/tower-defense/ to see your documentation if you run project locally. For containers, visit http://localhost:3000/tower-defense/.
If you use a container engine like 🦦 Podman or 🐳 Docker, here are the steps that you can make:
To build an image, navigate to the root of the project and run this command for Docker:
docker compose buildFor Podman, run this:
podman-compose buildTo run a container, navigate to the root of the project and run this command for Docker:
docker compose up -dFor Podman, run this:
podman-compose up -dYou can visit http://localhost:3000/tower-defense/ to see the game running in container.
To copy node_modules directory from the container to your local machine, run this command for Docker:
docker cp ago-docs:/app/node_modules .For Podman, run this:
podman cp ago-docs:/app/node_modules .Note
node_modules is excluded from using volume in compose.yml file, that's why you need to copy it manually. It's done to prevent your local modules to be copied to Linux container, since it can create incompatibility issues between operating systems if you don't use Linux.
To enter inside of the container, run this command for Docker:
docker compose exec app shFor Podman, run this:
podman-compose exec app shYou'll be able to run NPM commands inside of the container.
Run this for Docker:
docker compose downFor Podman, run this:
podman-compose down