@babylonjsmarket/create-arcade
v1.0.1
Published
A CLI tool for scaffolding BabylonJS games using the Arcade ECS (Entity-Component-System) framework.
Downloads
114
Readme
@babylonjsmarket/create-arcade
A CLI tool for scaffolding BabylonJS games using the Arcade ECS (Entity-Component-System) framework.
Quick Start
npm create @babylonjsmarket/arcade@latestOr with specific package managers:
# yarn
yarn create @babylonjsmarket/arcade
# pnpm
pnpm create @babylonjsmarket/arcade
# bun
bun create @babylonjsmarket/arcadeUsage
Interactive Mode
Simply run the create command and follow the prompts:
npm create @babylonjsmarket/arcade@latestYou'll be asked to:
- Choose a project name
- Select a template (Basic, Third Person, or First Person)
- Confirm package name
Command Line Options
# Create with a specific template
npm create @babylonjsmarket/arcade@latest my-game --template ThirdPerson
# Create in current directory
npm create @babylonjsmarket/arcade@latest .
# Overwrite existing directory
npm create @babylonjsmarket/arcade@latest my-game --overwriteAvailable Templates
Basic ECS Template
A minimal setup with the ECS framework, perfect for starting from scratch.
Third Person Template
Pre-configured for third-person games with:
- Player entity with movement controls
- Camera follow system
- Basic environment setup
First Person Template
Pre-configured for first-person games with:
- FPS camera controller
- Movement system with WASD controls
- Collision detection setup
- Basic level geometry
Project Structure
After scaffolding, your project will have:
my-game/
├── src/
│ ├── main.ts # Entry point
│ ├── components/ # ECS Components
│ ├── systems/ # ECS Systems
│ └── entities/ # Game entities
├── public/ # Static assets
├── index.html # HTML entry
├── package.json # Dependencies
├── tsconfig.json # TypeScript config
├── vite.config.js # Vite config
└── README.md # Project docsWhat's Included
Every project comes with:
- @babylonjsmarket/arcade - The ECS framework
- BabylonJS - 3D engine and dependencies
- TypeScript - Type-safe development
- Vite - Fast build tool and dev server
- Pre-configured development environment
Development
After creating your project:
cd my-game
npm install
npm run devYour game will be available at http://localhost:3000
Building for Production
npm run buildThe built files will be in the dist/ directory.
Learn More
License
MIT © BabylonJS Market
