8.3 Switch Statement - Changing Scenes! - p5.js Tutorial

Опубликовано: 02 Март 2026
на канале: xin xin
5,794
like

00:29 switch statement
07:35 create a moving character for the game

p5 switch statement test sketch: https://editor.p5js.org/xinxin/sketch...
p5 starter sketch: https://editor.p5js.org/xinxin/sketch...
p5 completed sketch: https://editor.p5js.org/xinxin/sketch...

📚 References 📚
The JavaScript Switch Statement, W3Schools, https://www.w3schools.com/js/js_switc...

✨ Special thanks to artist & SUNY Purchase professor Lee Tusman for giving me the idea of using Frogger to teach class and objects ✨