Clips

These are some examples of how to build the logics for the challenge.

<aside>

3 lives

Build a game where the player has 3 lives and they will lose when the lives reaches 0.

Add 3 lives by:

  1. Creating the lives variable
  2. Set the variable to 3
  3. Reducing the variable when touching enemy
  4. Create logic block for condition “IF lives = 0” and show game over when it reaches 0.

click 👇

</aside>

<aside>

100 score

A game where players win when reaching 100 score.

Steps:

  1. Creating the score variable
  2. Set the variable to 0
  3. Increase the variable when touching score item
  4. Create logic block for condition “IF score = 100” and show WIN GAME screen when it reaches 100.

click 👇

</aside>

Tutorials of shooting games:

You can look at previous tutorials to get an idea of how to build.

  1. https://links.welearnlab.com/tutorial/cx-p-010/cx-1/
  2. https://links.welearnlab.com/tutorial/cx-d-010/cx-1/

Basic template for CX-1:

Follow this tutorial to build basic version and then add the extra things on top.

https://links.welearnlab.com/tutorial/cx-p-010/cx-1/