Search found 44 matches

by com_1
Mon Nov 08, 2010 12:19 am
Forum: Support and Development
Topic: jumping tutorial?
Replies: 133
Views: 31666

Re: jumping tutorial?

Maybe I can help you ?
I am here not so long ago, but in the programming of years.

Exactly what you want to do ?
by com_1
Fri Nov 05, 2010 12:42 pm
Forum: Support and Development
Topic: I have a question.
Replies: 96
Views: 28922

Re: I have a question.

Nobody wants to create a joint project on "Love2D" ?

Separately to create a hard and together, we force(power).
by com_1
Thu Oct 28, 2010 10:52 pm
Forum: Support and Development
Topic: I have a question.
Replies: 96
Views: 28922

Re: I have a question.

Now everything is clear.

Code: Select all

scrx = 640; scry = 480; 
love.graphics.printf("start game" , 0, (scry/2), scrx, "center")
Thanks for help. :]
by com_1
Thu Oct 28, 2010 10:01 pm
Forum: Support and Development
Topic: I have a question.
Replies: 96
Views: 28922

Re: I have a question.

I want to add a simple word "start game" in the center of the screen.
Instead, the command "printF" divides it ("start game") in half.
what is wrong.

Here is the code.
love.graphics.printf("start game" ,320, 240, 0, "center")
by com_1
Thu Oct 28, 2010 9:18 pm
Forum: Support and Development
Topic: I have a question.
Replies: 96
Views: 28922

Re: I have a question.

function love.load() scrx = 640; scry = 480; zx = (scrx/2); zy = (scry/2); zi = 200; love.graphics.setMode(scrx, scry, false, true, 0); love.graphics.setFont(30); end function love.draw() love.graphics.line(zx - zi, zy, zx + zi, zy); love.graphics.line(zx, zy - zi, zx, zy + zi); -- please update th...
by com_1
Wed Oct 27, 2010 4:24 pm
Forum: Support and Development
Topic: I have a question.
Replies: 96
Views: 28922

Re: I have a question.

//With love.graphics.printf("Thanks people", 320, 240, 0, "center") //or love.graphics.printf("Thanks"..(" ")..("people"), 320, 240, 0, "center") //Not possible This image with PRINT F . http://www.freeimagehosting.net/uploads/9515a77abe.p...
by com_1
Wed Oct 27, 2010 11:03 am
Forum: Support and Development
Topic: I have a question.
Replies: 96
Views: 28922

Re: I have a question.

function love.load() scrx = 640; scry = 480; zx = (scrx/2); zy = (scry/2); zi=200; love.graphics.setMode(scrx, scry, false, true, 0); font = love.graphics.newFont("courbi.ttf", 15); --changed 'setFont' to 'newFont' height = font:getHeight(); end function love.draw() love.graphics.line(zx ...
by com_1
Wed Oct 27, 2010 9:22 am
Forum: Support and Development
Topic: I have a question.
Replies: 96
Views: 28922

Re: I have a question.

function love.load()
font = love.graphics.setFont("courbi.ttf", 15);
height = font:getHeight();
width = font:getWidth();
end

function love.draw()
love.graphics.print("my project",100,100,0,1,1);
end

Please, update this code.
by com_1
Tue Oct 26, 2010 10:58 pm
Forum: Support and Development
Topic: I have a question.
Replies: 96
Views: 28922

Re: I have a question.

font = love.graphics.setFont('courbi.ttf', 15)

height = Font:getHeight(font)
width = Font:getWidth(font)

Not working !!!


love.graphics.setFont('courbi.ttf', 15)

height = Font:getHeight()
width = Font:getWidth()

Not working !!!


Where is the PROBLEM, please ?
by com_1
Tue Oct 26, 2010 10:23 pm
Forum: Support and Development
Topic: I have a question.
Replies: 96
Views: 28922

Re: I have a question.

font = love.graphics.setFont('courbi.ttf', 15);

// Not working ?
height = Font:getHeight(font)
width = Font:getWidth(font)


Where is the problem, please help.