Love cutting rectangle

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
ShadowPenguins
Prole
Posts: 14
Joined: Thu Sep 21, 2017 5:50 am

Love cutting rectangle

Post by ShadowPenguins »

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~
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Love cutting rectangle

Post by Nixola »

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
User avatar
erasio
Party member
Posts: 118
Joined: Wed Mar 15, 2017 8:52 am
Location: Germany

Re: Love cutting rectangle

Post 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.
User avatar
ShadowPenguins
Prole
Posts: 14
Joined: Thu Sep 21, 2017 5:50 am

Re: Love cutting rectangle

Post 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
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~
grump
Party member
Posts: 947
Joined: Sat Jul 22, 2017 7:43 pm

Re: Love cutting rectangle

Post by grump »

a) please describe your problem in more words
b) post the code that shows the actual problem
c) Image
User avatar
Sir_Silver
Party member
Posts: 286
Joined: Mon Aug 22, 2016 2:25 pm
Contact:

Re: Love cutting rectangle

Post 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).
sphyrth
Party member
Posts: 260
Joined: Mon Jul 07, 2014 11:04 am
Contact:

Re: Love cutting rectangle

Post 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.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 55 guests