@fred3d/core
v0.0.2
Published
This package contains the core engine components of the Fred 3D framework. It provides the fundamental building blocks for the engine, including:
Readme
@fred/core
This package contains the core engine components of the Fred 3D framework. It provides the fundamental building blocks for the engine, including:
- Engine lifecycle management
- Entity Component System (ECS) architecture
- Plugin system for extensibility
Usage
import { Engine } from '@fred/core';
// Create a new engine instance
const engine = new Engine();
// Initialize and start the engine
engine.init();
engine.start();
// Update the engine each frame
function animate(time) {
const deltaTime = time / 1000; // Convert to seconds
engine.update(deltaTime);
requestAnimationFrame(animate);
}
requestAnimationFrame(animate);Structure
/engine- Core engine implementation/ecs- Entity Component System architecture/plugin- Plugin system for extensibility
Dependencies
- THREE.js - 3D rendering library
- TWEEN.js - Animation library
