can someone help me with a piece of code?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
hellfiresage
Prole
Posts: 49
Joined: Tue Feb 10, 2009 6:07 pm

can someone help me with a piece of code?

Post by hellfiresage »

ok i looked all around the reference manual online and off and couldn't find how to cut peices of the window out of the programe such as when im making a splash screen i dont want it to have the minimize, maximize, or exit button attached can someone help me please?
i think you use siccors or something, right?
User avatar
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

Re: manipulating window decoration

Post by qubodup »

It is not possible to manipulate window decoration through LOVE I think.
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
User avatar
zapwow
Prole
Posts: 48
Joined: Fri Oct 24, 2008 11:37 pm

Re: can someone help me with a piece of code?

Post by zapwow »

Do you mean you want to run the game in fullscreen? Add fullscreen=true to the game's config file
hellfiresage
Prole
Posts: 49
Joined: Tue Feb 10, 2009 6:07 pm

Re: can someone help me with a piece of code?

Post by hellfiresage »

no, i mean i just want the picture to be on the computer then have it load a love game screen. read the sciccors thing in the reference manual.
User avatar
Kaze
Party member
Posts: 189
Joined: Sat Jul 19, 2008 4:39 pm
Location: Dublin, Ireland

Re: can someone help me with a piece of code?

Post by Kaze »

That's not possible with LOVE.
User avatar
zapwow
Prole
Posts: 48
Joined: Fri Oct 24, 2008 11:37 pm

Re: can someone help me with a piece of code?

Post by zapwow »

I suppose if you really want to use scissors, just grab a pair and scrape the pixels that you don't want off your monitor.
User avatar
Skofo
Party member
Posts: 146
Joined: Mon Dec 22, 2008 10:55 pm

Re: can someone help me with a piece of code?

Post by Skofo »

Only possible with DirectX on Windows, if I'm not mistaken. Sorry bro.

The best thing you can do is write some text on top saying "DO NOT LOOK AT THIS YET" and make an arrow point up during the splash screen. Or just don't worry about it at all. ;)

Scissor is used for when you're drawing onto the screen, but you want it to only draw on a certain part of the screen so it doesn't draw anything anywhere else. Can't think of a real situation where that may be useful, but hey, it is what it is. :)
Working on: Viator
Need a 64-bit Debian package for LÖVE? Here it is!
User avatar
Merkoth
Party member
Posts: 186
Joined: Mon Feb 04, 2008 11:43 pm
Location: Buenos Aires, Argentina

Re: can someone help me with a piece of code?

Post by Merkoth »

I can: Split screen multiplayer, games featuring HUDs maybe...
User avatar
osgeld
Party member
Posts: 303
Joined: Sun Nov 23, 2008 10:13 pm

Re: can someone help me with a piece of code?

Post by osgeld »

[story]
i had ported the brain damage simple raycaster over to love and was trying to figure out how to do texture maps, i got the Y scaling working fine, the x scaling i still havent gotten right, but originally when i scaled out the x the image would naturally get larger, totally borking the entire effect, so for each sliver of the raycast i set the scissors, drew the rectangle, cleared the scissors and proceeded on to the next sliver, which worked great for keeping a slice of a scaled image within a set box ... but i havent gotten the scaling right ... still and its been about 3 weeks since i even messed with it

point is i was doing several hundred scissor cuts per draw loop, so its not just to block off 1 part of the screen
[/story]
hellfiresage
Prole
Posts: 49
Joined: Tue Feb 10, 2009 6:07 pm

Re: can someone help me with a piece of code?

Post by hellfiresage »

thanx guys now i understand
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 217 guests