Game Loop - Reading Assingment

#1

Welcome to this assignment. Please answer the following questions from the lecture. Feel free to ask questions here as well if you need the help.

  1. What is a game loop?
  2. What phases does a game loop normally have?
  3. What happens in each phase?
0 Likes

#2
  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

#3
  1. The game loop is the entire game code, broken up into different pieces that runs in an infinite loop that provides the game experience.

  2. There are generally 3 phases in a game loop: Initialize, Update and Draw

  3. Initialize: This phase is where you prepare the game environment, menus and setup.
    Update: This phase is where you prepare all objects within the environment to be drawn. This is also the phase where input is captured and processed.
    Draw: This is the phase that processes all information from Initialize and Update to put to screen.

0 Likes

#4
  1. What is a game loop?
    A game loop is the major central part of a game which will loops the code again and again when the game is started.
  2. What phases does a game loop normally have?
    three states of initializing, updating and drawing.
  3. What happens in each phase?
    initializing - pregame checking and run the menu.
    updating - receiving input, and run the code to calculate the corresponding effect in the game
    draw - present the effect
0 Likes

#5
  1. What is a game loop?
    A game loop is the looping logic central to a game’s code which maintains the running of the game.

  2. What phases does a game loop normally have?
    It follows the phases Initialize, Update, and Draw.

  3. What happens in each phase?
    These initialize the environment, update the specific data needed to properly populate the environment, and then drawing them to the display.

0 Likes

#6

Gaming;

  1. Initialise - environment
  2. Update - Physics code
  3. Draw - Then PLAY the game.
0 Likes

#7
  1. *What is a game loop?
    The home loop is the controller code of the game
  2. What phases does a game loop normally have?
    Initialize, update, draw
  3. *What happens in each phase?
    Initialize: setups the initial state of the game.
    Update: updates state - collision detection, movement, health, etc.
    Draw: recreates game visuals based on updated state.
0 Likes

#8
  1. What is a game loop?
    A loop that runs constantly while a game is running to keep what you see up to date with the actions you are taking

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

  3. What happens in each phase?
    Initial makes menus renders starting interface
    Update looks for changes
    Displays new reality

0 Likes

#9
  1. What is a game loop?
    It is basically an infinate loop that repeats some things (for example showing the main menu) and waits until there is external input (mouse click, key press, etc). Then it moves to the next section of the game loop (for example the startup screen)

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

  3. What happens in each phase?

    initialize phase: it prepares the basics for the game (menu’s / hardware capabilities) and everything the other phases need

    update phase: prepares all objects to be drawn / settings to be made (damage dealt / physics), also here the input will be captured and processed

    draw phase: contains the code that will show everything on the screen

0 Likes

#10
  1. What is a game loop?
    It is a controlled infinate loop that keeps your game running.

  2. What phases does a game loop normally have?
    Initialization, Update and Draw.

  3. What happens in each phase?
    The initialization phase for game startup and to prepare the environment for the update and draw phases. The update phase updates all objects and prepares them for the draw phase, this is also where all input will be captured and processed. The Draw phase draws the new image and displays it for the user.

0 Likes

#11
  1. The circle of code which perpetually runs your game, an ‘infinite loop’.

  2. Initialization, Update, & Draw

  3. The Initialize stage is where the game brings up the code to be used, the Update is where said code is updated to appear where needed for the Draw phase. And finally the Draw phase is where it creates a new image and presents it to the player.

0 Likes