Welcome to TypeSpriteJS. It's an open source game engine mostly written in Typescript. It's under development and may change a lot or not at all. See Details.
Quick Start
To create a TypeSpriteJS game you need to install NodeJS. Once done use the package manager you like most:
bash
npm create typesprite@latestbash
yarn create typespritebash
bunx create-typesprite@latestFollowing the prompts you get a subdirectory that looks like this:
├── assets
│ ├── Rect.ts
│ ├── RectSinusControl.ts
│ ├── RectUserControl.ts
│ └── world.edf
├── package.json
├── tsconfig.json
└── ...After that:
bash
# in project dir
npm install
npm run devbash
# in project dir
yarn
yarn devbash
# in project dir
bun install
bun run devThe assets folder is a special folder which contains your game components (*.ts), your assets (*.png, *.wav, etc.) and your world description files (*.edf). Sub-directories underneath assets will work too.
Exploring the example should give you the hints you need to have fun with the engine. To learn the details read on and consider joinin the Discord.
Syntax Highlight for *.edf files
EDF in Visual Studio Code
- Install ini-for-vscode (or similar if not available)
CMD + SHIFT + Pand select Preferences: Open User Settings (JSON)- Add the lines below:
json
"files.associations": {
"*.edf": "ini",
}