Search found 482 matches

by substitute541
Sat Apr 09, 2016 3:50 pm
Forum: Support and Development
Topic: Getting distance
Replies: 9
Views: 1487

Re: Getting distance

Using more sensible function names. Untested, but I think maybe it works. Been a long time since I coded in Lua. -- Here be your rectangles -- They be located at the pixel coordinates (x, y) -- Their dimensions are specified as well local foo = { x = 0, y = 0, width = 500, height = 200 } local bar =...
by substitute541
Tue Apr 05, 2016 12:06 pm
Forum: General
Topic: How to document an "unusual" API?
Replies: 11
Views: 1938

Re: How to document an "unusual" API?

Okay I made my own versions using Lua "classes" (technically prototypes) local Chain = {} local Chain_mt = { __index = Chain } local Invoker = {} local Invoker_mt = { __index = Invoker } function Chain:new( ... ) return setmetatable( { ... }, Chain_mt ) end function Chain_mt.__call( self, ... ) if n...
by substitute541
Tue Apr 05, 2016 10:43 am
Forum: General
Topic: How to document an "unusual" API?
Replies: 11
Views: 1938

Re: How to document an "unusual" API?

I prefer the current version.
by substitute541
Sun Apr 03, 2016 2:57 am
Forum: General
Topic: How to document an "unusual" API?
Replies: 11
Views: 1938

Re: How to document an "unusual" API?

I took a stab at refactoring the code; indeed what you did is the best and the most concise way to do it. Full disclosure : I have not tested this yet, I just did some guesses as to how it would run. return function ( ... ) local chain = { ... } --- Invoker submodule -- -- @access private -- -- @par...
by substitute541
Sat Apr 02, 2016 7:17 am
Forum: General
Topic: How to document an "unusual" API?
Replies: 11
Views: 1938

Re: How to document an "unusual" API?

Here's an inline documentation example (after spending a while trying to understand the code) : --- Chain factory -- -- Given zero or more *link* functions, it returns a callable Chain instance. -- -- @param function... Zero or more link functions. -- -- @return function A Chain instance. return fun...
by substitute541
Thu Jul 10, 2014 1:49 am
Forum: Libraries and Tools
Topic: Oysi's 3D Rendering & Physics Engine
Replies: 125
Views: 34769

Re: Oysi's 3D Rendering & Physics Engine

Sheepolution wrote:I didn't even know you could put videos in LÖVE.

It's basically a 2D video of a 2D video of a 3D world in a 3D world made in a 2D framework.
My brain hurts.
by substitute541
Mon Jun 30, 2014 2:01 am
Forum: General
Topic: Avatars: OBEY!
Replies: 735
Views: 298347

Re: Avatars: OBEY!

Jeeper wrote:
sieben07 wrote:I know i am 6 Years to late, but shouldn't it be Öbey?
I just find it insane that 6 years ago was 2008....
2008 feels almost like yesterday. Not like I was there in the Love forums during 2008.
by substitute541
Fri Jun 27, 2014 2:29 am
Forum: Libraries and Tools
Topic: LoveNoise - A Love Noise library [v0.2.1]
Replies: 18
Views: 5062

Re: LoveNoise - A Love Noise library [v0.2.1]

Thanks fro the reply! I have one more, Billow noise is supposed to be good for clouds. But I don't get it looking like here: http://www.burnweb.net/libnoise/_img/billow_raw_gray.png I only get a variation of this: http://i.imgur.com/7ZHT7Gp.png (octaves = 23 and frequency = 0.01). So I think my que...
by substitute541
Wed Jun 25, 2014 1:59 am
Forum: Libraries and Tools
Topic: LoveNoise - A Love Noise library [v0.2.1]
Replies: 18
Views: 5062

Re: LoveNoise - A Love Noise library [v0.2.1]

Added new documentation. See project page . Nice! I was testing-learning this library again. I was wondering in the previous version there was "setnormalized(true/false)", But it's not in the new version, is it now in this new version always on true ? I have no Idea what it means/does, all I know i...
by substitute541
Tue Jun 24, 2014 6:42 am
Forum: Libraries and Tools
Topic: Worley/Cellular Noise Demo
Replies: 5
Views: 1798

Worley/Cellular Noise Demo

Went ahead and implemented Cellular noise for my noise library. Uses LuaJIT's FFI and BitOps libraries. Worley Noise tutorial. demo.png worleynoise.love worley.lua local floor = math.floor local sqrt = math.sqrt local bit = require "bit" local bxor = bit.bxor local ffi = require "ffi" ffi.cdef[[ typ...