idxOf(cx: ?, cy: ?) → void
| arg | type | description |
|---|
| cx | ? | |
| cy | ? | |
inBounds(cx: ?, cy: ?) → void
| arg | type | description |
|---|
| cx | ? | |
| cy | ? | |
solidAt(cx: ?, cy: ?) → void
| arg | type | description |
|---|
| cx | ? | |
| cy | ? | |
setSolid(cx: ?, cy: ?, v: ?) → void
| arg | type | description |
|---|
| cx | ? | |
| cy | ? | |
| v | ? | |
solidAtWorld(wx: ?, wy: ?) → void
| arg | type | description |
|---|
| wx | ? | |
| wy | ? | |
hash2(x: ?, y: ?, s: ?) → void
| arg | type | description |
|---|
| x | ? | |
| y | ? | |
| s | ? | |
vnoise(x: ?, y: ?, s: ?) → void
| arg | type | description |
|---|
| x | ? | |
| y | ? | |
| s | ? | |
fbm(x: ?, y: ?, s: ?) → void
| arg | type | description |
|---|
| x | ? | |
| y | ? | |
| s | ? | |
genTerrain(seed: ?) → void
vtx(x: ?, y: ?, z: ?, nx: ?, ny: ?, nz: ?, r: ?, g: ?, b: ?) → void
| arg | type | description |
|---|
| x | ? | |
| y | ? | |
| z | ? | |
| nx | ? | |
| ny | ? | |
| nz | ? | |
| r | ? | |
| g | ? | |
| b | ? | |
quad(a: ?, b: ?, c: ?, d: ?) → void
| arg | type | description |
|---|
| a | ? | |
| b | ? | |
| c | ? | |
| d | ? | |
rebuildTerrainMesh( ) → void
carveCircle(wx: ?, wy: ?, radius: ?) → void
| arg | type | description |
|---|
| wx | ? | |
| wy | ? | |
| radius | ? | |
boxHitsSolid(x: ?, y: ?) → void
teamColor(team: ?) → void
applyTeamColors( ) → void
audioExists(url: ?) → void
playSound(url: ?, vol: ?, x: ?, y: ?) → void
| arg | type | description |
|---|
| url | ? | |
| vol | ? | |
| x | ? | |
| y | ? | |
makeWorm(name: ?, teamIndex: ?, isLocalPlayer: ?, isBot: ?) → void
| arg | type | description |
|---|
| name | ? | |
| teamIndex | ? | |
| isLocalPlayer | ? | |
| isBot | ? | |
spawnBoom(x: ?, y: ?, scale: ?) → void
| arg | type | description |
|---|
| x | ? | |
| y | ? | |
| scale | ? | |
spawnGib(x: ?, y: ?, color: ?) → void
| arg | type | description |
|---|
| x | ? | |
| y | ? | |
| color | ? | |
spawnFlash(x: ?, y: ?) → void
spawnJetPuff(x: ?, y: ?) → void
updateParticles(dt: ?) → void
killWorm(wm: ?, killerIndex: ?) → void
| arg | type | description |
|---|
| wm | ? | |
| killerIndex | ? | |
damageWorm(wm: ?, amount: ?, killerIndex: ?) → void
| arg | type | description |
|---|
| wm | ? | |
| amount | ? | |
| killerIndex | ? | |
explode(x: ?, y: ?, radius: ?, dmg: ?, knock: ?, ownerIndex: ?, terrainDmg: ?) → void
| arg | type | description |
|---|
| x | ? | |
| y | ? | |
| radius | ? | |
| dmg | ? | |
| knock | ? | |
| ownerIndex | ? | |
| terrainDmg | ? | |
hitscan(x: ?, y: ?, ang: ?, range: ?, dmg: ?, knock: ?, ownerIndex: ?, craterR: ?) → void
| arg | type | description |
|---|
| x | ? | |
| y | ? | |
| ang | ? | |
| range | ? | |
| dmg | ? | |
| knock | ? | |
| ownerIndex | ? | |
| craterR | ? | |
fillCircle(wx: ?, wy: ?, radius: ?) → void
| arg | type | description |
|---|
| wx | ? | |
| wy | ? | |
| radius | ? | |
spawnProjectile(kind: ?, x: ?, y: ?, vx: ?, vy: ?, wdef: ?, ownerIndex: ?) → void
| arg | type | description |
|---|
| kind | ? | |
| x | ? | |
| y | ? | |
| vx | ? | |
| vy | ? | |
| wdef | ? | |
| ownerIndex | ? | |
updateProjectiles(dt: ?) → void
reloadWeapon(wm: ?) → void
cycleWeapon(wm: ?, dir: ?) → void
| arg | type | description |
|---|
| wm | ? | |
| dir | ? | |
releaseRope(wm: ?) → void
updateRopeConstraint(wm: ?, dt: ?, shorten: ?, lengthen: ?) → void
| arg | type | description |
|---|
| wm | ? | |
| dt | ? | |
| shorten | ? | |
| lengthen | ? | |
updateCamera(dt: ?) → void
worldToScreen(wx: ?, wy: ?) → void
| arg | type | description |
|---|
| wx | ? | |
| wy | ? | |
setupEnvironment( ) → void
updateAimVisuals( ) → void
moveAxisX(wm: ?, amount: ?) → void
| arg | type | description |
|---|
| wm | ? | |
| amount | ? | |
moveAxisY(wm: ?, amount: ?) → void
| arg | type | description |
|---|
| wm | ? | |
| amount | ? | |
simulateWorm(wm: ?, dt: ?, wantLeft: ?, wantRight: ?, wantJump: ?, shorten: ?, lengthen: ?, thrust: ?) → void
| arg | type | description |
|---|
| wm | ? | |
| dt | ? | |
| wantLeft | ? | |
| wantRight | ? | |
| wantJump | ? | |
| shorten | ? | |
| lengthen | ? | |
| thrust | ? | |
nearestEnemy(wm: ?, selfIdx: ?) → void
| arg | type | description |
|---|
| wm | ? | |
| selfIdx | ? | |
updateBot(wm: ?, dt: ?, selfIdx: ?) → void
| arg | type | description |
|---|
| wm | ? | |
| dt | ? | |
| selfIdx | ? | |
dropToGround(x: ?, y: ?) → void
spawnPickup(kind: ?) → void
updatePickups(dt: ?) → void
applyAudioSettings( ) → void
btn(id: ?, text: ?, w: ?, bg: ?) → void
| arg | type | description |
|---|
| id | ? | |
| text | ? | |
| w | ? | |
| bg | ? | |
stepper(label: ?, value: ?, decId: ?, incId: ?) → void
| arg | type | description |
|---|
| label | ? | |
| value | ? | |
| decId | ? | |
| incId | ? | |
titleNode(text: ?, size: ?) → void
| arg | type | description |
|---|
| text | ? | |
| size | ? | |
menuRoot(children: ?) → void
| arg | type | description |
|---|
| children | ? | |
pressedSet(snap: ?) → void
handleLocalInput(dt: ?, snap: ?) → void
| arg | type | description |
|---|
| dt | ? | |
| snap | ? | |
onCallback(id: ?, _data: ?) → void
| arg | type | description |
|---|
| id | ? | |
| _data | ? | |
setWeapon(i: number) → void
| arg | type | description |
|---|
| i | number | |