Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

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

Properties

_constraint

_constraint: string = "none"

_goal

_goal: any

Optional _instrBoxes

_instrBoxes: Instruction[] = []

Optional _instrIndex

_instrIndex: number = 0

_instructions

_instructions: string = `<p>Lesson 2 - Checkpoint 7</p>` +`<p>CHALLENGE: Create an emoji and print out its size.</p>`

_latestInstrIndex

_latestInstrIndex: number = 1

_name

_name: string = "l2c7"

Optional _starterCode

_starterCode: string

ctx

ctx: CanvasRenderingContext2D

dm

dm: number

editor

editor: Editor

font_size

font_size: number = 20

square_size

square_size: number = 250

x

x: number

y

y: number

Accessors

instructions

  • get instructions(): string

name

  • get name(): string

numInstructions

  • get numInstructions(): number

Methods

checkGoal

  • checkGoal(document: Document, effects: Effect<any>[]): boolean
  • A lesson to use a variable to connect different objects, taught using DM and non-DM

    Parameters

    • document: Document

      the HTML document

    • effects: Effect<any>[]

      the list of effects currently on the CANVAS

    Returns 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