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:
- Creating the lives variable
- Set the variable to 3
- Reducing the variable when touching enemy
- 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:
- Creating the score variable
- Set the variable to 0
- Increase the variable when touching score item
- 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.
- https://links.welearnlab.com/tutorial/cx-p-010/cx-1/
- 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/