paddla-engine
v9.0.8
Published
PADDLA physics arcade engine — UVS 1.0 compatible (ChaCha20 + SHA-512)
Maintainers
Readme
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-engineUsage
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 PRNGsha256Hex,sha512HexENGINE_VERSION,CONFIG,BUMPER
