Game Loop - Reading Assingment

1 & 2 - game loop is the main code of the that runs through the following phases: initialize, update, and draw.

3 - initialize : the game environment is setup, characters, NPCs, etc prepared, background drawn etc.
update: each entity in the game (char, npc, background elements) is updated as needed
draw: next iteration of the screen is drawn with all updates in place

1 Like
  1. Its the central part of the game. - it keeps running over and over again unless it gets and input to change state.

  2. initialise, update and draw

  3. initialise - prepare environment, detect hardware. prepare for other phases; update- manage the physics, scoring, health, damage etc; draw - the presentation of all the necessary details on the screen

  1. What is a game loop?
    It is a controlled infinite loop that makes the game keep running.

  2. What phases does a game loop normally have?
    Initialize; Update; Draw.

  3. What happens in each phase?
    Initialize: Setup and environment preparation for the next phases.
    Update: Prepare all objects to be drawn, and where the input will be captured and processed.
    Draw: Where all the information is put on the screen.

1 Like
  1. The game loop is the central code of the game that makes the game interactive and dynamic. Containing 3 phases, the game loop is a controlled infinite loop that makes the game keep running.
  2. The game loop contains the following phases: initialize, update, and draw.
  3. The initialize phase prepares the game environment for the following two steps by setting up the game (creating main entities, preparing the menu, detecting default hardware capabilities, etc. The update phase prepares all game objects to be drawn, and where all input is captured and processed - including physics code, coordinate updates, health point changes, char upgrades, damage dealt, etc. The draw phase is where everything (updated and ready) is put onto the screen, and contains all the code required to manage and draw levels, layers, chars, HUD, etc.
1 Like
  1. What is a game loop?
    -Central code of the game.

  2. What phases does a game loop normally have?
    -Initialize,update, and draw.

  3. What happens in each phase?
    -Initialize: Prepares the environment for the update and draw phases.
    -Update: Collects and processes inputs.
    -Draw: Information is put on the screen.

1 Like
  1. The game loop is the section where all the code which makes a game interactive is present. It is a controlled infinite loop.
  2. A game loop has the following three phases: Initialize, Update and Draw.
  3. Initialize: : In this phase, we set up the environment of the game and prepare it for the next phase i.e. update phase.
    Update: In this phase, we prepare all the objects to be drawn. All of the physics code goes into this phase. We also capture and process user input in this phase.
    Draw: In this phase we put all the objects on the screen.
1 Like
  1. What is a game loop?

This is the heart of all computer programs, this is the code that makes the game interactive and dynamic.

  1. What phases does a game loop normally have?
    Main loop has three phases. Initialize, Update and Draw
  2. What happens in each phase?
    Initialize - all game setup goes here, here main entities should be created, prepare the menu, detect default hardware capabilities, etc
    Update - phase is to prepare all objects to be drawn, all the physics code, coordinate updates, health points changes goes here.
    Draw - this is were we draw all objects we prepared in previous stage
1 Like
  1. A game loop is a entire code that makes a game playable and change goes on in the game loop, the game loop is a controlled infinite loop that makes your game playable and running.

  1. update phase, draw phase, initialize phase.

  1. The ~initialize phase~ is used to do any necessary tasks for the game setup and develop the environment for the update phase and draw phase, the ~update phase~ is mainly used to prepare all of the pieces to be made, the ~draw phase~ is where all the information is put onto the screen this function should have all the code to manage and make the levels and layers and more.
1 Like

:one: What is a game loop?

A game loop is an infinite loop which prints continuous updates of the state of a game to the client.
It is commonly referred to as the heart of the game as it is responsible for initializing game components, updating the state and printing to the client.

:two: What phases does a game loop normally have?

A game loop will generally have 3 phases:

  1. Initialize
  2. Update, and
  3. Draw

:three: What happens in each phase?

  1. Initialize:
    During the initialize phase, all of the primary components of the game which typically don’t update regularly during game-play are entered into and prepared for the update and draw phase.
    The components which are loaded during the initialize phase are things like game menu’s, the main entities (sprites/characters), backgrounds, detecting hardware capabilities and so on…
    The initialize phase prepares the base of the game for the characters and dynamic components of the game to be leveraged in later stages of the game loop.

  2. Update:
    The purpose of the update phase is to enact on all of the necessary state changes to prepare for the draw phase.
    These state changes include physics calculations, health/wealth/points changes based upon rules set by the engine and momentum of the loop.
    Once the update phase has gone through all of the necessary changes to the state, it can move onto the last phase of the cycle…

  3. Draw:
    After the current iteration of the loop has updated the ‘new’ state of the game, the program must now draw these changes to the client.
    This could be movement from the player, less health, another coin etc.
    Whatever mechanics of the game have changed and are represented in the updated state of the game are now represented to the player to act accordingly.
    Once this draw phase is finished, the game loop typically goes back to the start and begins the next iteration.

1 Like
  1. Game loop is an infinite loop that continuously reads a program and renders it on the screen at a specified fps

  2. game loop has 3 phases, initialize, update ,and draw

  3. Initialize, sets up the environment, physics ect.
    Update prepared obj to be drawn and reads the physics continuously
    Draw, everything is rendered on the screen

1 Like

1.What is a game loop?
A game loop is where all the code for the game goes but it is all separated into pieces. It is a controlled infinite loop that keeps the game going.

2.What phases does a game loop normally have?
The phases of a game loop are initialize, update, and draw.

3.What happens in each phase?
Initialize: Phase where setup takes place and the environment is prepared for the next phases.
Update: Phase were all objects are prepared to be drawn, the physics code is run, character upgrades are leaded, coordinates are updated, input is processed, etc…
Draw: Phase where all of the information prepared in the last two phases is put onto the screen.

1 Like
  1. Game loop is a controlled infinite loop that makes a game running.

  2. Game loop has three phases: initialize, update, and draw

  3. In the initialize phase, game maps all the initial (default) UI and items. In the update phase, the game update its property and state according to the input of the user. Lastly, in the draw phase, the game draws out the UI from its state.

1 Like
  1. What is a game loop?
  • All the code that makes the game interactive and dynamic goes in the game loop, but is separated into different pieces. The game loop itself 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.
  1. What phases does a game loop normally have?
  • Initialize, Update and Draw
  1. What happens in each phase?
  • The initialize is preparing the game setup and environment for the draw phases.
  • update phase is to prepare all objects to be drawn, so this is where all the physics code, coordinate updates, health points changes, char upgrades, damage dealt and other similar operations belong.
    -draw phase where all this information is put on the screen.
1 Like
  1. What is a game loop?
    Game Loop is a piece of code that makes a game interactive and dynamic. It is a controlled infinite loop that makes your game keep running.

  2. What phases does a game loop normally have?
    There are basically three phases -

    1. Initialize
    2. Update
    3. Draw
  3. What happens in each phase?

    1. Initialize: All the necessary steps for game setup are initiated here along with the preparation of the environment for update and draw phases. This is where the entities get created.

    2. Update: This is where objects to be drawn are prepared and other operations are handled along with capturing and processing input.

    3. Draw: Phase where each entity gets drawn.

1 Like
  1. A game loop is the central code of the game.
    2 The phases of a game loop are: initialize, update, draw.
  2. During initialize phase the environment and game set-up are prepared. During update phase, the objects to be drawn are prepared and input is captured and processed. In the last phase, the result of previous phases are shown on screen.
1 Like
  1. What is a game loop?
    The game loop is the central code of a game.

  2. What phases does a game loop normally have?
    Initialize, update and draw.

  3. What happens in each phase?
    The initialize phase is used to do any necessary game setup and prepare the environment for the update and draw phases.

The main purpose of the update phase is to prepare all objects to be drawn, so this is where all the physics code, coordinate updates, health points changes, char upgrades, damage dealt and other similar operations belong. This is also where the input will be captured and processed.

When everything is properly updated and ready, we enter the draw phase where all this information is put on the screen. This function should contain all the code to manage and draw the levels, layers, chars, HUD and so on.

1 Like
  1. What is a game loop?
    A controlled infinite loop that runs code based on a global state.
  2. What phases does a game loop normally have?
    Initialize, Update, Draw.
  3. What happens in each phase?
    Initialize runs game setup and prepares environment for the next two phases. Update prepares all objects to be drawn, and is where physics code, coordinate updates, health point changes, etc. go. Draw is the phase where all the information is then put on the screen, and the loop begins again.
1 Like
What is a game loop?
- a controlled infinite loop that makes your game keep running.

What phases does a game loop normally have?
- A game loop basically comprises 3 phases: initialize, update, draw

What happens in each phase?
- initialize = do any necessary game setup and prepare the environment for the next phases
- update = prepare all game objects related operations and where the user input will be captured and processed
- draw = where all information are shown visually to the user.
1 Like
  1. The game loop is a controlled infinite loop which is the heart of the game. It makes the game work.
  2. The game loop has three phases: initiate, update, and draw.
  3. In the initiate phase, the environment for the game is set up. In the update phase, items are prepared to be drawn; it determines how changes in the game go. In the draw phase, everything is displayed on the screen.
1 Like
  1. What is a game loop?

    The game Loop is the central part of the game and dictates which part of the game code is executed at any given time

  2. What phases does a game loop normally have?
    Initialize
    Update
    Draw

  3. What happens in each phase?
    Initialize: In this phase we load all the necessary components required for the game to run properly
    Update: in this phase we define the core logic of the game such as physics, colliders, and how it interacts with health points etc
    Draw: In this phase we start loading items such as the players, NPC, objects in the game etc

1 Like