Two more features are implemented to the Farmer Harvest game.
-
Crops have different colors displayed on the game, so each color will have different point values. Wheat (beige) = 1 point Pumpkin (Orange) = 3 points Golden Apple (Gold) = 5 points
-
Scarecrows can spawn outside of the game and move linerally. If you collided with a scarecrow, you lose 10 seconds of time.
Arrow functions are used for functions manipulating the class variables. Bind functions are used for functions manipulating the global variables. This is used for globallizing a variable. However, an arrow function does change the scope of a "this" variable.