Game Loop - Reading Assingment

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?
  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.
2 Likes
  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.

  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
  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.

Gaming;

  1. Initialise - environment
  2. Update - Physics code
  3. Draw - Then PLAY the game.
  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.
  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

  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

  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.

  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.

  1. It’s the core code that runs the game by looping it through three phases: initialize, update, draw. Within each of these phases is additional code that will be run through the loop as it cycles through them.

  2. Initialize, update, and draw.

  3. During the initialize phase, you should do the necessary setup for your game. Prepare a menu screen, create main entities for the game. Create the base layer for your game to run. In the draw phase, inputs are received and processed. Various states, objects, or physics are updated as they’re prepared to be drawn in the next phase. After all updates are complete, the results of the code are displayed on the user’s screen.

Reading Assingment - Game Loop

  1. What is a game loop?
  • A Game Loop makes a game interactiv and dynamic
  • It is a controled infinite lool to keep the game running until an event
  1. What phases does a game loop normally have?
  • Initialize -> Update -> Draw
  1. What happens in each phase?
  • Initialization: - Basic preparation of environment including system check, creation of main entities, preparation of the menu…
  • Update - Phase to prepare of all Objects to be drawn. All physics, coordinate system, health system are updated. Also user inputs are captured in this phase
  • Draw - Visualization of information on the screen. Containing functions to manage and draw levels, layer, Chars, HUD…
  • What is a game loop?

A game loop is a controlled infinite loop that both keeps the game running and responds to user input.

  • What phases does a game loop normally have?

A game loop normally has Initialize, Update and Draw phases.

  • What happens in each phase?

Initialize: Sets up the game and prepares the environment for the subsequent phases. This set up includes creating game components, preparing the main menu, detecting hardware capabilities, etc.

Update: This phase prepares the objects to be drawn and this includes capturing changes to object state (health points, upgrades, etc.). This phase is where the physics code and coordinate updates run.

Draw: This phase is where all the game information is put onto the screen.

  1. A game loop consists of the code that the game interactive and dynamic.

  2. Game loops usually has 3 phases: Initialize, Update and Draw.

  • With the Initialize phase any necessary game setup is initiated - preparing the environment for the update and draw phases. Setup includes: creating main entities, preparing the menu, detecting default hardware capabilities, etc

  • Update phase helps 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. A game loop is a controlled infinite loop which keeps the game running.

  2. The phases of a game loop are normally - Initialize, Update and Draw.

  3. Initialize - sets up the game and prepares the environment.
    Update - prepares all the objects of the game to be drawn
    Draw - draws the objects on screen.

The game loop is the central code of your game, split into different parts.

initialize, update and draw

Initialize: Do necessary setups and prepare envirmenet for the next phases. i.e.: create main entities, prepare the menu, detect default hardware capabilities

Update: Prepares objects to be drawn. Things as: run physics code, coordinate updates, health points changes, char upgrades, damage dealt, are beeing set up. The input will be captured and processed.

Draw: Phase where all information are put on screen. Runs code to manage and draw the levels, layers, chars, HUD etc

1 Like
  1. A game loop is the central code of a game spread into different parts.

  2. The phases a game loop usually has is initialize, update, and draw.

  3. In the initialize phase, the environment is prepared for the update and draw phases. This is also where any necessary game setup (loading screens, menus) are done.

The update phase is where all objects are prepared to be drawn. It is where all of the physics code goes.

The draw phase is where all of the objects are placed on the screen.

1 Like
  1. All the code that makes the game interactive and dynamic goes in the game loop. The game loop itself is a controlled infinite loop that makes your game keep running.

  2. 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. Here you should create your main entities, prepare the menu, detect default hardware capabilities, and so on.

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

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 Like
  1. The home loop is the controller code of the game
  2. Initialize, update, draw
  3. Initialize: setups the initial state of the game.
    Update: updates state - collision detection, movement, health, etc.
    Draw: recreates game visuals based on updated state.
1 Like