guidebook/docs/custom-doodads/edit-external.md

28 lines
877 B
Markdown
Raw Normal View History

2021-09-04 05:49:59 +00:00
# External Editors for Doodads
2020-11-21 03:09:16 +00:00
Doodad sprites can be drawn using any image editor and saved as .png files
(with transparency). You can then create a doodad file from your series of
PNG images.
Most of the built-in doodads that ship with the game were created in this way.
## Create a Doodad from Images
Save each frame of your doodad as a separate PNG image and then use the `doodad`
command-line tool to convert them to a `.doodad` file.
```bash
# Usage:
doodad convert [options] <inputs.png> <output.doodad>
# Example:
doodad convert door-closed.png door-open.png door.doodad
```
2021-09-04 05:49:59 +00:00
The `doodad` tool can also be used to attach a JavaScript to your doodad,
modify its tags, and other things. See [`doodad` tool](../doodad-tool.md).
## Example Doodads
There are some fully working example doodads you can check out at
<https://code.sketchymaze.com/declassified/doodads>.