This repo is ideal for new ExcaliburJS projects using TypeScript and Vite.
Read a full ExcaliburJS Project Template Medium article about this repo.
ExcaliburJS
folder in the command line:npm install
to download and install dependencies.npm run client-build
to build the project.npm run client-start
to launch a server to localhost. This serves the development build and hot-reloads on changes within the src.ExcaliburJS
folder in Visual Studio Code or your favorite editorExcaliburJS
folder, you may need to repeat step 4.You can run these terminal commands during your workflows.
Command | Description | Builds? | Runs? | Tests? | Watches? |
---|---|---|---|---|---|
npm install |
Required: Download and install dependencies | ❌ | ❌ | ❌ | ❌ |
npm run client-build |
Required: Build app | ✅ | ❌ | ❌ | ❌ |
npm run client-start |
Required: Run app on localhost | ❌ | ✅ | ❌ | ✅ |
npm run tests-start |
Optional: Run unit tests | ❌ | ❌ | ✅ | ❌ |
npm run tests-start-watch |
Optional: Run unit tests in watch mode | ❌ | ❌ | ✅ | ✅ |
This repo demonstrates best practices for combining HTML5 technologies for game development in the browser using ExcaliburJS. Use cases for this repo include light-weight prototypes, educational projects, and browser-based game development.
Documentation
ReadMe.md
- The primary documentation for this repoExcaliburJS/documentation/
- More info specific to the projectConfiguration
Game Engine
- ExcaliburJS is a 2D game engine for TypeScriptStructure
ExcaliburJS
- Main project folderExcaliburJS/index.html
- Main HTML5 fileExcaliburJS/src/assets/
- User-facing game assetsExcaliburJS/src/scripts/tests/
- Add unit testing files hereExcaliburJS/src/scripts/client/index.ts
- Main TS file for game logic. Do your work here :)Dependencies
ExcaliburJS/package.json
- Lists project dependencies and scripts. When you run npm install
it installs whatever is hereName | Description | Runtime? | Edit Time? |
---|---|---|---|
Visual Studio Code | Source code editor | ❌ | ✅ |
ESLint extension | VS Code extension for linting JavaScript/TS | ❌ | ✅ |
Error Lens extension | Highlights errors and warnings in VS Code | ❌ | ✅ |
Name | Description | Runtime? | Edit Time? |
---|---|---|---|
ExcaliburJS | ExcaliburJS: 2D game engine | ✅ | ❌ |
Vite | Bundles TypeScript files | ❌ | ✅ |
Typescript | TypeScript compiler | ❌ | ✅ |
Eslint | Makes your TypeScript pretty | ❌ | ✅ |
Vitest | Unit testing for TypeScript | ❌ | ✅ |
Here are some resources which may be helpful with HTML5 game projects using ExcaliburJS:
Created By
Contact
License
Provided as-is under MIT License | Copyright © 2024 Rivello Multimedia Consulting, LLC