Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new LessonTwoCpFive(ctx: CanvasRenderingContext2D, editor: Editor): LessonTwoCpFive

Properties

_constraint

_constraint: string = "none"

_goal

_goal: any

Optional _instrBoxes

_instrBoxes: Instruction[] = []

Optional _instrIndex

_instrIndex: number = 0

_instructions

_instructions: string = `<p>Lesson 2 - Checkpoint 5</p>` +`<p>GOAL: Create a variable c referring to an emoji("pirate", 75, 75),then write 2 print statements to print c.</p>`

_latestInstrIndex

_latestInstrIndex: number = 0

_name

_name: string = "l2c5"

_starterCode

_starterCode: "a = emoji("angry", 100, 100);b = emoji("cool", 100, 100);print(b, 100, 100);" = `a = emoji("angry", 100, 100);b = emoji("cool", 100, 100);print(b, 100, 100);`

ctx

ctx: CanvasRenderingContext2D

editor

editor: Editor

Accessors

instructions

  • get instructions(): string

name

  • get name(): string

numInstructions

  • get numInstructions(): number

Methods

checkGoal

  • checkGoal(document: Document, effects: Effect<any>[]): boolean

Optional drawGuides

  • drawGuides(): void

renderInstruction

  • renderInstruction(document: Document): void

renderLatestInstruction

  • renderLatestInstruction(document: Document): void

renderNextInstruction

  • renderNextInstruction(document: Document): void

renderPrevInstruction

  • renderPrevInstruction(document: Document): void

skipInstructions

  • skipInstructions(document: Document): boolean

Generated using TypeDoc