Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wiki PR for AVIF support (10391) #41

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion wiki/SpriteData.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sprite <name>
sprite <name>
```

The name of the sprite should be a path relative to the **images** folder, and not including frame numbers, [blending mode specifiers](BlendingModes), or the ".png" or ".jpg" extension. For example, the "blaster impact" effect is an animation with four frames:
The name of the sprite should be a path relative to the **images** folder, and not including frame numbers, [blending mode specifiers](BlendingModes), or the file extension. For example, the "blaster impact" effect is an animation with four frames:

* images/effect/blaster impact+0.png
* images/effect/blaster impact+1.png
Expand All @@ -37,6 +37,8 @@ The name of the sprite should be a path relative to the **images** folder, and n

The `<name>` for this sprite is "effect/blaster impact". The `+` in the file names specifies that the images should use [additive blending](BlendingModes#alpha-blending-vs-additive-blending), and the numbers after the `+` are the frame numbers for the animation.

The current file formats supported for simple images are `.png` and `.jpg`/`.jpeg` / `.jpe`. You can also use `.avif`/`.avifs` files to store all frames of an animation. In this case, you should only have one file matching the sprite name.

## Scale

```html
Expand Down