p5.js Coding Tutorial | A Shattered Heart 💔 (with matter.js)

preview_player
Показать описание
LET'S CONNECT
--
Links:

Inspiration:

References:

Timestamps:
0:00 Intro
0:33 Set up the physics engine and create a single rectangular body
5:55 Add mouse for some interactivity
8:36 Create multiple rectangular bodies
12:42 Preload an image to sketch
14:40 Create a grid of cells and check which contains color values
24:59 Create a Rect class
29:01 Add pixels information to each Rect object
33:19 Add background
33:35 Add boundaries
Рекомендации по теме
Комментарии
Автор

คนสอนน่ารักมากครับ ผมไม่ได้ดูโค๊ดเลย ❤

gorgeouxpanjira
Автор

Hi Pat, that’s looking beautiful. I surprised, that the performance by drawing the pixels with rect() seems to be fine. However wouldnt be displaying the tiles via image() be more efficient? Greetings from Berlin

frankbottcher
welcome to shbcf.ru