Search found 114 matches

by bakpakin
Sat Apr 07, 2018 4:48 pm
Forum: Libraries and Tools
Topic: [Library] tiny-ecs - Fast Simple Entity Component System
Replies: 49
Views: 13665

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

Yes It does seem like that. In any case, I would recommend against relying on this behavior. I’m guessing your use case is that you have some rendering systems, and some logic systems, and you want to update the drawing systems in love.draw, and the rendering systems in love.update. You can pass a f...
by bakpakin
Fri Apr 06, 2018 12:59 pm
Forum: Libraries and Tools
Topic: [Library] tiny-ecs - Fast Simple Entity Component System
Replies: 49
Views: 13665

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

This is the book keeping I mentioned. Sorted systems have an onModify method that sorts the system. The system is only sorted when entities are added or removed. This is why should one still call world.update once per frame no matter what.
by bakpakin
Mon Apr 02, 2018 2:47 pm
Forum: Libraries and Tools
Topic: [Library] tiny-ecs - Fast Simple Entity Component System
Replies: 49
Views: 13665

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

Yes, you can modify the order of the systems. However, it is usually easier to set up all of the systems up front in the correct order.
by bakpakin
Mon Apr 02, 2018 2:24 am
Forum: Libraries and Tools
Topic: [Library] tiny-ecs - Fast Simple Entity Component System
Replies: 49
Views: 13665

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

Yes, you can do exactly that. You can also run code between other systems by creating a very simple system that processes no entities and simply runs your custom code on update. Not all systems need to process entities. To make sure that nothing is updated during world.update, set system.active to f...
by bakpakin
Sat Mar 18, 2017 4:56 pm
Forum: Libraries and Tools
Topic: [Library] tiny-ecs - Fast Simple Entity Component System
Replies: 49
Views: 13665

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: 49
Views: 13665

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: 49
Views: 13665

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: 1542

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: 1542

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: 1603

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.