Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

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

Properties

_constraint

_constraint: string = "canvas"

_goal

_goal: any

Optional _instrBoxes

_instrBoxes: Instruction[] = []

Optional _instrIndex

_instrIndex: number = 0

_instructions

_instructions: string = `<p>Lesson 1 - Checkpoint 3</p>` +`<p>GOAL: Move the word around the CANVAS solely by changing your CODE.</p>`

_latestInstrIndex

_latestInstrIndex: number = 0

_name

_name: string = "l1c3"

_starterCode

_starterCode: string = `print("happy", 100, 100)`

ctx

ctx: CanvasRenderingContext2D

editor

editor: Editor

font_size

font_size: number = 20

square_size

square_size: number = 100

x

x: number

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