Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

javascript
communitycreator

How to install Excalibur.js

Kamran

Excalibur is a free, open-source game engine for making 2D games in HTML5 canvas. Excalibur is written in TypeScript. It aims to help folks who are new to game development by taking care of:

  • boilerplate engine code.
  • cross-platform targeting , etc.

Installation

Node package manager

You can install it via the node package manager (npm) in your existing javascript project directory:

npm install excalibur

This will add excalibur.js to your package.json as a dependency. Your folder structure would look like this:

Nuget package

With .NET SDK installed, run the following command:

Install-Package Excalibur

The project directory would look like this:

Yeoman generator

You can use Yeoman excalibur generator to get a ready to go game:

Yeoman generator helps in starting your projects by installing a plugin.

# Install Yeoman globally
npm install -g yo
# Install the Excalibur generator globally
npm install -g @excaliburjs/generator-excalibur
# Create the folder you want your game to be in
mkdir my-game
# Go into the folder
cd my-game
# Run the excalibur generator
yo @excaliburjs/excalibur

The Yeoman generator will automatically install the dependencies for the project.

RELATED TAGS

javascript
communitycreator

CONTRIBUTOR

Kamran
Copyright ©2022 Educative, Inc. All rights reserved
RELATED COURSES

View all Courses

Keep Exploring