Search found 9 matches

by Blart
Wed Mar 11, 2009 2:21 am
Forum: Support and Development
Topic: Drawing position of primitives, text, ect.
Replies: 1
Views: 2174

Drawing position of primitives, text, ect.

The (x, y) coordinate you specify for drawing different primitives, text, and images seems rather inconsistent. (x, y) specifies the upper-left corner of a rectangle. (x, y) specifies the center of a circle. (x, y) specifies the center of an image, unless you set the image's center manually. (x, y) ...
by Blart
Mon Mar 09, 2009 2:46 am
Forum: Libraries and Tools
Topic: Drawing a perspective grid (Solved)
Replies: 12
Views: 12627

Re: Drawing a perspective grid (Solved)

Good news. I've finally figured out how to handle the horizontal lines. It basically involved lots and lost of algebra that I never want to do again (though I probably will). :P The full code: function intersectionPoint(axi, ayi, axf, ayf, bxi, byi, bxf, byf) denom = ((byf - byi) * (axf - axi)) - ((...
by Blart
Sun Mar 08, 2009 4:54 pm
Forum: Libraries and Tools
Topic: Drawing a perspective grid (Solved)
Replies: 12
Views: 12627

Re: Drawing a perspective grid

Or have I mistaken your question and it is so that you do this in order to get an idea of what the function should be? Here's the idea. So far I have this line: y = (i * STEP) + GRID_TOP_YI This calculates, for a given world-y value i , the screen-y value named y . So, when i = 0 (world coordinates...
by Blart
Sun Mar 08, 2009 3:25 am
Forum: Libraries and Tools
Topic: Drawing a perspective grid (Solved)
Replies: 12
Views: 12627

Re: Drawing a perspective grid

Here's preliminary work on the horizontal lines. This is the result I don't want, though I did need to figure out how to make the ends of the horizontal lines meet the outermost vertical lines anyway. http://img15.imageshack.us/img15/6323/gridj.png ... GRID_RIGHT_SLOPE = (GRID_TOP_YI - GRID_BOTTOM_Y...
by Blart
Sat Mar 07, 2009 9:01 pm
Forum: Libraries and Tools
Topic: Drawing a perspective grid (Solved)
Replies: 12
Views: 12627

Re: Drawing a perspective grid

However, better than taking this approach of always computing where things should go on the screen, I would suggest that you make a function that takes points in (world_x,world_y,world_z) and produces points in (screenx,screeny). Good advice, though it's not like I'm doing any 3D stuff. What the gr...
by Blart
Sat Mar 07, 2009 8:16 pm
Forum: Libraries and Tools
Topic: Drawing a perspective grid (Solved)
Replies: 12
Views: 12627

Drawing a perspective grid (Solved)

Solution found http://img530.imageshack.us/img530/5967/grida.png GRID_BOTTOM_WIDTH = 768 GRID_TOP_WIDTH = 384 GRID_BOTTOM_XI = 16 GRID_BOTTOM_YI = 472 GRID_BOTTOM_XF = GRID_BOTTOM_XI + GRID_BOTTOM_WIDTH GRID_BOTTOM_YF = GRID_BOTTOM_YI GRID_TOP_XI = ((GRID_BOTTOM_WIDTH - GRID_TOP_WIDTH) / 2) + GRID_...
by Blart
Fri Mar 06, 2009 7:38 pm
Forum: General
Topic: Any plans to make a built-in GUI api?
Replies: 12
Views: 16276

Re: Any plans to make a built-in GUI api?

Ah, the built-in GUI. I remember spending a lot of time struggling with GuiChan only to end up scrapping the whole thing as people were making their own libraries. I think that people should try to work together more when it comes to all these fancy libraries that they build, but that's just me... ...
by Blart
Sun Mar 01, 2009 8:19 pm
Forum: General
Topic: Any plans to make a built-in GUI api?
Replies: 12
Views: 16276

Re: Any plans to make a built-in GUI api?

It seems all the good game engines are "low-level." :?
All the "high-level" ones always seem to cost money and not work outside Windows.

I also have trouble keeping track of which GUI library in these forums is most up-to-date.
by Blart
Sun Mar 01, 2009 8:12 pm
Forum: General
Topic: Any plans to make a built-in GUI api?
Replies: 12
Views: 16276

Any plans to make a built-in GUI api?

I know there are GUI libraries for Löve already, but I think it would be neat if Löve came with its own basic GUI framework out of the box. It shouldn't be anything fancy. In fact, most actual widgets may not have to be included; just a framework that people can use to build the widgets they need an...