Search found 9 matches

by larz
Fri Jan 08, 2016 10:38 pm
Forum: Support and Development
Topic: love.draw error?
Replies: 8
Views: 4710

Re: love.draw error?

Someone?
by larz
Fri Jan 08, 2016 10:03 pm
Forum: Support and Development
Topic: love.draw error?
Replies: 8
Views: 4710

Re: love.draw error?

Can't i reffer to it by run.draw?
by larz
Fri Jan 08, 2016 9:30 pm
Forum: Support and Development
Topic: love.draw error?
Replies: 8
Views: 4710

love.draw error?

Code: Select all

local run={};
do
	run.draw=love.draw;
	
	function run.draw()
		love.graphics.print("Hello.",100,100);
	end
end
Why this doesn't works?
by larz
Fri Jan 08, 2016 7:51 pm
Forum: Support and Development
Topic: Window icon cannot be changed.
Replies: 6
Views: 3312

Re: Window icon cannot be changed.

Ok!
How could i do that? Is there a way to convert pixels to bytes and find the dimensions?
by larz
Fri Jan 08, 2016 7:22 pm
Forum: Support and Development
Topic: Window icon cannot be changed.
Replies: 6
Views: 3312

Re: Window icon cannot be changed.

But i need an ImageData for setting an Icon. Am i right?
by larz
Fri Jan 08, 2016 7:08 pm
Forum: Support and Development
Topic: Window icon cannot be changed.
Replies: 6
Views: 3312

Window icon cannot be changed.

local data =love.image.newImageData(16,16,"icon.png"); love.window.setIcon(icon); "icon.png" is a 16x16px image. When i run the the program i get this error: "main.lua:1: The size of the raw byte string must match the ImageData's actual size in bytes." Is there somethi...
by larz
Fri Jan 08, 2016 4:11 pm
Forum: Support and Development
Topic: label is created multiple times?
Replies: 6
Views: 3241

Re: label is created multiple times?

someone?
by larz
Fri Jan 08, 2016 3:50 pm
Forum: Support and Development
Topic: label is created multiple times?
Replies: 6
Views: 3241

Re: label is created multiple times?

Alright!
Thanks for the nice reception! :awesome:
Also, how does the window width/height works?
I would like to set a label in the right-top corner of the game screen.
How could i do that?
by larz
Fri Jan 08, 2016 3:01 pm
Forum: Support and Development
Topic: label is created multiple times?
Replies: 6
Views: 3241

label is created multiple times?

function love.update(dt) if love.mouse.isDown(1) then function love.draw() love.graphics.setColor(0,255,0,255); love.graphics.printf("LMB: "..tostring(input.mouse.down.left),1,1,200,"left"); end end end Hello, guys. I'm new in LÖVE2D, but i'm experienced with LUA. I just want to...