Search found 42 matches
- Tue Oct 20, 2009 12:42 am
- Forum: Support and Development
- Topic: Color masking possible?
- Replies: 2
- Views: 2877
Re: Color masking possible?
love.graphics.setColorMode(love.color_modulate) --see http://love2d.org/docs/Constants.html for the values of things like colormode love.graphics.setColor(255,200,200) --slightly red color love.graphics.draw(image,100,100) --image will now be drawn with a red tint (rather, the green and blue values ...
- Wed Oct 14, 2009 3:01 am
- Forum: General
- Topic: What's wrong with this?
- Replies: 2
- Views: 2824
Re: What's wrong with this?
Robin said most of it. I'm just going to elaborate and say:
if X will evaluate true for all values of X other than false and nil.
It's pretty convenient for testing if a variable has a value. 1 and 0 are both values, so they're both true.
if X will evaluate true for all values of X other than false and nil.
It's pretty convenient for testing if a variable has a value. 1 and 0 are both values, so they're both true.
- Wed Oct 14, 2009 2:56 am
- Forum: General
- Topic: What software/methods do you use to edit/run your code?
- Replies: 34
- Views: 20778
Re: What software/methods do you use to edit/run your code?
I too use notepad ++
However, while I'm developing I have the files in a folder, and just drag the folder onto a shortcut to love that is on my desktop to run it.
Also: I use winrar, not 7zip.. I've never tried 7zip.
However, while I'm developing I have the files in a folder, and just drag the folder onto a shortcut to love that is on my desktop to run it.
Also: I use winrar, not 7zip.. I've never tried 7zip.
- Sun Sep 27, 2009 5:02 am
- Forum: Support and Development
- Topic: Keyboard and Mouse `newpress`
- Replies: 6
- Views: 2784
Re: Keyboard and Mouse `newpress`
What's wrong with the keypressed functions?
- Fri Sep 25, 2009 11:03 am
- Forum: Support and Development
- Topic: Sega Columns Clone - (help checking colors)
- Replies: 15
- Views: 11697
Re: Sega Columns Clone - (help checking colors)
It looks like when you make the grid you make the y values first, so a specific point should be accessed as cubes[y][x], whereas the rowfinder checks [x][y].. I could be wrong, but I think that's it.
- Thu Sep 24, 2009 9:20 pm
- Forum: Support and Development
- Topic: Sega Columns Clone - (help checking colors)
- Replies: 15
- Views: 11697
Re: Sega Columns Clone - (help checking colors)
you essentially have 4 directions to check, right? horizontal, vertical, and the two main diagonals. Also: at least three in a row of same color to make a match, but no max length, yes? something like: function checkmatches() for cubey = 1, heightcubes do for cubex = 1, widthcubes do if (cubes[cubex...
- Sat Sep 19, 2009 12:11 am
- Forum: General
- Topic: Text Origin Decide-icidal
- Replies: 26
- Views: 8403
Re: Text Origin Decide-icidal
I say topleft since that's the corner of the screen that is (0,0). To have it y pixels from the top when drawing text and not be top aligned seems silly to me (I have to type draw text at 0,fontsize to draw it in the topleft corner, which is counterintuitive).
- Fri Sep 18, 2009 12:17 am
- Forum: Support and Development
- Topic: Translucent color?
- Replies: 5
- Views: 9008
Re: Translucent color?
I'm not sure I understand you. Translucence is a very similar effect to transparency: transparent means you can see everything behind it though tinted to this colour; translucent means you can see light (and so rough shapes) behind it. What I think you are saying is that you want to be able to pick ...
- Wed Sep 16, 2009 9:11 pm
- Forum: Support and Development
- Topic: love.graphics.setFontSize (hand made function for less lag)
- Replies: 2
- Views: 1936
Re: love.graphics.setFontSize (hand made function for less lag)
I suppose this would work, but could you not also just predefine fonts as variables in the load script, and switch between them later? function load() def10 = love.graphics.newFont(love.default_font,10) def18 = love.graphics.newFont(love.default_font,18) end function draw() love.graphics.setFont(def...
- Sun Sep 06, 2009 5:03 am
- Forum: Support and Development
- Topic: Max velocity = 200, why?
- Replies: 10
- Views: 9332
Re: Max velocity = 200, why?
doh, that is a clever fix. I still have issues with 2000+ physics objects though.. I guess I'll just have to have fewer objects..