Search found 34 matches

by vortizee
Fri Aug 19, 2016 3:42 pm
Forum: General
Topic: Simple sort of table array
Replies: 16
Views: 9983

Simple sort of table array

I can’t wrap my head around sorting a table constructed like so: pcs.A = {} pcs.A[1] = { x, y, id } pcs.A[2] = { x, y, id } — values inside those brackets used to place a piece on a map at coordinates pcs.A [1], pcs.A [2]. The sorting function should order pcs.A by comparing distance to some origin ...
by vortizee
Fri Jan 22, 2016 7:23 am
Forum: General
Topic: Problem with hi-alpha quad over background
Replies: 1
Views: 1054

Re: Problem with hi-alpha quad over background

Ignore the silly question, I was drawing a test object inside a loop instead of outside it, so it was drawn over 8,000 times. (I’m getting too old for this game.)
by vortizee
Fri Jan 22, 2016 3:23 am
Forum: General
Topic: Problem with hi-alpha quad over background
Replies: 1
Views: 1054

Problem with hi-alpha quad over background

Where a quad or image has a high transparency outer glow and may have a drop shadow — rasterized and checked as to their transparency — and is drawn over a background, what is it that could make the alpha portions render as opaque? I’m using a rectangular black stencil: love.graphics.setColor( 0, 0,...
by vortizee
Fri Mar 06, 2015 5:24 pm
Forum: General
Topic: love.filesystem making a user accessible directory
Replies: 3
Views: 1619

love.filesystem making a user accessible directory

Say you want a game to use resources accessible to a user, such as screenshots, sounds, themes, saved games, etc. Where would you put/create folders for such resources? Seems odd that I have to use the user/library/Application Support, etc., directory, which is otherwise fine for a preference file. ...
by vortizee
Fri Feb 27, 2015 10:28 am
Forum: Support and Development
Topic: Getting print debug statements to display on OS 10.9.5
Replies: 11
Views: 2654

Re: Getting print debug statements to display on OS 10.9.5

BTW, is that Yosemite? What does the
“${0%/*}”
do? Tried it with dragging the app itself and again dragging the love in the Contents of the app — no dice. I’m missing some crucial step. What’s a portable RUN.command file?
by vortizee
Fri Feb 27, 2015 1:09 am
Forum: Support and Development
Topic: Getting print debug statements to display on OS 10.9.5
Replies: 11
Views: 2654

Re: Getting print debug statements to display on OS 10.9.5

Not working here either but thanks. Hmm, maybe I should make love do it…
by vortizee
Thu Feb 26, 2015 5:42 pm
Forum: Support and Development
Topic: Getting print debug statements to display on OS 10.9.5
Replies: 11
Views: 2654

Re: Getting print debug statements to display on OS 10.9.5

[quote=“slime”]Do you really need a new window to open?[/quote] Absolutely, I need to see the print results live for debugging. [quote=“slime”]If so you could stick the command in a .sh bash script file. You can also create new tabs and open new windows directly from the Terminal application (and th...
by vortizee
Thu Feb 26, 2015 7:33 am
Forum: Support and Development
Topic: Getting print debug statements to display on OS 10.9.5
Replies: 11
Views: 2654

Re: Getting print debug statements to display on OS 10.9.5

[quote=“slime”]You can just run the love executable in a Terminal window with your game’s filepath as an argument…[/quote] Problem is I get no second window opening with log printed statements — whether the path is to the folder containing main.lua or the parent folder of that folder, either of whic...
by vortizee
Thu Feb 26, 2015 4:13 am
Forum: Support and Development
Topic: Getting print debug statements to display on OS 10.9.5
Replies: 11
Views: 2654

Getting print debug statements to display on OS 10.9.5

For the life of me I can’t get this badly needed method to work. Using the quoted instructions (below) in my main.lua, I get either an “xterm not found” with the first method or nothing with the second. “home/path/to/game” is supposedly the path to the folder where main.lua resides. I drag that fold...
by vortizee
Tue Feb 17, 2015 11:31 am
Forum: General
Topic: setStencil to a circle not clipping quad
Replies: 4
Views: 2648

Re: setStencil to a circle not clipping quad

My bad, left over garbage from considering an image-based stencil specified diameter instead of radius. Clips like the devil.