Skip to content

Latest commit

 

History

History
86 lines (54 loc) · 1.76 KB

README.md

File metadata and controls

86 lines (54 loc) · 1.76 KB

Unit-0: p5+js & runp5 Documentation

Horizons uses a slightly modified version of p5.js. This repository contains the documentation for all of the parts of p5.js and JavaScript that you will need for Unit 0.

p5.js

General

  • [runp5 – running your game]
  • [game.goToNextFrame() – the game loop]
  • [The game screen: game.width and game.height]

Intro to JavaScript

[Basic values]

  • [numbers]
  • [strings]
  • [undefined]
  • [true and false]

[Loops]

  • [while loop]
  • [for loop]

[Conditionals]

  • [if statements]
  • [true and false operators]
  • [and and or]
  • [Overview]
  • [.length]
  • [.push()]
  • [.pop()]
  • [.shift]
  • [.unshift]