|
|
|
@ -1486,56 +1486,44 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 29,
|
|
|
|
|
"title": "Lesson 15 - Space Game: Pre-Lecture Quiz",
|
|
|
|
|
"title": "Lesson 15 - Space Game - Introduction: Pre-Lecture Quiz",
|
|
|
|
|
"quiz": [
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "JavaScript is an unpopular language for building games",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "true",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "false",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "Pub/Sub is a preferred pattern for managing the game's assets and flow",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "true",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "false",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "Object inheritance can be handled by either using classes or composition",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "true",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "false",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@ -1543,56 +1531,48 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 30,
|
|
|
|
|
"title": "Lesson 15 - Space Game: Post-Lecture Quiz",
|
|
|
|
|
"title": "Lesson 15 - Space Game - Introduction: Post-Lecture Quiz",
|
|
|
|
|
"quiz": [
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "Classes rely on inheritance to ascribe to behaviors",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "true",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "false",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "Composition is the preferred design pattern for game objects",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "true",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "false",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "Pub/Sub stands for:",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "Publish/Subscribe",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "Print/Staple",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "Publish/Sanitize",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@ -1600,56 +1580,44 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 31,
|
|
|
|
|
"title": "Lesson 16 - Space Game: Pre-Lecture Quiz",
|
|
|
|
|
"title": "Lesson 16 - Space Game - Draw Hero and Monsters to Canvas: Pre-Lecture Quiz",
|
|
|
|
|
"quiz": [
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "The Canvas element is what you use to draw on a screen",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "true",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "false",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "You can only draw simple geometric shapes using the Canvas API",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "true",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "false",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "The point 0,0 is in the bottom left",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "true",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "false",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@ -1657,56 +1625,48 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 32,
|
|
|
|
|
"title": "Lesson 16 - Space Game: Post-Lecture Quiz",
|
|
|
|
|
"title": "Lesson 16 - Space Game - Draw Hero and Monsters to Canvas: Post-Lecture Quiz",
|
|
|
|
|
"quiz": [
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "You can perform drawing operations directly on the Canvas",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "true",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "false",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "You listen to the onload event to know when an image has loaded asynchronously",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "true",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "false",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "You draw images onto a screen with an operation called:",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "paintImage()",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "drawImage()",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "draw()",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@ -1714,56 +1674,48 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 33,
|
|
|
|
|
"title": "Lesson 17 - Space Game: Pre-Lecture Quiz",
|
|
|
|
|
"title": "Lesson 17 - Space Game - Adding Motion: Pre-Lecture Quiz",
|
|
|
|
|
"quiz": [
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "Any object on the screen can receive keyboard events",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "true",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "false",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "You can use the same method to listen to key events and mouse events",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "true",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "false",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "To make things happen at a regular interval, you use what function?",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "setInterval()",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "setTimeout()",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "sleep()",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@ -1771,56 +1723,52 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 34,
|
|
|
|
|
"title": "Lesson 17 - Space Game: Post-Lecture Quiz",
|
|
|
|
|
"title": "Lesson 17 - Space Game - Adding Motion: Post-Lecture Quiz",
|
|
|
|
|
"quiz": [
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "You always need to redraw the screen",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "true",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "false",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "What is a game loop?",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "A function that ensures the game can be restarted",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "A function that decided how fast the game should run",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "A function that is invoked at regular intervals and draws what the user should see",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "A good case for redrawing the screen is",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "A user interaction happened",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "Something has moved",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "Time has passed",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@ -1828,56 +1776,52 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 35,
|
|
|
|
|
"title": "Lesson 18 - Space Game: Pre-Lecture Quiz",
|
|
|
|
|
"title": "Lesson 18 - Space Game - Adding A Laser and Detecting Collisions: Pre-Lecture Quiz",
|
|
|
|
|
"quiz": [
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "Collision detection is how we detect if two things have collided",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "true",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "false",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "How can we remove an item from the screen?",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "Call the garbage collector",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "Mark it as dead, only paint not dead objects next time we draw the screen",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "Place the item on a negative coordinate",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "A good way to simulate firing a laser in JavaScript is:",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "make a visual element respond to a key event",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "create animated gifs",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "make enemies blow up at intervals",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@ -1885,56 +1829,52 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 36,
|
|
|
|
|
"title": "Lesson 18 - Space Game: Post-Lecture Quiz",
|
|
|
|
|
"title": "Lesson 18 - Space Game - Adding A Laser and Detecting Collisions: Post-Lecture Quiz",
|
|
|
|
|
"quiz": [
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "In collision detection you compare two",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "circles and whether they intersect",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "rectangles and whether they intersect",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "distances between two points",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "The reason for implementing a cooldown effect is because",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "Making the game harder as you can't repeatedly fire a laser to destroy enemies",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "JavaScript can only produce a certain number of events per time unit, so you need to limit them",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "Constants are identifiable in code because",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "they are written in capital letters",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "they have specific names",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "they are written in kebab-case like-this",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@ -1942,56 +1882,52 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 37,
|
|
|
|
|
"title": "Lesson 19 - Space Game: Pre-Lecture Quiz",
|
|
|
|
|
"title": "Lesson 19 - Space Game - Scoring and Lives: Pre-Lecture Quiz",
|
|
|
|
|
"quiz": [
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "How do you draw text on a screen using the Canvas element?",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "Place text inside a div or span element",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "Call drawText() on the Canvas element",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "Call fillText() on the context object",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "Why do you have the concept of 'lives' in a game?",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "To show how much damage you can take",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "So that the game doesn't end straight away, but you have n number of chances before the game is over",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "Add color to text on Canvas using",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "fillColor",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "fillStyle",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "textAlign",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@ -1999,56 +1935,52 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 38,
|
|
|
|
|
"title": "Lesson 19 - Space Game: Post-Lecture Quiz",
|
|
|
|
|
"title": "Lesson 19 - Space Game - Scoring and Lives: Post-Lecture Quiz",
|
|
|
|
|
"quiz": [
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "What's a fun way to show how many lives a player has left?",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "a number of ships",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "a points system",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "How do you center text in the middle of the screen using the Canvas element?",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "You use Flexbox",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "You instruct the text to be drawn at the x coordinate of the client window width/2",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "You set the textAlign property to the value center on the context object",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "In code, deduct a life like this:",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "this.life-",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "this.life--",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "this.life++",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@ -2056,56 +1988,52 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 39,
|
|
|
|
|
"title": "Lesson 20 - Space Game: Pre-Lecture Quiz",
|
|
|
|
|
"title": "Lesson 20 - Space Game - End and Restart: Pre-Lecture Quiz",
|
|
|
|
|
"quiz": [
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "When is a good time to restart a game",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "when a player wins or loses",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "whenever",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "When should a game end",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "when an enemy ship is destroyed",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "when a hero ship is destroyed",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "when points are collected",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "A good way to add a level to your game is:",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "Increment the amount of points necessary to complete a given level",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "Add more players to the game",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "Add more graphics to the game",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
@ -2113,56 +2041,52 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": 40,
|
|
|
|
|
"title": "Lesson 20 - Space Game: Post-Lecture Quiz",
|
|
|
|
|
"title": "Lesson 20 - Space Game - End and Restart: Post-Lecture Quiz",
|
|
|
|
|
"quiz": [
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "What is a good pattern to use when a game end condition has been met?",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "Display a suitable message",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "Quit the game",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "Display a suitable message, offer the player to restart, and display what key to hit for that action",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "You should offer a restart only when the game has ended",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "true",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "false",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"questionText": "",
|
|
|
|
|
"questionText": "A good way to clear the EventEmitter when ending a game is:",
|
|
|
|
|
"answerOptions": [
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "clearing listeners",
|
|
|
|
|
"isCorrect": "true"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "clearing the screen",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"answerText": "",
|
|
|
|
|
"isCorrect": ""
|
|
|
|
|
"answerText": "closing the game window",
|
|
|
|
|
"isCorrect": "false"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|