Link for plugins: https://docs.rpgjs.dev/plugins/chat.html
Make/download spritesheet for weapons and then load it as preset like in this examples: https://github.com/RSamaium/RPG-JS/blob/v4/packages/sample/src/modules/main/client/characters/characters.ts
const { RMSpritesheet } = Presets
@Spritesheet({
...RMSpritesheet(3, 4)
})
export default class Characters { }
In same folder with spritesheet make class with @Spritesheet decorator:
@Spritesheet({
images: {
light: require('./light.png'),
shield: require('./kite_blue_blue.png'),
jedi: require('./jedi.png')
},
width: 832,
height: 1344,
framesWidth: 13,
framesHeight: 21,
textures: {
[Animation.Stand]: {}
}
export default class NPC { }