Collect Points

collect points

How to implement this Pattern in MakeCode

Step by Step instructions

Collecting points so that you get one point every time you collect some food (or similar) involves adding the change score by block to the overlap listener block.

 collect points

Test your Changes and Next Steps

Test your game to check that your changes have the desired behaviour and that there are no side effects. For example, does your point score only increase by one (or your chosen number) as you progress

This Game Pattern is one of many allowing you to make improvements to your platform game and to learn coding and wider computing concepts. Find more on the Game Pattern page.

Some next steps you might want to add player lives or some kind of enemy if you haven’t already.