2.2.7 Cycle 7 - Second Level
Design:
Objectives
Usability Features
Pseudocode
// Define above code
const levelConf = {
// The size of each grid
tileWidth: 64,
tileHeight: 64,
// Define what each symbol means (in components)
tiles: {
"@": () => [
add sprite("Bean"),
add area(),
add body(),
add anchor("bot"),
add "player" component,
],
"=": () => [
add sprite("Sand"),
add area(),
add body({ isStatic: true }),
add anchor("bot"),
add offscreen({ hide: true }),
add "Platform" component,
],
"$": () => [
add sprite("Coin"),
add area(),
add anchor("bot"),
add "coin" component,
],
"^": () => [
add sprite("Spike"),
add area(),
add anchor("bot"),
add "danger" component,
],
">": () => [
add sprite("Grunt"),
add area(),
add anchor("bot"),
add body(),
add Patrol() component,
add offscreen({ hide: true }),
add "enemy" component,
],
"#": () => [
add sprite("Forest"),
add area(),
add body({ isStatic: true }),
add anchor("bot"),
add offscreen({ hide: true }),
add "Platform" component,
],
"~": () => [
add sprite("Portal"),
add area({ scale: 0.5 }),
add anchor("bot"),
set position to (0, -12),
add offscreen({ hide: true }),
add "Portal" component,
],
},
}
Development:
Outcome
Challenges
Testing:
Tests
Test
Instructions
What I expect
What actually happens
Pass/Fail
Evidence
Last updated