Update Loop

Extending your application from com.jme3.app.SimpleApplication provides you with an update loop. This is where you implement your game logic (game mechanics).

Examples: Here you remote-control NPCs (computer controlled characters), generate game events, and respond to user input.

  1. Initialization (simpleInit())
  2. If exit is requested, then cleanup and destroy
  3. Input handling (listeners)
  4. Update game state
    1. User update (simpleUpdate() method)
    2. Entity logical update (Custom Controls)
  5. render
    1. Scene rendering
    2. User rendering (simpleRender() method)
  6. Repeat (goto 2)

Usage

Use…

basegame, controller, input, init, keyinput, loop, states, state

view online version