andrewrk / andrewrk/rucksack

support animations

Ouverte
#20 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
C
Étoiles
31
Forks
7
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

an animation would be a list of images within a texture. I'm thinking something like this:

``` js
...
animationDefaults: {
delay: 0.05,
loop: false,
anchor: "center",
},
textures: {
texture1Name: {
animationDefaults: {
delay: 0.05,
loop: false,
anchor: "center",
},
animations: {
animation1Name: {
frames: "img/walking-*.png",
// or, alternately:
frames: [
"img/walking-0.png",
"img/walking-1.png",
"img/walking-2.png",
],
delay: 0.05,
loop: false,
anchor: "center",
}
}
}
}
...
```

When you read a texture, it would load all this animation metadata. Images would be added to the texture with the animation name + '_' + frame number.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.