S2D CLI
The S2D CLI tool for creating and managing S2D projects. Generate new Scala Native 2D game projects with automatic library setup and cross-platform configuration.
🔗 Overview
S2D CLI is a command-line tool that simplifies the creation of new S2D (Scala 2D) projects. It automatically handles:
- Project template generation
- Native library dependencies (SDL2, GLEW, STB)
- Cross-platform build configuration
- Build system setup (sbt or scala-cli)
🔗 Features
- Project Generation - Create new S2D projects with a single command
- Build System Support - Choose between sbt and scala-cli
- Automatic Library Setup - Downloads and configures SDL2, GLEW, and STB libraries
- Cross-Platform - Windows support with automatic DLL copying, Unix/Linux/macOS with manual setup guidance
- Template Code - Includes working S2D application template
- Version Management - Automatically fetches latest S2D library versions
🔗 Quick Start
Generate a new S2D project:
s2d --generate
The tool will prompt you for:
- Project name
- Build system preference (scala-cli or sbt)
- Project location
For detailed installation instructions and advanced usage, see the Getting Started guide.