7 Bonus Katas
7.1 Clicker Special 006 Kata
read
Code a game with multiple levels: 1) where the cursor is an alien collecting coins and gems, and is avoiding ninjas; 2) where the cursor is an alien collecting orange coins and speed 4 gems, and is avoiding speed 5 red ninjas, and can get special ice powers.
code
#lang clicker-cartoon-special (start-clouds alien (coin gem) (ninja)) (start-clouds alien ((coin orange) (gem 4)) ((ninja 5 red)) (ice-power))
In Ratchet:
7.2 Clicker Special 007 Kata
read
Code a game with multiple levels: 1) where the cursor is a knight collecting coins, and is avoiding speed 1 zombies; 2) where the cursor is a knight collecting speed 3 green gems, and is avoiding speed 3 red spaceships, and can get special light powers; 3) where the cursor is a knight collecting speed 5 coins, and is avoiding speed 5 spaceships and speed 5 zombies, and can get special 300-point gems.
code
#lang clicker-cartoon-special (start-fantasy knight (coin) ((zombie 1))) (start-clouds knight ((gem 3 green)) ((spaceship 3 red)) (light-power)) (start-space knight ((coin 5)) ((spaceship 5) (zombie 5)) ((gem 300)))
In Ratchet:
7.3 Clicker Special 008 Kata
read
Code a game with multiple levels: 1) where the cursor is a coin collecting knights and dragons, and is avoiding meteors, and can get special ice powers; 2) where the cursor is a coin collecting speed 5 yellow knights, and is avoiding speed 5 red ninjas and speed 5 red zombies, and can get special turtle powers and 300-point dragons.
code
#lang clicker-cartoon-special (start-space coin (knight dragon) (meteor) (ice-power)) (start-clouds coin ((knight 5 yellow)) ((ninja 5 red) (zombie 5 red)) (turtle-power (dragon 300)))
In Ratchet:
7.4 Clicker Special 009 Kata
read
Code a game with multiple levels: 1) where the cursor is a knight collecting speed 1 blue coins, and is avoiding zombies, and can get special light powers; 2) where the cursor is a dragon collecting speed 3 purple coins, and is avoiding speed 3 ninjas and speed 3 zombies, and can get special turtle powers and 5-point light powers; 3) where the cursor is an orange spaceship collecting speed 5 coins, and is avoiding speed 5 ninjas, speed 5 meteors, and speed 5 zombies, and can get special ice powers, light powers, and 500-point gems.
code
#lang clicker-cartoon-special (start-fantasy knight ((coin 1 blue)) (zombie) (light-power)) (start-fantasy dragon ((coin 3 purple)) ((ninja 3) (zombie 3)) (turtle-power (light-power 5))) (start-fantasy (spaceship orange) ((coin 5)) ((ninja 5) (meteor 5) (zombie 5)) (ice-power light-power (gem 500)))
In Ratchet: