September 2018
Intermediate to advanced
434 pages
8h 47m
English
You may notice that your gold coins in the scene editor show up as bronze coins in the game. This is because the Coin class defaults to using the bronze texture and value. We will specify our gold coins by setting their name attribute to gold in the scene editor and then checking for this name in the Coin init function. Follow these steps to implement golden coins:
gold, as shown here:
Read now
Unlock full access