This week I look up some related materials cover Objects and Functions and and constructor functions. I tried to understand more of the reason we use object other than just as a purpose of organising code.
In the meantime, I look up the Nature of Code to do some simulation of the real world. I have done things with Box2D before but I did not really go through the whole book from the very beginning. Besides, back than I did not understand the syntax of code that much. So this time I want to slow down a little bit and try to combine what I have learnt with ICM to the content of this book.
In the end, I made this ball world with balls sensing the force from the centre ball. They keep running into the centre ball and every time they hit the edge of the centre ball it will randomly make a sound.