Computer Games and How They Work
שאלות 10
מפתח התשובות מוצג למורים מחוברים.
-
The Game Loop
In most computer games, the game loop runs many times each second. Which set of steps best describes what happens in one pass of the game loop?
Read player input, update the game state, and draw the next screen
Save the game file, close the window, and restart the level
Download new graphics from the internet and install them
Print the final score and end the program immediately
Think about what a game must do over and over again so that the player sees a moving, responsive world. -
Detecting Contact Between Objects
A game needs to know when the player's character touches an enemy or a coin. Which technique is used to check whether two objects overlap in the game world?
Encryption
Compression
Collision detection
Debugging
The name of this technique describes exactly what the game is checking when two objects meet. -
Game Mechanics
A game designer is planning a new platform game. Which of the following best describes a game mechanic?
The background music that plays during each level
The rules and actions that determine how the player interacts with the game
The file size of the game when it is downloaded
The company that publishes the game
Mechanics are the 'how it works' part of a game, such as jumping, shooting, or collecting items. -
Storing the Player's Score
A programmer writes code that stores the player's score and increases it each time a coin is collected. What is the score best described as in programming terms?
A network cable
A sprite image
A loop that never ends
A variable
Think about a named place in memory that holds a value which can change while the program runs. -
Frame Rate
Players often talk about a game running at 60 FPS. What does FPS stand for, and what does it measure?
Free players system, the number of players who can join a game
Fast programming speed, how quickly code is typed
Files per second, the number of files a game loads
Frames per second, the number of images the screen displays each second
Each picture shown on the screen in a game is called a frame. Think about how often the screen is refreshed. -
Choosing Actions Based on Conditions
In a game, the following rule is used: if the player's health is 0, then the game shows the 'Game Over' screen; otherwise the game continues. Which programming construct is used to make this decision?
A data file
A conditional statement
A comment
A pixel
The word 'if' in the rule is a clue. Think about the programming structure that chooses between two paths. -
Randomness in Game Design
Many games use random numbers to decide where enemies appear or which item drops after a battle. What is the main benefit of this in game design?
It removes the need for a player to make choices
It guarantees that the player always wins
It makes the game file smaller
It makes each play session less predictable and more varied
Consider how a game would feel if enemies always appeared in exactly the same places every time you played. -
Handling player input
In a computer game, pressing an arrow key on the keyboard creates an input event that the game program can detect and respond to, for example by moving the player's character.
True
False
Think about how a game knows that the player has done something, such as pressing a key, and how it reacts to it. -
-
Saving the game state
When a game is saved, the program stores the current state of the game, such as the player's position, health, and score, so that the game can be loaded later and continue from the same point.
True
False
Think about what information the game would need in order to restart exactly where the player stopped.
פרטים
- מקצועות
- מדעי המחשב
- קהל יעד
- חטיבת ביניים · כיתות ח׳–ט׳
- רמת קושי
- 3 מתוך 10
- שפה
- אנגלית
- מי יכול לראות
- כולם
- נוצר באמצעות AI
- Claude Haiku 5.5
- נוצר
תגובות