Search found 9 matches
- Fri Jan 08, 2016 10:38 pm
- Forum: Support and Development
- Topic: love.draw error?
- Replies: 8
- Views: 4766
Re: love.draw error?
Someone?
- Fri Jan 08, 2016 10:03 pm
- Forum: Support and Development
- Topic: love.draw error?
- Replies: 8
- Views: 4766
Re: love.draw error?
Can't i reffer to it by run.draw?
- Fri Jan 08, 2016 9:30 pm
- Forum: Support and Development
- Topic: love.draw error?
- Replies: 8
- Views: 4766
love.draw error?
Code: Select all
local run={};
do
run.draw=love.draw;
function run.draw()
love.graphics.print("Hello.",100,100);
end
end
- Fri Jan 08, 2016 7:51 pm
- Forum: Support and Development
- Topic: Window icon cannot be changed.
- Replies: 6
- Views: 3422
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?
How could i do that? Is there a way to convert pixels to bytes and find the dimensions?
- Fri Jan 08, 2016 7:22 pm
- Forum: Support and Development
- Topic: Window icon cannot be changed.
- Replies: 6
- Views: 3422
Re: Window icon cannot be changed.
But i need an ImageData for setting an Icon. Am i right?
- Fri Jan 08, 2016 7:08 pm
- Forum: Support and Development
- Topic: Window icon cannot be changed.
- Replies: 6
- Views: 3422
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...
- Fri Jan 08, 2016 4:11 pm
- Forum: Support and Development
- Topic: label is created multiple times?
- Replies: 6
- Views: 3292
Re: label is created multiple times?
someone?
- Fri Jan 08, 2016 3:50 pm
- Forum: Support and Development
- Topic: label is created multiple times?
- Replies: 6
- Views: 3292
Re: label is created multiple times?
Alright!
Thanks for the nice reception!
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?
Thanks for the nice reception!

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?
- Fri Jan 08, 2016 3:01 pm
- Forum: Support and Development
- Topic: label is created multiple times?
- Replies: 6
- Views: 3292
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...