Game Loop - Reading Assingment

  1. What is a game loop?
    The game loop is the heart of the game, in a controlled infinite loop

  2. What phases does a game loop normally have?

The game loop generally contains the initialization, update, and draw phases

  1. What happens in each phase?

The initialization phase is used to do any necessary setup; create entities, menus, detect hardware etc. The Update phase prepares all objects to be drawn and contains the physics code. The Draw phase is where all the prepared data is arranged and drawn on the screen displayed to the user.

1 Like
  1. What is a game loop?
    The game loop is a controlled infinite loop that makes your game keep running; it’s the place where all your little pieces will be updated and drawn on the screen.

  2. What phases does a game loop normally have?
    I. Initialization
    II. Update
    III. Draw

  3. What happens in each phase?

I. Initialize

  • Creation of main entities
  • Menu preparations
  • Default hardware detection

II. Update

  • Drawing of objects objects
  • Calculating physics
  • Updating coordinates
  • Updating health points
  • Upgradings character
  • Setting damage dealt

III. Draw
Manage and draw

  • Levels
  • Layers
  • Chars
  • HUD
1 Like
  1. Game loop is the core code of your game, that is constantly active , thats why is called loop.
  2. Initialize, update, draw.
  3. Initialize is the part where the game starts, and all needed components like characters, scenario etc are draw. In the update phrase the player interacts with the game so something must change. Finally, in the draw phase the update is shown in the screen.
1 Like
  1. What is a game loop?
    It is the central code of the game and contstantly runs.
  2. What phases does a game loop normally have?
    Initializing, updating, draw
  3. What happens in each phase?
    Initializing sets up the correct environment such as hardware capabilities, menu and other entities.
    Updating handles things like physics, health of characters, character upgrades.
    Drawing puts all information an the screen
1 Like

Game loop is the central part of the your game.

1 Like
  1. What is a game loop?

A game loop is the central code of the game split into different parts.

  1. What phases does a game loop normally have?

Initialize, Update and Draw.

  1. What happens in each phase?

Initialize Phase:
Main entity creation, Menu preparation and detection of computer hardware and software.

Update Phase:
Prepare objects to be drawn, health point update, battle damage done

Draw Phase:
HUD, code to draw the levels, code to draw the characters.

1 Like

I have installed Gameloop software and it works very badly. https://gamehoy.com/en/

  1. It is the main part of the game code split into phases. It is infinite and is looping again and again, which ensures that the game is running.
  2. Initilize, update, draw
  • Initilize - game setup, prepares the game for next phases
  • Update - prepares object to be drawn - changing, updating
  • Draw - objects are drawn and output is on the screen.
1 Like

1.What is a game loop?
A game loop is a controlled infinite loop that makes the game run.

2.What phases does a game loop normally have?
A game loop normally has three (3) phases. Initialize, Update and Draw

3.What happens in each phase?

Phase Description
Initialize game setup and prepare environment for update and draw phases
Update game physics code, input is captured and processed, prepare all objects for draw phase
Draw all game information from previous phases is output to the screen
1 Like
  1. A controlled infinite loop that makes your game keep running
  2. Initialize, update and draw
  3. Initialize: any necessary game setup and prepare the environment for the update and draw phases
    Update: prepare all objects to be drawn
    Draw: manage and draw the levels, layers, chars, HUD and so on
1 Like