Skip to content

Hyftar/css_clash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CssClash

A game where you clash with style!

Setup

  1. Clone the repository:
git clone https://github.com/yourusername/css_clash.git
cd css_clash
  1. Create a .envrc file with the following content:
use flake nix/.
  1. Create a .env file with the following content:
SECRET_KEY_BASE=[random_string]
DB_USER=postgres
DB_PASSWORD=postgres
DB_NAME=css_clash
DATABASE_URL=localhost
  1. Boot up the db using docker:
docker-compose up db -d
  1. Run setup command:
mix setup
  1. Start the server:
mix phx.server

Development Roadmap

Gameplay loop

  • HTML / CSS Live Editor (with document rendering)
  • Show current document diff with target (client-side)
  • Diff document and computer score (server-side)

Core features

  • Accounts (with score tracking)
  • Select between different targets
  • Per target first completion leaderboards
  • Target creation page

Extra Gameplay modes

  • 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)

Extra features

  • 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

About

A web-based competitive CSS game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published