JavaScript

Anton Sigurdsson
Anton Sigurdsson
99 Points

My code in Workspace is wrong

// add collectable items to the game function addItems() { items = game.add.physicsGroup(); createItem(375, 400, 'coin'); createItem(575, 500, 'coin'); }

// when the player collects an item on the screen function itemHandler(player, item) { item.kill(); currentScore = currentScore + 10; if (currentScore === winningScore) { createBadge(); } }

I dont get ad platform command below, I have gone through this tutorial a few times and it is always missing.

KRIS NIKOLAISEN
KRIS NIKOLAISEN
Pro Student 23,930 Points

Could you take a snapshot of your workspace and post link here?