How to Create a sprite Image

后端 未结 4 1567
刺人心
刺人心 2021-01-05 10:09

I am trying to create a very basic sprite image.

First off i have an existing image (Width=100px, Height=100px).

I will be looping through this image betwee

4条回答
  •  情书的邮戳
    2021-01-05 11:04

    declare a variable at 3000, if you put in a picture of width 250 take that away from the variable, keep doing this, this also allows you to decide if there is enough space left on that line for your next picture by seeing if the number left is larger than the width of the next picture. every time you start on a new line set the variable back to 3k and start again. solved

提交回复
热议问题