Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Small, fast, data-oriented, runtime-composable ECS library written in JavaScript.
Features
Planned
npm i modecs
const ModECS = require('modecs')
const engine = ModECS()
// register components with a name and shape
engine.registerComponent('POSITION', { x: 0, y: 0 })
engine.registerComponent('TARGET', { x: 0, y: 0 })
engine.registerSystem(
// name of the system
'Movement',
// component types required by the system
['POSITION','TARGET'],
// a setup function to initialize the system with (happens once)
() => {
const speed = 10
// return the update function to be called every tick
// position and target components, as well as the entityId they exist on are injected
return (position, target, entityId) => {
position.x += target.x * speed * engine.time.delta
position.y += target.y * speed * engine.time.delta
}
}
)
// createEntity returns a new ID
const entityID1 = engine.createEntity()
engine.addEntity(entityID1)
const entityID2 = engine.createEntity()
engine.addEntity(entityID2) // must add entity to the engine before adding components
// add components to an ID with a name and shape
engine.addComponent(entityID2, 'POSITION', { x: 50 })
engine.addComponent(entityID2, 'TARGET', { x: 1, y: 1 }) // entity2 will move southeast
engine.start()
Check out the Introduction for more details.
FAQs
Small, fast, data-oriented, runtime-composable ECS library.
The npm package modecs receives a total of 22 weekly downloads. As such, modecs popularity was classified as not popular.
We found that modecs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.