Orientation de la sprite
L’image représentant ton personnage a peut-être une direction. Ce hack te permetttra d’afficher ton personnage dans la diretion vers la quelle il se déplace.
modifier le joueur
Section intitulée « modifier le joueur »config.js // player'#': () => [spriteFacing(),sprite('bean'),platformerController(),jumpController(),sleep(),alive(),opacity(),scale(),health(1, 4),area(),body(),respawn(),falling(),rotate(),pos(0, -20),anchor('center'),'player',],
Paramètres
Section intitulée « Paramètres »spriteFacing()
exampleconfig.js
spriteFacing({ reversedX: false, reversedY: false, facingX: true, facingY: true}),