Game Concepts
Programming
Graphics
User Interaction
Game Design Principles
100

What is a game engine?

 A game engine is software designed to facilitate the development of video games by providing tools for graphics, physics, sound, and user input.

100

What language is p5play built on?

p5play is built on JavaScript.

100

What is a pixel?

A pixel is the smallest unit of a digital image, representing a single point of color on the screen.

100

What is user input in games?

User input refers to any action taken by the player, such as keyboard presses or mouse movements, used to control the game.

100

What is the importance of game mechanics?

 Game mechanics are the rules and systems that govern gameplay, making them crucial for player engagement and experience.

200

What is p5play used for?

p5play is a library for the p5.js framework used to create 2D games easily.

200

Define an array.

 An array is a data structure that can hold multiple values in a single variable, allowing for easy storage and access to lists of items.

200

How do you change the background color in p5.js?

The background color can be changed using the background(r, g, b); function, where r, g, and b are color values.

200

How do you detect key presses in p5.js?

 Key presses can be detected using the keyPressed() function in p5.js.

200

Define gameplay loop.

 The gameplay loop is the cycle of actions that players engage in repeatedly, including updating game state, rendering visuals, and processing user input.

300

Explain the purpose of sprites.

Sprites are 2D images or animations that represent characters, objects, or other elements in a game.

300

 How do you create a function in p5.js?

A function in p5.js is created using the syntax function functionName() { // code }.

300

 What are frames in game design?

Frames refer to individual images displayed in sequence to create animation or movement in a game.

300

What are mouse events in game design?

Mouse events are actions related to mouse movements or clicks that can trigger functions or change game states.

300

 How do you balance difficulty in a game?

Difficulty can be balanced by adjusting game mechanics, providing player feedback, and gradually increasing challenges.

400

 What is the role of a game loop?

The game loop continuously runs during the game, updating the game's state and rendering graphics to the screen.

400

What is the difference between a variable and a constant?

A variable can change its value during the program’s execution, while a constant remains fixed after it is assigned.

400

 Explain how to use images in p5play.

Images can be loaded using the loadImage() function and displayed with the image() function in p5play.

400

Explain how to create menus in p5play.

Menus can be created using buttons and text displayed on the screen, with event listeners to handle user selections.

400

What is playtesting and why is it important?

 Playtesting is the process of testing a game with real users to gather feedback and identify issues, ensuring the game is enjoyable and functional.

500

How do you implement collision detection?

Collision detection can be implemented using algorithms to determine if two objects in the game space overlap or intersect.

500

 Describe the use of event listeners in p5play.

Event listeners in p5play are used to respond to user actions, such as mouse clicks or key presses, triggering specific functions in response.

500

How can you create animations using p5play?

Animations can be created by changing the displayed sprite or image over time, typically using the game loop to update the frames.

500

How can you use sounds in your game?

Sounds can be incorporated using the loadSound() function to load audio files and sound.play() to play them during the game.

500

Describe the concept of narrative in games.

Narrative in games refers to the story and context that drives gameplay, enhancing the player's emotional investment and engagement in the experience.