1
0
Fork 0
mirror of https://github.com/Reuh/ubiquitousse.git synced 2025-10-27 09:09:30 +00:00
Commit graph

94 commits

Author SHA1 Message Date
d3f86d0275 util: clean table copy 2025-07-11 15:11:55 +02:00
6cf0fa4053 ldtk: identify level in error messages 2022-10-13 00:25:20 +09:00
aa332a0adf ecs: add callbackFiltered and emitFiltered 2022-10-13 00:24:53 +09:00
bd28610ff4 ecs: implement skip lists 2022-10-11 19:14:48 +09:00
0ea6117af9 input: add :set method 2022-10-11 14:53:07 +09:00
99a19b11c5 ecs: simplify linked list implementation 2022-10-11 14:52:56 +09:00
fe2bac6ebd Update docs 2022-10-07 12:41:11 +09:00
879829c671 input: neutralize also neutralize the children 2022-10-07 12:37:28 +09:00
8ac3ce010e input: grabbing is now done by cloning the input and disabling the parent input
Fixes issues with child sources in grabbing inputs.
2022-10-07 12:37:08 +09:00
3d6ea21113 input: Add method to re-enable inputs 2022-10-07 12:31:54 +09:00
4b4bccdf84 input: Rename clamped to normalize 2022-10-07 12:29:36 +09:00
0c765b315e input: fix mouse[N] 2022-09-20 14:49:06 +09:00
336f4f01a5 input: improve value source 2022-09-20 13:55:51 +09:00
8b994608a2 input: Add multidimensional inputs to replace pointer special case, improve documentation 2022-09-20 13:03:42 +09:00
7ad5c2d641 Update and rebuild docs 2022-09-16 20:07:53 +09:00
21679dde5c input overhaul
Now event based! Should result in no skipped inputs.
2022-09-16 20:06:00 +09:00
77ece0b9a6 Add gltf 2022-09-16 20:04:46 +09:00
5ee56f6aff Remove signal:***All, signal:replace, add signal:***Pattern functions 2022-09-16 20:00:08 +09:00
859970c7f7 Add ecs:get 2022-09-16 19:37:17 +09:00
9ea7241f58 Update README 2022-09-16 19:36:54 +09:00
432ce84fbe Update ldtk to LDtk 1.1.X 2022-09-16 19:34:52 +09:00
bfbe236e58 Add make script and precompile Candran files 2021-12-27 17:22:50 +01:00
bfa73f6dd0 Update doc 2021-12-27 16:25:40 +01:00
7e0c41bb04 Simplify ecs.children 2021-12-27 14:54:03 +01:00
74571c9be4 ldtk: allow offset parameter in :draw methods 2021-12-27 14:12:37 +01:00
ce7e54fb69 ecs: add System:onUpdateEnd, System:onDrawEnd 2021-12-27 14:12:08 +01:00
f78499e891 ldtk: rename Layer.offsetX/Y to Layer.x/y, add Level:drawBackground 2021-12-27 13:26:15 +01:00
86373c98de ecs: always pass entity as first arguments in callback for consistency, add System.component to set system component name independently from System.name 2021-12-27 13:16:08 +01:00
027b6b9bb2 ecs: System.filter defined using tables use all instead of any 2021-12-27 12:22:24 +01:00
9d2e886609 ecs: removed .entity in components, components do not need to be tables, pass entity as a new argument in several callbacks, remove System.methods, add System:callback, System:emit and System:reorder, add System.w, improve documentation
The component methods system was awkward and didn't give much benefit compared to just using methods on Systems. Plus now we really only have data in entities.

Since we don't have component methods, the callback system had to be replaced; I integrated it with the default System methods since it's a relatively common behavior.
2021-12-26 18:43:40 +01:00
af3bd51cb3 Improve documentation 2021-12-26 18:13:32 +01:00
489d0b4ba7 Fix milliseconds remnants in doc 2021-12-25 23:20:17 +01:00
ef413838d4 Keep metatables in ecs.default copy 2021-12-25 23:00:50 +01:00
d9eba04966 Add LDoc for scene, timer, signal, util 2021-12-25 20:46:50 +01:00
23f797286b LDtk now only requires LÖVE for drawing 2021-12-25 19:18:42 +01:00
d29c839d04 Add READMEs 2021-12-25 17:17:02 +01:00
6684bb5538 Show doc on GitHub Pages 2021-12-25 17:11:03 +01:00
d4e2a1d94a Add doc for ecs, asset 2021-12-25 17:08:08 +01:00
31472b2a85 Include json.lua lib 2021-12-25 01:00:37 +01:00
582f592a79 Add LDtk, update docs 2021-12-24 23:50:03 +01:00
c793617ded Update some ecs comments 2021-12-23 22:03:44 +01:00
010a526ef3 Add has and ipairs to uqt.util 2021-07-18 19:30:57 +02:00
4b75f21e52 Remove backend system and ctruLua support
Since I only use the LÖVE backend anyway, this simplifies the code.
Tidied some code.
2021-07-18 19:30:43 +02:00
9f4c03a136 Add callback, children, timer example systems 2021-06-24 16:24:54 +02:00
6ee98c097f Add license, readme 2021-06-24 15:50:46 +02:00
366bb63ed5 Fix error if onRemove in subsystem call :remove again 2021-04-13 01:55:29 +02:00
f607058753 ecs overhaul part 2
Various improvements made as they were needed:
* only gives the entity system table as argument in callback as that's the only thing needed most of the time
* to access the entity, a .entity field in now defined in every entity system table
* filter use ecs.any when given a table; allow booleans for always/never filter
* removed .m table from entity
* added ability to define methods on entities system table directly; allows to re-implement previous .m functionality (will provide some example systems in a later commit)
2021-04-13 01:35:43 +02:00
cc0ed18eb3 Fix onUpdate not receiving self argument 2021-04-13 01:25:27 +02:00
aa45a2cdac Allow timers to exist without a registry; remove global registry
In order to allow manual management of timers and better integration with ECS; you would typically let the uqt.ecs handle timers as separate entities, updated by a timer system.
A default global registry is highly redundant in this context. Scene timers registry are still a thing anyway.
2021-02-20 04:47:43 +01:00
3a94c6b60d ecs overhaul
Main incompatibility is passing the table entity[system.name] as first argument in a lot of callbacks
2021-02-18 17:17:43 +01:00