Search found 407 matches

by DaedalusYoung
Tue Jul 07, 2015 7:18 pm
Forum: Support and Development
Topic: [Solved] Resizing Rendered Area
Replies: 3
Views: 1571

Re: Resizing Rendered Area

[wiki]love.graphics.scale[/wiki] should work.
by DaedalusYoung
Sun Mar 29, 2015 1:51 pm
Forum: Games and Creations
Topic: Starship Run
Replies: 4
Views: 3416

Re: Starship Run

Related: https://www.love2d.org/wiki/Config_Files is confusing. It references love.conf and conf.lua at the same time but I can't edit it. What do you mean you can't edit it? conf.lua is the filename of the configuration file. love.conf is the name of the function that should be defined in that fil...
by DaedalusYoung
Fri Mar 27, 2015 2:06 pm
Forum: Support and Development
Topic: Local Variable Availability - Multiple Callback Functions
Replies: 8
Views: 4801

Re: Local Variable Availability - Multiple Callback Function

Yeah, just declare the local outside any of the callbacks. Then it'll still be local to main.lua, not global, but can be accessed anywhere in that file.

Code: Select all

local var = 1

function love.draw()
    love.graphics.print(var)
end

function love.keypressed(k, r)
    var = var + 1
end
by DaedalusYoung
Tue Mar 24, 2015 11:10 pm
Forum: Support and Development
Topic: Do you have the Spy?
Replies: 5
Views: 3400

Re: Do you have the Spy?

Just start LÖVE with no game. That's the one you mean, right?
by DaedalusYoung
Sun Mar 22, 2015 11:34 pm
Forum: Support and Development
Topic: love.graphics.translate by whole numbers
Replies: 3
Views: 2982

Re: love.graphics.translate by whole numbers

Don't change the actual player's coordinates, just round them during draw.
by DaedalusYoung
Thu Mar 19, 2015 8:35 am
Forum: Support and Development
Topic: [Solved]love.graphics.translate
Replies: 7
Views: 2876

Re: love.graphics.translate

It seems that for text you should use whole numbers, for drawing lines - +/- 0.5 to get sharp image. That's because lines are 1 dimensional, while pixels are 2 dimensional. If you draw a line on integer coordinates, you are effectively drawing a line in between pixels. Your screen can not display t...
by DaedalusYoung
Thu Mar 19, 2015 5:51 am
Forum: General
Topic: Anybody developed a point-and-click adventure?
Replies: 8
Views: 7340

Re: Anybody developed a point-and-click adventure?

I've been thinking about it, but not done any work yet. It is completely possible of course and shouldn't be that difficult.
by DaedalusYoung
Mon Mar 16, 2015 9:36 am
Forum: Support and Development
Topic: How do I remove drawn images & printed text?
Replies: 21
Views: 8602

Re: How do I remove drawn images & printed text?

arampl wrote:

Code: Select all

function wait(time)
   love.timer.sleep(time)
end
Easier:

Code: Select all

local wait = love.timer.sleep
But don't use that function, it doesn't do what you think it does.
by DaedalusYoung
Sat Mar 14, 2015 10:14 pm
Forum: Support and Development
Topic: Resetting all of Löve's callbacks?
Replies: 14
Views: 2861

Re: Resetting all of Löve's callbacks?

Why not do it the other way? Don't define any callbacks until the version check is passed.
by DaedalusYoung
Fri Mar 13, 2015 9:17 am
Forum: Support and Development
Topic: Vsync not working on some computers?
Replies: 2
Views: 1579

Re: Vsync not working on some computers?

Yes, it depends. Some cards ignore requested vsync settings.