A game where you clash with style!
- Clone the repository:
git clone https://github.com/yourusername/css_clash.git
cd css_clash- Create a
.envrcfile with the following content:
use flake nix/.- Create a
.envfile with the following content:
SECRET_KEY_BASE=[random_string]
DB_USER=postgres
DB_PASSWORD=postgres
DB_NAME=css_clash
DATABASE_URL=localhost- Boot up the db using docker:
docker-compose up db -d- Run setup command:
mix setup- Start the server:
mix phx.server- HTML / CSS Live Editor (with document rendering)
- Show current document diff with target (client-side)
- Diff document and computer score (server-side)
- Accounts (with score tracking)
- Select between different targets
- Per target first completion leaderboards
- Target creation page
- Duel -> FFA up to 8 players (with lobby)
- Blind mode (only one submit, no feedback, only original image analysis)
- battles royale mode where players race against each other to recreate the image
- 3v3 battles where players relay the previous document
- Matchmaking (merge lobbies)
- Users online count
- User experience and levels
- Achievements
- Per target fastest completion leaderboards
- Original image analysis (with pixel snapping)
- Syntax highlighting for editor
- Tailwind CSS client-side integration
- Full editor tools (intellisense, undo, redo, multi-cursor, delete line, shift line, etc.)
- Procedural target generation (with customisable parameters)
- Submit target for review and gain exp
- Weekly targets