Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

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

Properties

_constraint

_constraint: string = "none"

_goal

_goal: any

Optional _instrBoxes

_instrBoxes: Instruction[] = []

Optional _instrIndex

_instrIndex: number = 0

_instructions

_instructions: string = `<p>Lesson 2 - Checkpoint 3</p>` +`<p>GOAL: Draw 2 emojis on the CANVAS.</p>`

_latestInstrIndex

_latestInstrIndex: number = 1

_name

_name: string = "l2c3"

_starterCode

_starterCode: string = `print(emoji("wink", 100, 100), 120, 150);\n`

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