All Projects β†’ hiulit β†’ aseprite-to-godot-variables

hiulit / aseprite-to-godot-variables

Licence: MIT License
A Lua script to create arrays of colors and indexes of those colors from an Aseprite sprite to be used in Godot.

Programming Languages

lua
6591 projects

Projects that are alternatives of or similar to aseprite-to-godot-variables

pixel-bird-jump
🐦 A small flappy-bird-like game demo by Godot engine
Stars: ✭ 13 (-31.58%)
Mutual labels:  pixels, godot-engine
purescript-colors
Convert, manipulate, analyze, blend, color scales, color schemes
Stars: ✭ 41 (+115.79%)
Mutual labels:  colors
godot card tools
Framework for making card-games in Godot
Stars: ✭ 30 (+57.89%)
Mutual labels:  godot-engine
glyph-palette.vim
🎨 An universal palette for Nerd Fonts
Stars: ✭ 84 (+342.11%)
Mutual labels:  colors
colors-convert
🦚 A simple colors library
Stars: ✭ 15 (-21.05%)
Mutual labels:  colors
MySQL Module
MySQL connector to Godot Engine.
Stars: ✭ 30 (+57.89%)
Mutual labels:  godot-engine
c-sharp-patterns
A repo to help C# developers understand some design patterns.
Stars: ✭ 32 (+68.42%)
Mutual labels:  patterns
Project-Uranium-Godot
A work in progress re-implementation of the game Pokemon Uranium in the Godot Engine.
Stars: ✭ 140 (+636.84%)
Mutual labels:  godot-engine
godot-engine.code-snapshot
A plugin for Godot Engine which will let you take beautified snapshots of your code within the Editor. Configure the frame as you like, with GDScript syntax already highlighted.
Stars: ✭ 32 (+68.42%)
Mutual labels:  godot-engine
pytest-arraydiff
pytest plugin to facilitate comparison of results to a pre-defined reference
Stars: ✭ 12 (-36.84%)
Mutual labels:  arrays
pi pico neopixel
Pi Pico library for NeoPixel led-strip written in MicroPython. Works with ws2812b (RGB) and sk6812 (RGBW).
Stars: ✭ 70 (+268.42%)
Mutual labels:  pixels
Godot-Plugin-Particles-Renderer
A Godot plugin to render particles into a sprite sheet
Stars: ✭ 32 (+68.42%)
Mutual labels:  godot-engine
react-patterns
react patterns examples
Stars: ✭ 39 (+105.26%)
Mutual labels:  patterns
godot-twicil
Godot TwiCIL – Godot Twitch Chat Interaction Layer
Stars: ✭ 57 (+200%)
Mutual labels:  godot-engine
ColorPicker
Customizable Color Picker control for WPF
Stars: ✭ 57 (+200%)
Mutual labels:  colors
dithering algorithms
Sample implementation for different common dithering algorithms
Stars: ✭ 43 (+126.32%)
Mutual labels:  colors
emberhunt
A mobile realtime bullet-hell 8-bit style MMORPG
Stars: ✭ 82 (+331.58%)
Mutual labels:  godot-engine
IRLSize
A library for determining the actual physical size of pixels on an iOS device.
Stars: ✭ 14 (-26.32%)
Mutual labels:  pixels
godot-unirest
Unirest in GDScript: Simplified, lightweight HTTP client library.
Stars: ✭ 32 (+68.42%)
Mutual labels:  godot-engine
front-end-resources
πŸ“šResources for front-end developer
Stars: ✭ 32 (+68.42%)
Mutual labels:  patterns

Aseprite to Godot variables

A Lua script to create arrays of colors and indices of those colors from an Aseprite sprite to be used in Godot.

Aseprite

A sprite in Aseprite.

Code

Output code from the script.

Prerequisites

  • Aseprite >= v1.2.10-beta3.
  • The Sprite Color Mode must be set to RGB Color.

πŸ› οΈ Installation

  • Go to File > Scripts > Open Scrtips Folder.
  • Copy aseprite_to_godot_variables.lua to that folder.

πŸš€ Usage

  • Go to File > Scripts > aseprite_to_godot_variables.
  • When you are asked "Do you want to run the following script?", click Run.
  • Then you'll get another dialog saying that the script wants to access to a file. Click Allow Write Access.
  • You'll get a final dialog informing you where the ouput file is saved.

By default, the output file is saved to Aseprite's scripts folder (where the script is installed), but you can create a new folder here and use the output_dir_name variable to save the output file to that folder. See Output directory name.

βš™οΈ Configurable variables

Output directory name

Name Type Description Default
output_dir_name string Add an output directory to organize the output files. ""

You can optionally add an output directory (only if you previously created it in Aseprite's scripts folder!) to better organize the output files from this script, so they don't mix with other Aseprite's scripts you might have.

Output file extension

Name Type Description Default
output_file_ext string The output file extension. .txt

Color indices array name

Name Type Description Default
color_indices_array_name string The name of the output variable for the color indices array. _sprite

Colors array name

Name Type Description Default
colors_array_name string The name of the output variable for the colors array. _colors

πŸ—’οΈ Changelog

See CHANGELOG.

πŸ‘€ Author

hiulit

🀝 Contributing

Feel free to:

πŸ™Œ Supporting this project

If you love this project or find it helpful, please consider supporting it through any size donations to help make it better ❀️.

Become a patron

Suppor me on Ko-Fi

Buy me a coffee

Donate Paypal

If you can't, consider sharing it with the world...

... or giving it a star ⭐️.

Thank you very much!

πŸ‘ Credits

Thanks to:

  • ruccho - For the Generate Normal Map script, which I used to learn how to get the pixels and its colors from a sprite.
  • AlΓ­cia Folgarona Ribot (@pingudroid) - For creating the sprite in the example.

πŸ“ Licenses

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].