Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

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

Properties

_constraint

_constraint: string = "none"

_goal

_goal: any

Optional _instrBoxes

_instrBoxes: Instruction[] = []

Optional _instrIndex

_instrIndex: number = 0

_instructions

_instructions: string = `<p> You've made it to the FINAL CHALLENGES! Complete these challenges to earn ETERNAL GLORY! </p><p> Throughout this Hour of Code, you have learned: </p><p> - How to print a word, circle, rectangle, and curve. </p><p> - How to store any of the value above in a variable. </p><p> - How to use if/else statement to check a condition about a variable. </p><p> Each of the following challenges will test these concepts. Let's dive right in! </p><p> Print a circle and put its height and width in one of the boxes to the side. Then print a rectangle and put its height and width in the box. </p><p> CHALLENGE: Print a circle and rectangle. Put their respective width and height in the boxes provided. </p>`

_latestInstrIndex

_latestInstrIndex: number = 0

_name

_name: string = "l4c1"

Optional _starterCode

_starterCode: string

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