Search found 5 matches

by HanaIndiana
Wed Sep 13, 2017 4:40 am
Forum: Libraries and Tools
Topic: [Library] tiny-ecs - Fast Simple Entity Component System
Replies: 34
Views: 8621

Re: [Library] tiny-ecs - Fast Simple Entity Component System

Does anyone have an example of using the world:removeEntity(entity) function? I'm either not using it right, or it's working in a way I'm not expecting. I'm wondering if the system:onRemove(entity) needs to always be included as well. Either way, I'm lost. The two demos bakpakin has in git (kibbles ...
by HanaIndiana
Sat Aug 05, 2017 5:59 pm
Forum: Support and Development
Topic: function with multiple default arguments
Replies: 4
Views: 405

Re: multiple default arguments

I knew I was missing something simple. Much thanks!!
Nixola wrote:
Sat Aug 05, 2017 5:57 pm
You'd have to do myFunc(10, false, 20) or myFunc(10, nil, 20).
by HanaIndiana
Sat Aug 05, 2017 5:56 pm
Forum: Support and Development
Topic: function with multiple default arguments
Replies: 4
Views: 405

function with multiple default arguments

Not sure why I can't find this question anywhere. I feel like I'm missing something obvious. Assume there is a function like this: function myFunc(a,b,c) b = b or 10 c = c or -1 print (a,b,c) end Since both 'b' and 'c' have defaults, I'm guessing there isn't a way to set 'c', but leave b as default?...
by HanaIndiana
Tue Jul 11, 2017 5:20 pm
Forum: Games and Creations
Topic: Cactus game.
Replies: 37
Views: 4853

Re: Cactus game.

Obey the cactus! Game.
by HanaIndiana
Tue May 30, 2017 1:57 am
Forum: Games and Creations
Topic: Made a game for my daughter.
Replies: 20
Views: 5283

Re: Made a game for my daughter.

Really adorable game, and smooth controls