Skip to content

Instantly share code, notes, and snippets.

@shiffman
shiffman / coding-train-2024.md
Last active May 29, 2024 20:40 — forked from dipamsen/coding-train-2023.md
Coding Train 2023 Goals and Plans

Coding Train 2024 Goals (as of May 29, 2024)

  • Nature of Code Additional videos (as challenges?)
    • Elastic Collisions (Chapter 6 reference)
    • Exercise 5.8 - image flow field
    • Exercise 5.13 - group path following
    • Dragon Curve (unfoloding) - chapter 8
    • Exercise 8.9 and 8.10 - animating / physics trees?
    • Slime Mold (related to chapter 5?)
  • ml5.js new tutorials
void setup() {
size (400, 300); // make a canvas that's 300 x 300
//SETTING UP MY UNDERLYING GRID STRUCTURE
int numImages = 12;
int colWidth = 10; //column width
int rowHeight = 10; //row height
int colNum = width/colWidth;
int rowNum = height/rowHeight;
// Daniel Shiffman
// Programming from A to Z, Fall 2014
// https://github.com/shiffman/Programming-from-A-to-Z-F14
// This examples builds a very simple DOM visualization of concordance
// It reads the text one word a a time and animates the words growing according to their counts
var concordance;
var wutang;
var canvas;
// team 1 counter reaches 100, then:
if (!cannonLplaying) {
if (!MPE || ID == 0) {
cannonL.play();
cannonLplaying = true;
println("cannonLplaying");
// Game Over Overlay: THIS IS NOT LOADING
}
} else if (cannonL.time() > 6) {