bus events connectes ! + some CSS improvements

This commit is contained in:
STEINNI
2025-09-28 09:02:39 +00:00
parent d336ad7ce1
commit 34d93cecdb
36 changed files with 242 additions and 5233 deletions
@@ -0,0 +1,51 @@
[
{
"chan": "gps:agents",
"events": [
{
"eventName": "moving",
"mappings": [
{
"id": "aid",
"assign": {
"position.x": "coords.x",
"position.z": "coords.y"
},
"animate": true
}
]
},
{
"eventName": "rotating",
"mappings": [
{
"id": "aid",
"assign": {
"r": "rotangle"
},
"animate": true
}
]
}
]
},
{
"chan": "agent:*",
"events": [
{
"eventName": "aging",
"mappings": [
{
"id": "aid",
"assign": {
"fill": {
"arguments": ["age"],
"transformer": "rgb(${Math.round(255 * age / 10)},0,${Math.round(255 * (1 - age / 10))})"
}
}
}
]
}
]
}
]