Wizard Masters is a multiplayer battle arena game where players control wizards with different elemental powers. Compete against other players in fast-paced magical combat, mastering spells and tactics to become the ultimate wizard.
Here is my blog post about the journey: https://ertu.dev/posts/i-made-an-online-shooter-game-in-lisp
The project consists of two main components:
- Client: A ClojureScript frontend application using Shadow-CLJS and BabylonJS
- Backend: A Clojure server using Leiningen, Firebase, and Redis (optional)
Before running the project, ensure you have the following installed:
- Node.js and NPM
- Leiningen (required for running the backend)
- Java Development Kit (JDK) (version 17 or newer recommended)
- Clone the repository
- Install dependencies:
npm install
- Start the development server:
This will compile the ClojureScript code and start a development server.
npm run watch
-
Navigate to the backend directory:
cd backend
-
Firebase Configuration:
- Place your Firebase credentials (
firestore.json
) in theresources/keys
folder - The file should contain your Firebase service account information
- Place your Firebase credentials (
-
Redis Configuration (Optional):
- Update the Redis URI in
backend/src/clj/enion_backend/redis.clj
- Look for the
my-conn-spec-1
definition and replace[YOUR-REDIS-URI]
with your Redis URI
- Update the Redis URI in
-
Start the backend server:
lein run
If you don't want to run the backend locally, you can connect the client to production servers by modifying the network configuration:
- Open
src/main/scene/network.cljs
- Update the
get-api-url
andget-ws-url
functions:- Modify the conditions to always return the production URLs instead of the local development ones
- For example, set
config/dev?
tofalse
or directly return the production URL
- The client uses Shadow-CLJS for ClojureScript compilation
- The backend uses Leiningen for dependency management and running the server
- Both components have hot-reloading capabilities for rapid development
Copyright (c) 2025 Wizard Masters
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
© 2025 Wizard Masters. All rights reserved.