Page 1 of 1

Love cutting rectangle

Posted: Thu Sep 21, 2017 5:55 am
by ShadowPenguins
So whenever i try to do hello world or a rectangle love cuts part of it off how do i fix it?

Re: Love cutting rectangle

Posted: Thu Sep 21, 2017 7:48 am
by Nixola
You could start by providing a .love file or some code, so that we may see if you're doing something wrong.

Re: Love cutting rectangle

Posted: Thu Sep 21, 2017 10:29 am
by erasio
Like Nixola said. You should provide some code that does this.

By default. Love doesn't cut off anything within the screen unless you tell it to.

Re: Love cutting rectangle

Posted: Thu Sep 21, 2017 9:40 pm
by ShadowPenguins
function love.load()

end

function love.draw()
love.graphics.rectangle("fill", 10, 10, 100, 100)
end

the dude has space on the top and mine doesn't have any space and is getting cut off when i do hello world i cant see it

Re: Love cutting rectangle

Posted: Thu Sep 21, 2017 9:47 pm
by grump
a) please describe your problem in more words
b) post the code that shows the actual problem
c) Image

Re: Love cutting rectangle

Posted: Thu Sep 21, 2017 9:56 pm
by Sir_Silver
If you are having trouble sharing your code, making a .love file is very easy! You just need to zip up all of your games files (with the main.lua being the root of the zip), and then change the extension from .zip to .love!

Then, if you upload it here, we can actually see your game and have a very good idea of why you might be having this issue.

As it stands, three people have already tried to help you, but they can't because you're withholding information (the code that is actually relevant to the problem you're having).

Re: Love cutting rectangle

Posted: Fri Sep 22, 2017 1:47 am
by sphyrth
From what I can interpret, ShadowPenguins' problem is this:

Code: Select all

function love.draw()
   love.graphics.rectangle('fill', 10, 10, 100, 100)
end
It should print the rectangle 10 y-pixels down, but it seems to print it 0 y-pixels down. So, when I go love.graphics.print('Hello World'), the text doesn't show.

But, of course, that's reading too much in-between the lines.