Online Coding Lessons Game Development with Code 1 — Questions and Answers
Question 1: What is a game engine?
- The processor inside a gaming console
- Software that provides tools and frameworks for building video games (Correct answer)
- The graphics card in a computer
- The network server for online games
Correct answer: Software that provides tools and frameworks for building video games
A game engine is a software framework that provides common game development tools — like rendering, physics, and audio — so developers don't build everything from scratch.
Question 2: Which popular game engine uses C# as its primary scripting language?
- Unreal Engine
- Godot
- Unity (Correct answer)
- GameMaker
Correct answer: Unity
Unity primarily uses C# as its scripting language, making it one of the most widely used game engines for 2D and 3D games.
Question 3: What does 'FPS' stand for in game development?
- First Player Score
- Frames Per Second (Correct answer)
- Full Program Speed
- Final Pixel Size
Correct answer: Frames Per Second
FPS stands for Frames Per Second, a measure of how many individual frames/images are rendered per second — higher FPS means smoother animation.
Question 4: What is a 'sprite' in 2D game development?
- A background soundtrack
- A 2D image or animation used to represent characters or objects in a game (Correct answer)
- A type of programming loop
- A collision detection method
Correct answer: A 2D image or animation used to represent characters or objects in a game
In 2D game development, a sprite is a 2D bitmap image or animation used to represent game characters, items, and other visual elements.
Question 5: What is 'collision detection' in game development?
- Detecting game crashes
- Determining when two game objects physically overlap or touch (Correct answer)
- Finding bugs in game code
- Detecting network lag
Correct answer: Determining when two game objects physically overlap or touch
Collision detection is the computational process of determining when two or more game objects intersect or touch, which is crucial for gameplay interactions.
Question 6: What does the 'game loop' refer to in game programming?
- An infinite repeating level design
- The core cycle of updating game logic and rendering frames continuously (Correct answer)
- A circular track in a racing game
- A loop of background music
Correct answer: The core cycle of updating game logic and rendering frames continuously
The game loop is the central programming pattern that continuously processes input, updates game state, and renders each frame to keep the game running smoothly.
What is a game engine?