Game Loop - Reading Assingment

  1. A game loop is the central code that keeps the game running via a controlled loop.

  2. The phases of a game loop: Initialize, Update and Draw.

  3. Initialize - This first phase sets up the game’s environment and any necessary setup, to be handled by the Update and Draw phases.
    Update - Then second phase updates the properties of game objects and captures/processes player input.
    Draw - The final stage renders visual elements to the screen.

1 Like

A game loop is a controlled infinite loop that allows players to interact with their character in a game.

Three phases: initialize, update, and draw.

The initialize phase is where the set-up for the next two phases, update and draw, occurs.
There was a comment that initialize isn’t part of the game loop proper…
I haven’t written one yet so I have no opinion about that yet.

The update phase is when user inputs and changes in state and such are implemented, and the draw phase is when the various elements are put on the screen.

1 Like
1. What is a game loop?
	a. The game loop itself is a controlled infinite loop that makes your game keep running
2. What phases does a game loop normally have? What happens in each phase?
	a. initialize: do game setup; prepare the environment for the other phases
	b. update : prepare all objects to be drawn; input will be captured and processed
	c. draw: all information will be put on the screen
1 Like
  1. A game loop is a controlled infinite loop which is needed in order to keep your game up and running. In easy words, you can see this as a while(true){} loop which never ends, but it is your intention that is never ends, otherwise the game is not running/playable anymore. You can see it as the overall control flow of your game. It is a loop because the game is doing this again and again until someone/something forces the game to stop.

  2. Normally, there are three main parts inside a game loop: initialoze, update and draw

  3. Initialize: This part is setting up all the necessary stuff in order to make the game playable. It prepare things (e. g. setting up environment) for making the phases uodate and drawing possible. So to speak, the basic requirements are defined and provided (e. g. define main menu…)
    Update: You could imagine this phase as the “logic” of the game, where all interactions are defined (physcis, movements, health points …). This phase is also needed in order to prepare the drawn phase.
    Drawn: When everything is up to date the draw phase is entered, where everything comes to life which means you could see the game itself (characters, game layout…). This phase is all about what the user sees/ interacts with.

1 Like
  1. A game loop is the infinite looping process the game follows in order to maintain the player experience.

  2. Initialise, update and draw OR input, update and render depending which version of the ‘game loop’ you subscribe to.

  3. Initialise: Build current scene
    Update: Manage user input, update game object properties
    Draw: Render game objects to the screen

1 Like
  1. What is a game loop?
    A controlled infinite loop that keeps the game running.

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

  3. What happens in each phase?
    Initialize - prepares the the game and environment
    Update - sets up objects to be drawn
    Draw - Shows the objects on screen

1 Like
  1. What is a game loop?

An infinite loop that runs the game

  1. What phases does a game loop normally have?

Initialise, update and draw

  1. What happens in each phase?

Initialise will set the game up so that it can start running, i.e. the variables are set
Update runs the game logic
Draw triggers rendering on the screen

1 Like
  1. What is a game loop?
    A Game loop is an infinite loop that keeps the game running and acts as central code of a game
  2. What phases does a game loop normally have?
    Initialize, update, draw
  3. What happens in each phase?
    The initialize phase is used for setting up and preparing the update and draw phases.
    The update phase always for any form of input to be processed. Some examples being character health bars and damage dealt
    The draw phase is the phase that puts the information on the screen, showing off the game function of things and showing all the little displays and actions done in a game
  1. What is a game loop?
    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.

  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 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.
    The draw phase is 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. The game loop is the controller code for the game.

  2. Game loop has three phases- Initialize, Update & Draw

  3. a. Initialize - Start running the games menu option main functions.
    b. Update - Write & combine physics code - if this then that, for health, and movement.
    c. Draw - Objects are displayed on screen.

1. What is a game loop?
Game loop is the central part of the your game. It divided into different parts.
2. What phases does a game loop normally have?
There are 3 phases and they are initialize, update and drew.
3. What happens in each phase?
Initialize : It is used to do necessary game set up and prepare the environment for the update and drew phases.
Update: it is to prepare all objects to be drawn. It is also where all the physics code, characters changes and the input being captured and processed.
Drew: When everything is updated and ready the information will be put on the screen.

  1. What is a game loop?
    It’s a controlled infinite loop that makes your game keep running.

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

  3. What happens in each phase?

  • Initialize: necessary game setup and prepares the environment for the update and draw phases. Here is where we create our main entities, prepare the menu, detect default hardware capabilities and more.

  • Update: This is where we prepare all objects to be drawn. This is where all the physics code, coordinate updates, health points changes, char upgrades, damage dealt and other operations alike. .

  • Draw: When everything is updated and ready we enter this phase. We put all info on the screen. This contains all the code to manage and draw levels, layers, chars, HUD and more.

  1. A game loop is the overall loop that runs your code in a controlled infinite loop.

  2. Intialize, update, and draw

  3. Intialize - this is the part where set up for your game is done
    Update - calculate physics, levels, hit points and coordinates
    Draw - after all values have been updated in this part everything is drawn to the screen. i

  1. A game loop in the loop that constantly runs as a play experiences the game.

  2. Initialize, update, draw

  3. Initialization: Setup for hardware
    Update: update changes from other players, change of score, and other stats
    Draw: Display on screen the newest state of the game.

  1. 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.
  2. Phases of game loop are generally : initialize , update , draw .
  3. The initialize phase is used to do any necessary game setup and prepare the environment for the update and draw phases.
    Update phase is usully used 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 is where all this information is put on the screen.
  1. What is a game loop?

It’s an infinite loop that keep the game running.

  1. What phases does a game loop normally have?

3 phases: Initialise, Update and Draw.

  1. What happens in each phase?
  • Prepare the environment for other 2 stages.
  • Prepare all objects to be drawn.
  • Draw all prepared information onto the screen.
1 Like
  1. What is a game loop?
    A controlled infinite loop that keeps the game running
  2. What phases does a game loop normally have?
    Initialize, Update and Draw.
  3. What happens in each phase?
    Initialize: Game setup to prepare the environment for the other phases
    Update: Prepare objects to be drawn and process game logic
    Draw: updated information is put on the screen
2 Likes
  1. 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.
  2. Initialize, Update and Draw
  • Initialize - setup and preparation of game environment based on config etc
  • Update - when various things are calculated and the ‘model’ state of various entities are updated
  • draw - concerned with the displaying the view based on the state of the model
2 Likes

1- A game loop is the process that a game program repeats over and over
2- The phases of the game loop are initialization, update and draw
3- initialization prepares everything, update checks inputs, physics, etc., draw updates the display

1-The game loop is the heart of every game, it is what it makes the game interactive , dynamic and running.

2- The game loop has 3 phases: initialize, update und draw.

3- in initialize: all the necessary setup and the preparation of the environment to the update phase.
update: in this phase ,all objects, all the physics code, char upgrades and etc will be prepared to be drawn.
Drawn: in this phase, we put the prepared procedures done in the previous phases on the screen