Outline

Key Ideas:

  • What is LocalStorage: The ability to store information inside of a website, repository, etc.
  • How do we use LocalStorage: We can use local storage using a player and local selection.
  • Why is LocalStorage important: To prevent the loss of data storage, even when a tab or window is closed.

Homework:

  • For this lesson, we’re going to use Object Orienting Programming
  • We do this by modifying the GameEnvironment and GameLevels in particular.
  • How to add LocalStorage? (Lecture for a few minutes)

Future Ideas:

  • Settings
  • Make custom character or take it from the internet (in general, make a character that’s now mario or a monkey)
  • “What is Parallax? Google definition of Parallax: PropBASIC is a BASIC programming language for the Parallax Propeller Microcontroller. PropBASIC requires Brad’s Spin Tool (BST), a cross-platform set of tools for developing with the Parallax Propeller.

Developing the Lecture/Game:

  • How to save the game even when the tab or window is closed. This can be useful to prevent people who are far in a game and accidentally close out their window.
  • Using LocalStorage, the game will be saved and they wouldn’t lose much data compared to if they don’t have LocalStorage.
  • GameControl is also a key part to LocalStorage, as it transitions between the levels in the game. This is also essential to LocalStorage because it can also prevent data loss. Look more into the assets and objects used.

Misc.

Document getElementByID imports the idea put inside of the parentheses and quotations, which follows with addEventListener to import the action that the user would do.

  • This sets up a base to generate a table and allows events such as GameEnv, GameLevel, and GameControl to be imported inside of that table and be linked in the same drive.

Instructions

Player Selection Screen

  • Make a lesson and code around Parallax. Integrate ideas so they can be adapted by Teacher project.
  • Pick your Player. Look into a technique to change player froom default Mario sprite to alternate Sprite. Save the Player to personal settings.

Sprite Selection

  • Create a sprite selection screen where players can choose their character.
  • Save the selected sprite in local storage for continuity. Customizable Controls
  • Other Settings Add setting or controls to game

Ideas:

  • Allow player to alter game speed
  • Allow players to define or redefine key mappings for movements (like arrow keys, spacebar)
  • Google more ideas for platformer controls

Instructions:

  • Make an outline of a lesson, key ideas you expect to teach.
    Remember you are expected to provide guidance on how to add a new feature to the GameLevels code provided.
  • Make some items you will consider for homework, things your students will do.
  • Remember you will provide starter code and direction to complete the GameLevels feature
  • Think about how you will receive and grade homework.