https://github.com/tenpamk2/excalibur-examples
Excalibur.js examples.
https://github.com/tenpamk2/excalibur-examples
excaliburjs game javascript-game typescript
Last synced: about 1 month ago
JSON representation
Excalibur.js examples.
- Host: GitHub
- URL: https://github.com/tenpamk2/excalibur-examples
- Owner: tenpaMk2
- License: mit
- Created: 2022-03-26T11:50:31.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-15T04:11:56.000Z (almost 2 years ago)
- Last Synced: 2025-03-29T18:36:32.586Z (2 months ago)
- Topics: excaliburjs, game, javascript-game, typescript
- Language: TypeScript
- Homepage:
- Size: 4.4 MB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# excaliburjs-examples
This repository is collection of
[Excalibur.js](https://excaliburjs.com/)
examples.## Breaking Changes Since 2023-07-15đĽ
- The repository is now a monorepo.
- The build environment was changed from Parcel to Vite.## Get Startedđ
```shell
npm run {{foobar}}
```See the `scripts` section in the `package.json` about `{{foobar}}` .
## Debug By VSCodeđ
If you want to set the break point on the VSCode,
~~See the my~~
~~[template](https://github.com/tenpaMk2/excalibur-parcel2-vscode-debuggable-template)~~
~~repository.~~~~You need to copy `.vscode/launch.json` from my~~
~~[template](https://github.com/tenpaMk2/excalibur-parcel2-vscode-debuggable-template)~~
~~to each examples directory.~~
~~And open it by VSCode.~~Use the following `launch.json` .
```json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:5173",
"webRoot": "${workspaceFolder}/foobar-examples/foobar/"
}
]
}
```Change port number, `foobar-examples` , and `foobar` as appropriate.
You can confirm the port number by `npm run {{foobar}}` .## API Examplesđ
These examples are for testing Excalibur.js API.
### bounce

Example for `Physics` .
### click-reactions

Example for `Actions` .
Credits are as follows.
| item (description) | author | URL |
| :----------------: | :----- | :-------------------- |
| character graphics | ă´ă˝ă | |### detect-ground

Example for detecting ground in some patterns.
| item (description) | author | URL |
| :----------------: | :--------------------------- | :---------------------------------------------------------- |
| original idea | excalibur discussions (erik) | |### event
Example for custom events.
### inputs

Example for keyboard inputs.
See the sourcecode for controls.### mass-physics

Example for testing performance of `Physics` .
Credits are as follows.
| item (description) | author | URL |
| :----------------: | :-------- | :----------------------- |
| character graphics | kenney.nl | |### scene-change
Example for scene-change.
### scroll-and-score-text

Example for `ScreenElement` and `Camera` .
### slingshot

Demo for `Physics` .
Credits are as follows.
| item (description) | author | URL |
| :----------------: | :-------- | :----------------------- |
| box graphics | kenney.nl | |### sound
Example for `Sound` .
Credits are as follows.
| item (description) | author | URL |
| :----------------: | :-------- | :----------------------- |
| sound | kenney.nl | |### sprite-animations

Example for `Animations` .
Credits are as follows.
| item (description) | author | URL |
| :----------------: | :----- | :-------------------- |
| character graphics | ă´ă˝ă | |## Game Examplesđ
These examples are simple games.
### alpha-adjust

Just tap when you think the 2 images have same alphaâ
Credits are as follows.
| item (description) | author | URL |
| :----------------: | :------------- | :----------------------------------------------------- |
| mapchip graphics | ă´ă˝ă | |
| original examples | digitsensitive | |### asteroid

Shoot and break the asteroidsâ
| control | description |
| :----------------: | :--------------------- |
| tap center | shoot and move forward |
| tap the right side | turn right |
| tap the left side | turn left |Credits are as follows.
| item (description) | author | URL |
| :----------------: | :------------- | :----------------------------------------------------- |
| original examples | digitsensitive | |### bowman

Drag and drop to shoot the arrowâ
Credits are as follows.
| item (description) | author | URL |
| :-------------------: | :-------------- | :-------------------------------------------------------- |
| player graphic | sylvius fischer | |
| bow and arrow graphic | SCaydi | |
| enemy graphic | kenney.nl | |### breakout

Break the blocksâ
Move the mouse to move the bar.
Credits are as follows.
| item (description) | author | URL |
| :----------------: | :---------- | :--------------------------------------------- |
| original examples | excaliburjs | |### clocks

Tap when the hands of the clock face the next clockâ
Credits are as follows.
| item (description) | author | URL |
| :----------------: | :------------- | :----------------------------------------------------- |
| original examples | digitsensitive | |### doll-stamper

This is not game but application.
Adding đ to your uploaded cute dolls photographsâIt is also an example of dynamic image uploading.
### dungeon-generator

Random dungeon generator for rogue-like gamesâ
| item (description) | author | URL |
| :----------------: | :-------- | :-------------------------------------- |
| mapchip graphics | kenney.nl | |### lockon

Tap and drag the enemy, release, and then fire a missileâ
### samegame

Tap the same gems and try to clear all gemsâ
Credits are as follows.
| item (description) | author | URL |
| :----------------: | :-------------- | :------------------------------------------ |
| gem graphics | Clint Bellanger | |### snake

Gather food and avoid walls and your own bodyâ
You can control the snake by tapping on edge of screen.
Credits are as follows.
| item (description) | author | URL |
| :----------------: | :-------- | :----------------------- |
| graphics | kenney.nl | |### tilemap

Example of roguelike game.
It is also an example of `Tilemap` .You can control the player by tapping on edge of screen.
Credits are as follows.
| item (description) | author | URL |
| :----------------: | :-------- | :----------------------- |
| mapchip graphics | kenney.nl | |
| character graphics | kenney.nl | |