Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

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

Properties

_constraint

_constraint: string = "none"

_goal

_goal: any

Optional _instrBoxes

_instrBoxes: Instruction[] = []

Optional _instrIndex

_instrIndex: number = 0

_instructions

_instructions: string = `<p>Lesson 3 - Checkpoint 4</p>` +`<p>GOAL: Allow only happy emojis to be printed on the CANVAS.</p>`

_latestInstrIndex

_latestInstrIndex: number = 2

_name

_name: string = "l3c4"

_starterCode

_starterCode: string = `c = "devil";if(c == "devil") {\tprint(emoji(c, 100, 100), 25, 25);}`

ctx

ctx: CanvasRenderingContext2D

editor

editor: Editor

font_size

font_size: number = 20

square_size

square_size: number = 150

x

x: number = 10

y

y: number = 10

Accessors

instructions

  • get instructions(): string

name

  • get name(): string

numInstructions

  • get numInstructions(): number

Methods

checkGoal

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

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