Jump to content

How to use svg by spritesheets ?


KID
 Share

Recommended Posts

Hello guys, I seem the demo at lab, about the difference of set width, height, scale between this.load.svg and sprite.

The demo is https://labs.phaser.io/view.html?src=src\loader\svg\load svg with fixed size.js

I understand use `this.load.svg('cartman2', 'assets/svg/cartman.svg', { width: 416, height: 388 })` can get a more clearness image, But I have a question, is there a way to let me load a svg on spritesheets and set the width/height/scale like the `this.load.svg` ? I can't find any solutions at document about `this.load.spritesheet`.

And... I want know what is the best practice to adapt the retina's screen of macOS ?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...