🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@excaliburjs/plugin-spritefusion

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@excaliburjs/plugin-spritefusion

Excalibur Sprite Fusion Plugin

latest
Source
npmnpm
Version
0.31.0
Version published
Weekly downloads
0
-100%
Maintainers
3
Weekly downloads
 
Created
Source

Excalibur SpriteFusion Tile Map Plugin

This plugin supports the latest SpriteFusion data structure!

Sprite Fusion is a new lightweight Tilemap editor, check it out here https://www.spritefusion.com/editor

Export your map as JSON, IMPORTANT Do not use the "save" option in the current version of the plugin.

json-export

Installation

npm install @excaliburjs/plugin-spritefusion

Create your resource, load it, then add it to your scene!

const game = new ex.Engine({...});

const spriteFusionMap = new SpriteFusionResource({
    mapPath: './map/map.json',
    spritesheetPath: './map/spritesheet.png'
});

const loader = new ex.Loader([spriteFusionMap]);

game.start(loader).then(() => {
    spriteFusionMap.addToScene(game.currentScene);
});

Sprite Fusion Plugin

Example using custom factories with tile id's.

const spriteFusionMap = new SpriteFusionResource({
    mapPath: './map/map.json',
    spritesheetPath: './map/spritesheet.png',
    entityTileIdFactories: {
        0 : (props) => {
            return new ex.Actor({
                pos: props.worldPos,
                width: 16,
                height: 16,
                color: ex.Color.Red,
                z: props.layer.order + 1
            });
        }
    }
});

Specify the tile id according to this scheme, you can use this to select special tiles to run the factory.

tileid

entity factory

Documentation

For more information visit https://excaliburjs.com

FAQs

Package last updated on 29 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts