In this episode we start by making some clean ups and will then deep dive into tile collision.
Some key concepts we will introduce are
* Basic mouse interaction.
* Adding a debug layer for drawing collision representation.
* Creating a Function Spy.
Music used in this episode is by Demoscene Time Machine:
open.spotify.com/artist/4ikPJ...
Intro: Jetpack
open.spotify.com/track/0dvzMN...
Preamble and Outro: Ski Jump open.spotify.com/track/5hxDTi...
This episode was the most difficult I ever did. Firstly, I was not fluent in doing collision, and if I wanted to create an episode explaining it I really need to understand why some of the side effects I saw happened. I also had to spend a lot of time structuring the episode so that the code written made sense at every step. I try to explain what problems we are solving before we write the code so that my viewers don't feel like they are walking away with a black box that solves a problem.
Since we are writing modern JS this code might not run on all browsers yet. I was running Chrome 61 when I wrote this and if you wish to follow I recommend you do too.
Twitter:
/ pomle
Source code for AABB collision test:
github.com/pomle/aabb-collision
Source code with step-by-step commits:
github.com/meth-meth-method/s...
Music:
Demoscene Time Machine
demoscenetimemachine.com
3 окт 2017