Log inGet started
World

Frag Arena: First-Person Shooter Kit with Deathmatch, Bots and Scoreboards

Branchmain
Branchesmain
Commit499680811e

README.md

cursor

The cursor rule of a fragKit match as one pure step a frame, with no engine calls: Cursor.step(state, inputs) -> state, actions. Inputs are whether a menu, the scoreboard, the lobby or the results is up, whether mouse-look by pointer lock is in effect, touch play, the pointer-lock request and grant, fragKit's own ask and the left button. Actions say what the weapon's pointerLock field should read, whether to ask for the lock or drop every ask, whether to hold fire off (a press that began while the cursor was free never fires) and whether to open the pause menu (the captured cursor was let go in play by Esc or focus loss). HUD.component calls it every frame and carries out the actions; fragKitCursor.testSuite checks it on its own.