8.4 Class and Objects - Collision Detection - p5.js Tutorial

Опубликовано: 10 Март 2026
на канале: xin xin
6,671
like

00:30 dist()
02:03 circle collision detection
04:45 rectangle collision detection
11:13 adding collision detections to the frogger game car objects
22:19 integrate multiple frog lives into the frogger game

p5 dist() circle detection completed sketch: https://editor.p5js.org/xinxin/sketch...
p5 rectangle detection completed sketch: https://editor.p5js.org/xinxin/sketch...
p5 frogger starter template: https://editor.p5js.org/xinxin/sketch...
p5 frogger completed sketch: https://editor.p5js.org/xinxin/sketch...