Search found 219 matches

by darkfrei
Fri Jan 01, 2021 6:46 pm
Forum: Support and Development
Topic: How to get the covered area?
Replies: 4
Views: 4744

Re: How to get the covered area?

For example same code on windows10 (150% scale because of 4K)

(here is no covered area, size and pixel size are same)
by darkfrei
Fri Jan 01, 2021 6:38 pm
Forum: Support and Development
Topic: How to get the covered area?
Replies: 4
Views: 4744

How to get the covered area?

Hi all! I have this code: function love.draw() -- getPixelDimensions pixelwidth, pixelheight = love.graphics.getPixelDimensions( ) love.graphics.print('pixelwidth: '..pixelwidth..' pixelheight: '..pixelheight, 64, 64) -- getDimensions width, height = love.graphics.getDimensions( ) love.graphics.prin...
by darkfrei
Wed Dec 30, 2020 1:59 pm
Forum: Support and Development
Topic: Windows global scale
Replies: 4
Views: 3430

Re: Windows global scale

Pienkaito wrote: Wed Dec 30, 2020 12:54 pm Perhaps you could disable dpi scaling on love.conf?

Code: Select all

function love.conf(t)
	t.window.usedpiscale = false
end
Thanks for reply!

But it seems don't work as expected.
by darkfrei
Mon Dec 28, 2020 1:33 pm
Forum: Support and Development
Topic: Function that switch a boolean value
Replies: 6
Views: 3351

Re: Function that switch a boolean value

Another way: return the new value and set it to the test value test = true function love.draw() if test then love.graphics.print("Test true") else love.graphics.print("Test false") end end function love.mousepressed( x, y, button, istouch, presses ) if button==1 then test = switc...
by darkfrei
Mon Dec 28, 2020 1:28 pm
Forum: Support and Development
Topic: Function that switch a boolean value
Replies: 6
Views: 3351

Re: Function that switch a boolean value

Code: Select all

function love.mousepressed( x, y, button, istouch, presses )
	if button==1  then
		test = not test -- turns false to true and true to false
	end
end
by darkfrei
Sat Dec 26, 2020 2:39 pm
Forum: Support and Development
Topic: Windows global scale
Replies: 4
Views: 3430

Windows global scale

Hi all! I have problem. I have windows 10 and I have 150% scale for 4K monitor. https://www.dedoimedo.com/images/computers_years/2014_2/ideapad-changed-dpi.png How to set the Löve window scale back to 100%? For example I've made the window 800x600, but the screenshot will be taken with 1200x900. How...
by darkfrei
Wed Dec 23, 2020 3:34 pm
Forum: Games and Creations
Topic: Small ray tracing
Replies: 6
Views: 5941

Re: Small ray tracing

by darkfrei
Tue Dec 22, 2020 9:38 pm
Forum: Games and Creations
Topic: POCA - A puzzle game
Replies: 2
Views: 2249

Re: POCA - A puzzle game

How?
by darkfrei
Mon Dec 21, 2020 1:59 pm
Forum: Games and Creations
Topic: Isometric Tile based game (just a basic demo)
Replies: 3
Views: 3329

Re: Isometric Tile based game (just a basic demo)

Looks nice!
Is it possible to change the angle to 45°30°? It gives you exactly ~26.57° (tan(0.5)).
by darkfrei
Sat Dec 19, 2020 6:43 pm
Forum: Games and Creations
Topic: High UPS run.lua script
Replies: 5
Views: 3227

Re: High UPS run.lua script

zorg wrote: Sun Dec 13, 2020 6:23 pm updates per second, probably; disabling vsync and removing love.timer.sleep(0.001) from love.run would do that... not that that's a good idea.
Why I cannot set sleep less than 0.001 s?