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
394c658d8b
Dt in seconds, minor fixes
2021-02-18 17:14:29 +01:00
fdd69fd7f8
Restructure timer
2021-02-18 17:13:56 +01:00
5d2c9c5f31
Typo
2020-04-07 17:36:19 +02:00
1ec81f2ebb
Fix triggeringTrigger, improve gamepad handling
2020-04-06 17:28:26 +02:00
d85424d866
Add triggerThresold (0.5 by default) for buttons associated with axes, grabbing terminology change
...
courtesy of Lenade Lamidedi
2020-04-02 21:02:09 +02:00
f22e0bef26
uqt.timer: now account for update lag, use only dt for calculations
2019-12-29 22:32:30 +01:00
6dc939bd16
Define uqt.ecs callback order
2019-12-29 20:33:29 +01:00
a1801679b6
Use require() to load scenes
2019-12-29 17:54:18 +01:00
15dfb18c65
Button combinations, create signal registry per scene
2019-12-28 16:13:52 +01:00
f6fb8ad649
uqt.signal
2019-12-27 18:54:30 +01:00
82bc7268e6
Rename time to timer
2019-12-25 16:15:40 +01:00
b5324faace
Add ecs.scene
2019-12-24 19:52:48 +01:00
16e533d176
Code reorganization, added uqt.ecs, removed LÖVE duplicates (uqt.audio, uqt.draw, uqt.filesystem)
2019-12-24 19:05:50 +01:00
523c5d36c0
ubiquitousse.util
2018-11-02 17:36:33 +01:00
6283522003
fix ubiquitousse.asset
2018-11-02 16:53:42 +01:00
ed683c6a70
ubiquitousse.asset
2018-11-02 16:09:18 +01:00
bdb9e710d9
LÖVE 11.1
2018-11-02 15:03:40 +01:00
389ebcba8d
Custom dofile, take 2
2017-09-02 20:06:13 +02:00
5961b217c5
Custom dofile
2017-09-02 19:47:06 +02:00
Reuh
c7e72a0295
Timed functions callbacks now receive the timed function object as first argument
2017-07-28 19:21:24 +02:00
Reuh
ddcb03f89e
Adding items to the todo list
2017-07-17 15:49:03 +02:00
Reuh
5c90076f22
Fix nil ref
2017-04-07 13:37:08 +02:00
Reuh
d24ffed189
Typo
...
pretty cool type isn't it
2017-04-06 19:26:46 +02:00