Search found 110 matches

by bakpakin
Sat Mar 18, 2017 4:56 pm
Forum: Libraries and Tools
Topic: [Library] tiny-ecs - Fast Simple Entity Component System
Replies: 34
Views: 7887

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

Try calling sortedSystem:onModify(). This is called once every time new items are added, and resorts the system.
by bakpakin
Sat Feb 18, 2017 5:18 pm
Forum: Libraries and Tools
Topic: [Library] tiny-ecs - Fast Simple Entity Component System
Replies: 34
Views: 7887

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

Results for filtering entities are cached, but results for filtering systems are not - the hope being that you have far fewer systems than you have entities. The filtering for systems was a bit of a kludge I added so that I could I easily just add systems to the world and not to a specific list. The...
by bakpakin
Thu Feb 16, 2017 6:07 pm
Forum: Libraries and Tools
Topic: [Library] tiny-ecs - Fast Simple Entity Component System
Replies: 34
Views: 7887

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

PS: A bit of a critique: I think "tiny" in the name is misleading. The scope of this library is nowhere near "tiny" IMO. I think it would be good idea to split it into actual ECS implementation (systems, components and filters) AND separate ecs-world module (container for everything, with "update" ...
by bakpakin
Fri Sep 23, 2016 3:37 pm
Forum: Libraries and Tools
Topic: Corope - Lua Threading Library
Replies: 4
Views: 1160

Re: Corope - Lua Threading Library

I have posted an example using love in the repository. For examples with similar usage, your can checkout weblit, xavante, and lua-copas for examples from the Lua world. Also, for clarification, the linked article is not my article, it is just a good article, and I am not affiliated with itch.io. I'...
by bakpakin
Mon Sep 19, 2016 1:46 am
Forum: Libraries and Tools
Topic: Corope - Lua Threading Library
Replies: 4
Views: 1160

Corope - Lua Threading Library

Corope GITHUB Corope is a Lua Library to help organize your async code. Write AI behaviors and animations in a natural, synchronous style instead of worrying about timers and callbacks. Corope also provides utilities for tweening and parallel processing. If that's not exactly clear, examples are wo...
by bakpakin
Mon Sep 05, 2016 5:35 pm
Forum: Support and Development
Topic: Can't compare the same value in two different tables.
Replies: 11
Views: 1037

Re: Can't compare the same value in two different tables.

Rather than post your entire game in a .love file which people need to unzip, it would be helpful to just post a code snippet of where the problem is.
by bakpakin
Tue Aug 09, 2016 8:58 pm
Forum: Libraries and Tools
Topic: Content Redacted. Please Delete Thread.
Replies: 17
Views: 2111

Re: Dox - A Lua Documentation Generator Script

One of the main issues I have with LDoc is lack of support for first-class functions. Actually, this problem is not limited to LDoc or Lua. These doc generators tend to be written as if functions can only exist as members of a class or module, when the language is really much more flexible. Much ag...
by bakpakin
Sat Jun 04, 2016 7:28 pm
Forum: Libraries and Tools
Topic: [Library] tiny-ecs - Fast Simple Entity Component System
Replies: 34
Views: 7887

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

Hi, love the library, thanks for your hard work. I'm trying to filter systems in tiny.update(), I'm not sure exactly what kind of filter to pass in the third argument. I've tried things like tiny.filter("componentThatSystemIWantFiltersFor") or passing the actual system's filter but nothing seems to...
by bakpakin
Fri May 20, 2016 4:41 am
Forum: Games and Creations
Topic: 1K Breakout challenge
Replies: 23
Views: 3283

Re: 1K Breakout challenge

Attempt 2: 887 876 bytes Slight minification of my previous version, but the same functionality. Also put into one-liner. function S()W,H=G.getDimensions()P,R,T,U,V={x=W/2,y=H-5,w=W/8,h=10},{x=W/2,y=H-18,w=16,h=16},1,0,0;B={[-1]=P,[0]=R}for x=W/20,W,W/10 do for y=10,100,20 do B[#B+1]={x=x,y=y,w=W/10...
by bakpakin
Thu May 19, 2016 3:29 pm
Forum: Games and Creations
Topic: 1K Breakout challenge
Replies: 23
Views: 3283

Re: 1K Breakout challenge

932 chars, resizable (If you provide resizing in a love.conf) Use A and D to move the paddle, S to shoot the ball. Collisions are not perfect, but what can you do :roll: function S()W,H=G.getDimensions() P,R,T={x=W/2,y=H-5,w=W/8,h=10},{x=W/2,y=H-15,w=10,h=10,u=0,v=0},1 B={[-1]=P,[0]=R}for x=W/20,W,W...