Moving a shape

Moving a shape#

⚡ Live programming
  1. Starting with the template

    • Getting rid of unnecessary parts

    • creating a new function for updating the shapes because if(!WindowShouldClose()) is already two times indented which bloats the view.

  2. Creating a shape struct

    • using a typedef or not

    • (creating a self-reference if not shown before)

  3. Implementing a function that updates the ball for each frame

    • (Bouncing)