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.
Functional, minimal, data-driven, ultra-high performance ECS library written in Javascript
Functional, minimal, data-oriented, ultra-high performance ECS library written using JavaScript TypedArrays.
🔮 Simple, declarative API | 🔥 Blazing fast iteration |
🔍 Powerful & performant queries | 💾 Serialization included |
🍃 Zero dependencies | 🌐 Node or browser |
🤏 <5kb minzipped | 🏷 TypeScript support |
❤ Made with love | 🔺 glMatrix support |
🚀 Unparalleled performance benchmarks
noctjs/ecs-benchmark | ddmills/js-ecs-benchmarks |
Bokeh Network Engine (coming soon) |
Phaser 4 |
XREngine |
npm i bitecs
🏁 Getting Started |
📘 API Documentation |
import {
createWorld,
addEntity,
defineComponent,
addComponent,
defineQuery,
defineSystem,
Types,
} from 'bitecs'
const world = createWorld()
const Vector3 = { x: Types.f32, y: Types.f32, z: Types.f32 }
const Position = defineComponent(Vector3)
const Velocity = defineComponent(Vector3)
const eid = addEntity(world)
addComponent(world, Position, eid)
addComponent(world, Velocity, eid)
const movementSystem = defineSystem((world) => {
const ents = movementQuery(world)
for (let i = 0; i < ents.length; i++) {
const eid = ents[i]
Position.x[eid] += Velocity.x[eid]
Position.y[eid] += Velocity.y[eid]
Position.z[eid] += Velocity.z[eid]
}
})
setInterval(() => {
movementSystem(world)
}, 16)
FAQs
Functional, minimal, data-oriented, ultra-high performance ECS library written in Javascript
We found that bitecs 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.