User Tools

Site Tools


ugbasic:user:kw:begin_gameloop
Translations of this page:


ugBASIC User Manual

BEGIN GAMELOOP

SYNTAX

   BEGIN GAMELOOP

PURPOSE

Define the starting point of a game loop. A game loop is nothing more than an implicit loop, within which all the logic of the program (or of the game) runs. The end point of a game loop can correspond to the end of the program or to the END GAMELOOP statement.

In some platforms, it will implictly “sync” the activity with the vertical blank, so the action inside the loop should be executed in a single “frame” of game.

EXAMPLE

  BEGIN GAMELOOP

ABBREVIATION

 BEGIN Gl

AVAILABLE ON

  • Commodore 64
  • Commodore 128 (Zilog Z80)
  • Commodore 128 (MOS 8502)
  • ColecoVision
  • Olivetti Prodest PC128
  • Amstrad CPC 664

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY