Experimenting with canvas, math and simple animations
For a long time I wanted to play a bit with canvas and some basic animations. This experiment shows how to move an object in a specific angle and how to handle collission with walls.
The fun part was that I had to dig really deep in my memory on how to use sin and cos in order to get all the calculations right. Luckily my dad has a physics degree so he quickly brought me up to speed.
Take a look at this experiment
Written by Stijn Janssen
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Canvas
Authors
Did you know?
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#