Search found 19 matches

by GloryFish
Thu Aug 28, 2014 9:04 pm
Forum: Support and Development
Topic: Vectors for a dummie
Replies: 4
Views: 5586

Re: Vectors for a dummie

There are plenty of use cases for vectors that are not at all related to Shaders. For context, read through the Linear Algebra for game developers series. Those articles will answer the general question of what a vector is , what it's used for, and what some of those vector functions are. Note that ...
by GloryFish
Mon Jan 23, 2012 10:36 pm
Forum: Libraries and Tools
Topic: Bresenham's line algorithm
Replies: 2
Views: 3154

Re: Bresenham's line algorithm

Great example. I learned Bresenham's algorithm when I was working on a word search game. The lettergrid allows you to drag and select words going up/down/left/right and diagonals: http://cl.ly/0w0e2h2g053C100A1u1E/Screen%20Shot%202012-01-23%20at%205.32.20%20PM.png Code (scroll down to pointsBetween)...
by GloryFish
Thu Jul 07, 2011 2:28 pm
Forum: Support and Development
Topic: Quads and artifacts from sprite sheets
Replies: 8
Views: 6219

Re: Quads and artifacts from sprite sheets

That's it! Thanks, that makes sense.

I'm working on another game right now and the same issue appeared.

So, the general tips are:

- leave at least 1 pixel margin around your sprites
- draw your quads at non-fractional coordinates
by GloryFish
Wed Jul 06, 2011 8:33 pm
Forum: Support and Development
Topic: Quads and artifacts from sprite sheets
Replies: 8
Views: 6219

Re: Quads and artifacts from sprite sheets

Oh man, that issue is so annoying! I think it even shows up in the screenshot on the wiki. Let me know if there's anything I can do by way of adjusting or testing. If anyone else can confirm or deny this behavior maybe we can file a bug on bitbucket.

Also, the code is on GitHub for easy browsing.
by GloryFish
Fri Apr 08, 2011 8:32 pm
Forum: Support and Development
Topic: flipping image
Replies: 2
Views: 2626

Re: flipping image

You can supply a negative value to the sx, and sy (scale) parameters of love.graphics.draw() to flip your image on the horizontal and vertical axes, respectively.
by GloryFish
Fri Apr 08, 2011 4:19 pm
Forum: Support and Development
Topic: Why doesn't # decrease after remove?
Replies: 10
Views: 5538

Re: Why doesn't # decrease after remove?

Another nice benefit of table.remove() over setting the index to nil is that table.remove() will automatically re-order your indexes to fill the gap left by the removed index. If you have {1, 2, 3, 4, etc.} and use table.remove() on index 3, index 4 will get bumped to 3 and so on until the list is ...
by GloryFish
Fri Apr 08, 2011 3:46 pm
Forum: Support and Development
Topic: Objects not maintaining their state
Replies: 4
Views: 2902

Re: Objects not maintaining their state

Removing an item from a table while you are iterating it will cause problems if you are using table indexes. There are straightforward ways to do it that won't trip you up, however. Here's one way that I use a lot: local fruits = {'apple', 'pear', 'banana', 'grape'} local toRemove = {} for i, fruit ...
by GloryFish
Thu Mar 31, 2011 4:42 pm
Forum: Games and Creations
Topic: Desert Loot
Replies: 12
Views: 12892

Re: Desert Loot

Dude, that's crazy. I keep trying and I can't top my best score of around $2300.

I think we're going to have to start talking strategy here. Are you all getting lucky usually or do you have a strategy of saving up certain items?
by GloryFish
Thu Mar 24, 2011 10:52 pm
Forum: Games and Creations
Topic: Desert Loot
Replies: 12
Views: 12892

Re: Desert Loot

Yeah, there really is only one action, click an item.

What's your best score? Mine is $2200. The highest I've seen is Maurice on IRC who got somewhere in the $3000s.
by GloryFish
Thu Mar 24, 2011 9:05 pm
Forum: Games and Creations
Topic: Desert Loot
Replies: 12
Views: 12892

Desert Loot

Desert Loot is a game about collecting things and making decisions.

Image


It was made for Game Prototype Challenge v4

Download

Making Of Timelapse Video