Socket
Book a DemoInstallSign in
Socket

@clockwork-engine/core

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clockwork-engine/core

A TypeScript game engine for deterministic, replayable games with platform-agnostic rendering

latest
Source
npmnpm
Version
2.9.0
Version published
Maintainers
1
Created
Source

@clockwork-engine/core

NPM Version

Core game engine for deterministic, replayable games with platform-agnostic rendering.

What's Included

  • GameEngine - Game state management and deterministic update loop
  • GameObject - Base class for game entities with automatic grouping
  • GameCanvas - Abstract canvas for rendering integration
  • GameRecorder / ReplayManager - Record and replay gameplay with frame-accurate playback
  • Serializer - Universal serialization for game state
  • Timer / PRNG - Deterministic timing and random number generation
  • Vector2D / CollisionGrid - Spatial math and collision detection
  • Platform abstraction - Interfaces for rendering, audio, and input

Installation

bun add @clockwork-engine/core

Note: This package requires a platform implementation for actual rendering:

Usage

import { GameEngine, GameObject, Vector2D, GameCanvas } from '@clockwork-engine/core'

class MyGame extends GameEngine {
  setup() {
    this.registerGameObject(new Player(new Vector2D(100, 100)))
  }
}

See the main README for full documentation and examples.

Keywords

game-engine

FAQs

Package last updated on 18 Dec 2025

Did you know?

Socket

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.

Install

Related posts