GAME BASED EXAMPLES
SWITCH STATEMENT
Last updated
SWITCH STATEMENT
Last updated
--> OBJECTIVE: Create a simple switch statement to compare the value of a variable against the value of a collected power up to activate the correct ability.
--> OBJECTIVE: Create a simple switch statement to compare the enemy type and run the correct code to activate that enemies behavior
--> OBJECTIVE: Create a simple switch statement to compare the player's weapon and execute the proper code accordingly