Search found 175 matches
- Mon Mar 04, 2013 2:42 am
- Forum: General
- Topic: LÖVE 0.8.0 Released
- Replies: 85
- Views: 156859
Re: LÖVE 0.8.0 Released
szensk: Did you modify anything in your build? The no-game screen comes up weird for me, I think it's just the pink clear color. Also, it looks like you linked love.exe to the static C runtime library and lua51.dll to the dynamic one. Lua's stdout and stderr will not be visible this way. Yes I did,...
- Sun Mar 03, 2013 4:09 am
- Forum: General
- Topic: Using SciTE with LÖVE
- Replies: 48
- Views: 49937
Re: Using SciTE with LÖVE
Personally I love SciTE. However, the editor is only as good as its configuration. This configuration is of course a matter of personal preference but configuring SciTE is not that simple. You have to manually edit the config files and for that you first need to understand what all that stuff in the...
- Fri Mar 01, 2013 4:59 am
- Forum: General
- Topic: Strange for loop problem
- Replies: 9
- Views: 4566
Re: Strange for loop problem
Oops, wait! It does not handle the case where a non-attribute card is compared against another non-attribute card correctly. Here is the fixed version local stronger = function(a, b) if a.attribute and b.attribute or not a.attribute and not b.attribute then return a.number > b.number end if a.attrib...
- Fri Mar 01, 2013 4:53 am
- Forum: General
- Topic: Strange for loop problem
- Replies: 9
- Views: 4566
Re: Strange for loop problem
if a.Attribute then return true end return false; What exactly is this doing? Why is it returning true? As you said it's in the sorting function. If a sorting function(a,b) returns true that means "put a before b" (while returning false means the opposite). Here is a step by step explanat...
- Fri Mar 01, 2013 3:38 am
- Forum: General
- Topic: Strange for loop problem
- Replies: 9
- Views: 4566
Re: Strange for loop problem
Yes, try my alternative method because I can't find the cause of the infinite loop in your uploaded source.
- Fri Mar 01, 2013 2:44 am
- Forum: General
- Topic: Strange for loop problem
- Replies: 9
- Views: 4566
Re: Strange for loop problem
What I'm try to do is have the AI find the strongest cards out of two tables of equal length Ok, that's an easy problem. I ran the loop with some test data: local hand = { { attribute = true, number = 3}, { attribute = true, number = 4}, { attribute = nil, number = 5}, { attribute = true, number = ...
- Fri Mar 01, 2013 12:29 am
- Forum: General
- Topic: Strange for loop problem
- Replies: 9
- Views: 4566
Re: Strange for loop problem
I am not sure I understood what exactly your code is supposed to do, but let me suggest a different coding style. No offense, but I think your style leads to hard to read code. Here is the same thing written in a different style local State = require "State" local Player = require "Pl...
- Wed Feb 27, 2013 12:24 pm
- Forum: Support and Development
- Topic: *Exactly* changing the color of a spirte
- Replies: 9
- Views: 7144
Re: *Exactly* changing the color of a spirte
In my humble opinion, you should give your image font an appropriate alpha layer (ie., alpha -> from brightness), fill the image with white (unless you want outlines or something), and use normal alpha blending mode. Using modulate blend mode just to get rid of a black background is not how to do i...
- Tue Feb 26, 2013 11:34 pm
- Forum: Support and Development
- Topic: *Exactly* changing the color of a spirte
- Replies: 9
- Views: 7144
Re: *Exactly* changing the color of a spirte
Strange. I changed the color of the Input.png square to 255,255,255 and it did indeed work. However, my symbol bitmap is also 255,255,255 and the output is all wrong. I cannot reproduce this problem in an isolated example. I guess there must be an issue somewhere else.. Found it. Had nothing to do ...
- Tue Feb 26, 2013 10:52 pm
- Forum: Support and Development
- Topic: *Exactly* changing the color of a spirte
- Replies: 9
- Views: 7144
Re: *Exactly* changing the color of a spirte
The modulate color mode is not straight color replacement - except when the color of a pixel in an image is 255,255,255. Strange. I changed the color of the Input.png square to 255,255,255 and it did indeed work. However, my symbol bitmap is also 255,255,255 and the output is all wrong. I cannot re...