Tileset for HTML5 canvas game

后端 未结 3 598
遥遥无期
遥遥无期 2021-02-10 11:34

I\'m trying to make a game in HTML5 canvas, but instead of uploading a ton of images I want to just upload one image that has all of the tiles on it. The problem is, I don\'t kn

3条回答
  •  别跟我提以往
    2021-02-10 12:07

    Take a look at SpriteJS https://github.com/batiste/sprite.js/blob/master/sprite.js there the work is based on offset at the moment of drawing the sprite from a single picture.

提交回复
热议问题