Full-Stack Development

JavaScript ‐ Game Dynamics

Lesson 02.04.06

Essential Question:

  • How do we write JS Code to dynamically change game parameters?

Learning Objectives:

  • Apply mathematical equations to create dynamic item prices
  • Utilize JS to dynamically disable interactive elements
  • Iterate on stylistic & foundational code for game interactivity

Standards:

  • NYS Next Generation Learning Standards RST.4.11-12 Determine the meaning of symbols, key terms, and other content-specific words and phrases as they are used in scientific or technical sources.
  • NYS Next Generation Learning Standards AII-A.CED.1 Create equations and inequalities in one variable to represent a real-world context
  • New York State Learning Standards CDOS 3a Students will demonstrate mastery of the foundation skills and competencies essential for success in the workplace.
  • IT Specialist HTML & CSS 5.4 Analyze styles that implement a simple responsive layout - Units of measure; responsive effects with CSS, including viewport and media query; percentages versus pixels; frameworks and templates; max width

Materials:

Opening Task (20 Minutes)

  • Scholars will complete opening task on Schoology covering topics learned from python foundations unit
  • Randomly selected scholar will facilitate review with peers

Dynamic Prices (30 Minutes)

Teacher Guided Demonstration of Dynamically changing prices in a clicker game

  • What pattern should we change prices by? What do other clicker/idle games do?
    • How could we make this into a formula? What type of growth of this?

Break (10 Minutes)

Work Time (40 Minutes)

Scholars will work to implement dynamic prices and iterate on design of website.

Instructors will rotate to assist scholars and monitor

Disable Buttons (10 Minutes)

Scholars will use provided resources to learn about disabling JS buttons and styling them.

Work Time (30 Minutes)

Scholars will work to implement dynamic prices and iterate on design of website.

Instructors will rotate to assist scholars and monitor

Cleanup / Dismissal (10 Minutes)

Scholars will submit a benchmark demonstrating completion of adding dynamic points and button