Search found 88 matches

by sanjiv
Tue Apr 01, 2014 9:06 pm
Forum: Support and Development
Topic: help with sorting
Replies: 1
Views: 1061

help with sorting

I'm working on a pseudo 3d system, where objects have x,y, and z coordinates. When I draw them on screen, I want to draw stuff with lower x, y, and z values first, and stuff with higher x, y, and z values last. How can I sort objects based on their values? Or rather, is there a pre-existing version ...
by sanjiv
Tue Apr 01, 2014 4:46 am
Forum: Support and Development
Topic: Difference between scissor and rectangle sizes.
Replies: 2
Views: 1402

Re: Difference between scissor and rectangle sizes.

yup, that solved it. My bad.
by sanjiv
Tue Apr 01, 2014 4:25 am
Forum: Support and Development
Topic: Difference between scissor and rectangle sizes.
Replies: 2
Views: 1402

Difference between scissor and rectangle sizes.

When I use the same coordinates and dimensions for love.graphics.rectangle and love.graphics.setScissor, they don't match up. Is that a general problem, or am I missing something? The general code I used to test this was local lg=love.graphics lg.rectangle('line',x,y,w,h) lg.setScissor(x,y,w,h) lg.r...
by sanjiv
Thu Feb 13, 2014 4:07 am
Forum: Libraries and Tools
Topic: Isömap
Replies: 73
Views: 77467

Re: Isömap

I've looked into why isomap 0.93 isn't working with love9.0, and I've found the following: (conf.lua) Renamed t.screen to t.window in love.conf. (draw.lua) Removed love.graphics.quad I didn't find anything else, but who knows? conf.lua is easy enough to fix, but I haven't familiarized myself with wh...
by sanjiv
Thu Feb 13, 2014 3:31 am
Forum: Libraries and Tools
Topic: world map
Replies: 3
Views: 2489

Re: world map

I've posted how I would approach the first question, but looking at your larger project, I don't think it's the solution you're looking for. If you want to color each country separately, then I think each country is going to have to be a separate image (solid country, with transparent background), a...
by sanjiv
Sun Jan 12, 2014 10:57 am
Forum: Games and Creations
Topic: Pnorar
Replies: 11
Views: 14490

Re: Pnorar

looks pretty cool. I'm not a bullet-hell kinda guy, so I don't know if this is unreasonable feedback or not, but > if you made the player red, and the enemies white, the bullets may be easier to see. > could you add a feature where, when the player was just about to take a bullet, you prematurely cu...
by sanjiv
Thu Jun 06, 2013 9:43 am
Forum: Support and Development
Topic: Newbie Question: How to force the screen to a specific size?
Replies: 5
Views: 4028

Re: Newbie Question: How to force the screen to a specific s

Wait, isn't conf.lua the way to go?
www.love2d.org/wiki/Config_Files

Basically, make conf.lua in the same place as main.lua, and add the following

Code: Select all

function love.conf(t)
    t.screen.width = 1024
    t.screen.height = 768
end
by sanjiv
Tue Jun 04, 2013 4:47 am
Forum: Libraries and Tools
Topic: [wip] globe with continents and coordinates
Replies: 2
Views: 2263

[wip] globe with continents and coordinates

Here's an early version of a globe I've been working on, and I wanted to share it because it looks cool. Latitude and Longitude range from -180 to 180, though latitude should really be limited to -90 to 90. Among my next steps would be to create a better way of drawing 'continents' on the surface, a...
by sanjiv
Sat Jun 01, 2013 7:28 am
Forum: Support and Development
Topic: Love 2D Awkward Polygon Problem
Replies: 9
Views: 5244

Re: Love 2D Awkward Polygon Problem

So I take it this is the reason why polygon('line') and polygon('fill') draw different shapes? Does anyone know of a custom love function that can draw filled polygons successfully? Or alternately, have people found out if it is futile to try this?

If not, I'm ok just doing a brute force method.
by sanjiv
Sat Apr 13, 2013 8:20 pm
Forum: Games and Creations
Topic: slowly building a boss rush.
Replies: 1
Views: 2080

slowly building a boss rush.

MegaMan based. Basically, two figures going mano-a-mano in a room. I guess I've spent a lot of time learning small stuff, but this is my first attempt to put together a comprehensive package. I'll update it as I go. The biggest challenge for me is figuring out how to structure my files and programs....