Search found 3 matches

by pnzr
Sat Mar 10, 2012 6:17 pm
Forum: Support and Development
Topic: Getting width and height of a quad
Replies: 4
Views: 3906

Re: Getting width and height of a quad

Thanks.
by pnzr
Sat Mar 10, 2012 5:47 pm
Forum: Support and Development
Topic: Getting width and height of a quad
Replies: 4
Views: 3906

Re: Getting width and height of a quad

I just wanted to use single tileset for all game graphics. Maybe it is a bad idea? I need width and height to do collision detection.
by pnzr
Sat Mar 10, 2012 5:17 pm
Forum: Support and Development
Topic: Getting width and height of a quad
Replies: 4
Views: 3906

Getting width and height of a quad

I have few quads of various size created from the same tileset. How can I get width or height of specific quad?
I tried this but it didn't work:

Code: Select all

quad_box = love.graphics.newQuad(0, 0, 50, 50, img_tileset:getWidth(), img_tileset:getHeight())
x = quad_box:getHeight()