Description
This MOOC will teach you the fundamental skills needed to write computer programmes. This is the course for you if you want to learn how to write interactive, graphical programmes in a real programming language at an introductory level. You'll start by learning the fundamentals of editing and running programmes. Then you'll learn how to make 2D graphics by combining shapes and coordinates. Finally, you'll learn how to make interactive graphics that you can manipulate with the mouse. You'll even use your coding skills to solve a series of interactive puzzles in the Sleuth game, which was created specifically for this course. The Javascript programming language and the p5.js library are used in the course.
Syllabus :
1. Your development environment
- Growth mindset
- What is programming ? What is p5.js
- Running your first program with Brackets
- Learn by hacking
- 2D coordinate systems
- Code philosophy: What it feels like to code
- Getting started with Sleuth
2. Drawing in 2D
- RGB colours
- fill, stroke, noFill
- setup, draw and Programme Flow
- Shapes: ellipse, rectangle, line, triangle, point
- How to access and use the console to view errors
- Debugging syntax errors
- Code Philosophy: Asking for help
3. Variables, objects and interaction
- Built-in Variables: mouseX, mouseY
- Built-in Events: mousePressed, keyPressed
- Create your own variables: var, initialising and assigning
- 12 top tips for naming variables
- Objects
- Working with operators
- Mathematical functions: random, min, max
- Inspecting variables in the console
- Code philosophy: The elegant coder