So I have a gui setup and it is not the width of my game window so I wanted to know using this image:
Could I tranform the gui boxes using love to fit my 512 by 512 game window?
Transforming an Image
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Transforming an Image
You would actually need to scale it to fit the window.
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
Re: Transforming an Image
If you scale it, the line width will increase, too. And you cannot have arbitrary height/width rations.
What you need is a tile-approach. In the spritesheet you have tiles for the four corners and tiles for the upper, lower, left and right boundary. Put the corners into the window corners and put multiple copies of the boundaries to the window boundaries. You need Quads and SpriteBatches for that.
What you need is a tile-approach. In the spritesheet you have tiles for the four corners and tiles for the upper, lower, left and right boundary. Put the corners into the window corners and put multiple copies of the boundaries to the window boundaries. You need Quads and SpriteBatches for that.
Check out my blog on gamedev
Who is online
Users browsing this forum: No registered users and 3 guests