Skip to content

constarik/paddla-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

paddla-engine

PADDLA physics arcade engine — UVS 1.0 compatible.

Version: 9.0.1
Protocol: UVS v1
PRNG: ChaCha20 (RFC 8439) + SHA-512

Install

npm install paddla-engine

Usage

const { createInitialState, tick, replay, ENGINE_VERSION } = require('paddla-engine');

const state = createInitialState(serverSeed, numBalls, betPerBall);
const events = tick(state, { x: 4.5, y: 2.0 });

Exports

  • createInitialState(serverSeed, numBalls, betPerBall)
  • tick(state, bumperTarget)
  • replay(serverSeed, numBalls, inputLog, betPerBall)
  • finishGame(state)
  • UVS_PRNG — ChaCha20-based PRNG
  • sha256Hex, sha512Hex
  • ENGINE_VERSION, CONFIG, BUMPER

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors