Giter Site home page Giter Site logo

bigasdev / webpack-aseprite Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 18 KB

Tool to help with rendering sprites from aseprite on webpack

License: GNU General Public License v3.0

JavaScript 100.00%
sprite-atlas aseprite aseprite-export pixelart sprite-parser sprite-sheet sprites spritesheet webdevelopment webpack

webpack-aseprite's Introduction

๐Ÿ“š About

๐Ÿš€ Lightweight and easy to use importer to work on webpack using aseprite assets.

๐Ÿ’พ Installation

Simply add the asset file to your source folder and import it on your webpack index.

๐Ÿ”Ž Features

  • Its just one file
  • Can load and handle multiple atlas files
  • Edit all your sprites names directly on aseprite

๐Ÿ’ป Usage

Use the export feature on aseprite (Ctrl+E) to export your atlas.png with the json in your project folder

//Import the assets.js

import { asepriteConfig } from './assets.js';

//Import the files in your index

import atlasImg from '../assets/img/testAtlas.png';
import atlasJson from '../assets/atlas-sources/atlas.json';

//Then simply use the asepriteConfig to initialize all your atlas data

asepriteConfig([atlasImg], [atlasJson]);

//You can then start calling the createAsset function in any script you want

import { createAsset } from './assets';

createAsset({atlas:"Atlas Number", name:"Sprite Name", size:"Sprite Size", x:"X Position", y:"Y Position"}, "Your canvas context", Callback(Info, Image));

๐Ÿ“Œ License

This project is under the GPL-3.0 License. Take a look at the LICENSE file for more details.

webpack-aseprite's People

Contributors

bigasdev avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.