Love cutting rectangle
- ShadowPenguins
- Prole
- Posts: 14
- Joined: Thu Sep 21, 2017 5:50 am
Love cutting rectangle
So whenever i try to do hello world or a rectangle love cuts part of it off how do i fix it?
Current Projects, Insomnia and The Wolf's Spiral
Insomnia Progress and files if you want to help can be found here https://github.com/TheShadowPenguin/Insomnia
~Silver~
Insomnia Progress and files if you want to help can be found here https://github.com/TheShadowPenguin/Insomnia
~Silver~
Re: Love cutting rectangle
You could start by providing a .love file or some code, so that we may see if you're doing something wrong.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Re: Love cutting rectangle
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.
By default. Love doesn't cut off anything within the screen unless you tell it to.
- ShadowPenguins
- Prole
- Posts: 14
- Joined: Thu Sep 21, 2017 5:50 am
Re: Love cutting rectangle
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
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
Current Projects, Insomnia and The Wolf's Spiral
Insomnia Progress and files if you want to help can be found here https://github.com/TheShadowPenguin/Insomnia
~Silver~
Insomnia Progress and files if you want to help can be found here https://github.com/TheShadowPenguin/Insomnia
~Silver~
- Sir_Silver
- Party member
- Posts: 286
- Joined: Mon Aug 22, 2016 2:25 pm
- Contact:
Re: Love cutting rectangle
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).
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
From what I can interpret, ShadowPenguins' problem is this:
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.
Code: Select all
function love.draw()
love.graphics.rectangle('fill', 10, 10, 100, 100)
end
But, of course, that's reading too much in-between the lines.
Who is online
Users browsing this forum: Bing [Bot] and 3 guests