Breadcrumbs
This week we started with a new game mechanic, breadcrumbs
Breadcrumbs are a fundamental way of guiding a player through a level in a game
We started by creating our tilemap, and adding a path on top of it
We then set up a loop that places custom breadcrumbs on top of the path. This loop creates and array or list of all the path blocks. Each time the loop runs, a new breadcrumb block is paced on a path block. Initially all the path blocks are instantly covered
We added in a delay to give it the effect of walking us through a level
To get us setup for next week, we created a function call “initmain” to begin setting up our main character
Have a look at the full code below