"Questions that don't deserve their own thread" thread

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.
Locked
User avatar
unixfreak
Citizen
Posts: 82
Joined: Thu Oct 15, 2015 6:25 am
Location: Bristol, UK
Contact:

Re: "Questions that don't deserve their own thread" thread

Post by unixfreak »

undef wrote:Use [wiki]Font:getHeight[/wiki]*#wrappedText.
wrappedText ist the second return value of Font:getWrap.
Thanks for the fast reply, that works perfectly, surprised i overlooked that one. Cheers :cool:
Substance12
Prole
Posts: 19
Joined: Fri Dec 11, 2015 7:01 pm

Re: "Questions that don't deserve their own thread" thread

Post by Substance12 »

How do I make it so I can keep my game pixel-perfect scaled 2x at any resolutions?

I've tried with Canvases and HUMP.camera, and it can draw, but I can't manage to change the size of the canvas any higher than the resolution the window had when I created the canvas first. Even if I create the canvas again, it just gets stuck at 800x600 (default resolution of my game)

Any ideas?
User avatar
zorg
Party member
Posts: 3449
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: "Questions that don't deserve their own thread" thread

Post by zorg »

Canvases won't "resize", you need to create a new one to use in place of the old-sized one when resizing your game window... for your purposes, anyway.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Substance12
Prole
Posts: 19
Joined: Fri Dec 11, 2015 7:01 pm

Re: "Questions that don't deserve their own thread" thread

Post by Substance12 »

Well, that's the problem, the new canvas won't go any higher than 800x600, even if you resize the screen

EDIT: Nevermind, it was a completely unrelated issue. Already fixed it
User avatar
Someguynamedpie
Citizen
Posts: 71
Joined: Wed Mar 31, 2010 10:59 pm

Re: "Questions that don't deserve their own thread" thread

Post by Someguynamedpie »

Is there any way to get around the inability to draw a canvas onto itself without forking love?
User avatar
Someguynamedpie
Citizen
Posts: 71
Joined: Wed Mar 31, 2010 10:59 pm

Re: "Questions that don't deserve their own thread" thread

Post by Someguynamedpie »

The effort bar is coming close to being reached for self implementation of ping-pong rendering
User avatar
pgimeno
Party member
Posts: 3593
Joined: Sun Oct 18, 2015 2:58 pm

Re: "Questions that don't deserve their own thread" thread

Post by pgimeno »

Someguynamedpie wrote:Is there any way to get around the inability to draw a canvas onto itself without forking love?
LÖVE 0.9 allowed it. That caused one of my first questions in the forum. https://www.love2d.org/forums/viewtopic.php?f=4&t=81251

Basically, OpenGL doesn't support it.
User avatar
slime
Solid Snayke
Posts: 3144
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: "Questions that don't deserve their own thread" thread

Post by slime »

More specifically, physical GPU hardware doesn't support it.
User avatar
airstruck
Party member
Posts: 650
Joined: Thu Jun 04, 2015 7:11 pm
Location: Not being time thief.

Re: "Questions that don't deserve their own thread" thread

Post by airstruck »

How is world gravity measured in love.physics? Is it meters per second per second? Setting the world gravity to (0, 9.8) feels really floaty, what's going on?
User avatar
Someguynamedpie
Citizen
Posts: 71
Joined: Wed Mar 31, 2010 10:59 pm

Re: "Questions that don't deserve their own thread" thread

Post by Someguynamedpie »

slime wrote:More specifically, physical GPU hardware doesn't support it.
Not so much that as its just not defined in the spec IIRC creating undefined behavior.
Locked

Who is online

Users browsing this forum: Imnotaplayer and 2 guests