#lang clicker-cartoon

About this Language

Use this Ratchet-enabled language to create your own clicker game!

  • Customize your avatar!
  • Add collectables to click for points!
  • Add avoidables that will chase you!
  • Add special items for extra fun!

TIP: This is a language collection that actually includes 3 language levels -- be sure to check the lang line for a given section before attempting to write the code in Ratchet.

Never used Ratchet or need a reminder? Check out this video: How to Code in Ratchet

To Install

Package Source: https://github.com/thoughtstem/TS-K2-Languages.git?path=clicker-cartoon

Need a reminder how to install a package? Check out this video tutorial.


Hello World 000

Code a simple game with no customizations.

#lang clicker-cartoon-collect

(start-fantasy)
In Ratchet:

Clicker Collect 001

Code a fantasy game where the cursor is a knight.

#lang clicker-cartoon-collect

(start-fantasy knight)
In Ratchet:

Clicker Collect 002

Code a clouds game where the cursor is a pilot collecting coins.

#lang clicker-cartoon-collect

(start-clouds pilot (coin))
In Ratchet:

Clicker Collect 003

Code a clouds game where the cursor is a bird collecting coins and fruits.

#lang clicker-cartoon-collect

(start-clouds bird (coin fruit))
In Ratchet:

Clicker Collect 004

Code a fantasy game where the cursor is a dragon collecting mushrooms and [choose-your-own-sprite].

#lang clicker-cartoon-collect

(start-fantasy dragon (mushroom rand))
In Ratchet:

Clicker Collect 005

Code a clouds game where the cursor is a [choose-your-own-sprite] collecting speed 4 fruits.

#lang clicker-cartoon-collect

(start-clouds rand ((fruit 4)))
In Ratchet:

Clicker Collect 006

Code a fantasy game where the cursor is a mushroom collecting knights, dragons, and speed 1 pilots.

#lang clicker-cartoon-collect

(start-fantasy
  mushroom
  (knight dragon (pilot 1)))
In Ratchet:

Clicker Collect 007

Code a clouds game where the cursor is a [choose-your-own-sprite] collecting speed 1 fruits and speed 5 coins.

#lang clicker-cartoon-collect

(start-clouds rand ((fruit 1) (coin 5)))
In Ratchet:

Clicker Collect 008

Code a fantasy game where the cursor is a bird collecting birds, birds, and birds.

#lang clicker-cartoon-collect

(start-fantasy bird (bird bird bird))
In Ratchet:

Clicker Collect 009

Code a clouds game where the cursor is a fruit collecting [choose-your-own-sprite] and speed 5 [choose-your-own-sprite].

#lang clicker-cartoon-collect

(start-clouds fruit (rand (rand 5)))
In Ratchet:

Clicker Collect 010

Code a fantasy game where the cursor is a knight collecting speed 5 mushrooms, speed 4 pilots, and speed 1 dragons.

#lang clicker-cartoon-collect

(start-fantasy
  knight
  ((mushroom 5) (pilot 4) (dragon 1)))
In Ratchet:

Hello World 000

Code a simple game with no customizations.

#lang clicker-cartoon-collect

(start-fantasy)
In Ratchet:

Clicker Avoid 001

Code a space game where the cursor is a ufo collecting cows, and is avoiding meteors.

#lang clicker-cartoon-avoid

(start-space ufo (cow) (meteor))
In Ratchet:

Clicker Avoid 002

Code a clouds game where the cursor is a pilot collecting aliens, and is avoiding zombies and humans.

#lang clicker-cartoon-avoid

(start-clouds pilot (alien) (zombie human))
In Ratchet:

Clicker Avoid 003

Code a space game where the cursor is a dragon collecting fruits, and is avoiding speed 1 fruits.

#lang clicker-cartoon-avoid

(start-space dragon (fruit) ((fruit 1)))
In Ratchet:

Clicker Avoid 004

Code a fantasy game where the cursor is a goblin collecting knights and speed 5 ufos, and is avoiding aliens and speed 5 pilots.

#lang clicker-cartoon-avoid

(start-fantasy
  goblin
  (knight (ufo 5))
  (alien (pilot 5)))
In Ratchet:

Clicker Avoid 005

Code a fantasy game where the cursor is a meteor collecting meteors, and is avoiding speed 1 meteors.

#lang clicker-cartoon-avoid

(start-fantasy meteor (meteor) ((meteor 1)))
In Ratchet:

Clicker Avoid 006

Code a fantasy game where the cursor is a red knight collecting fruits and cows, and is avoiding goblins.

#lang clicker-cartoon-avoid

(start-fantasy (knight red) (fruit cow) (goblin))
In Ratchet:

Clicker Avoid 007

Code a clouds game where the cursor is a dragon collecting green aliens, and is avoiding zombies and humans.

#lang clicker-cartoon-avoid

(start-clouds
  dragon
  ((alien green))
  (zombie human))
In Ratchet:

Clicker Avoid 008

Code a space game where the cursor is a [choose-your-own-sprite] collecting aliens, orange meteors, and pilots, and is avoiding cows, speed 1 zombies, and ufos.

#lang clicker-cartoon-avoid

(start-space
  rand
  (alien (meteor orange) pilot)
  (cow (zombie 1) ufo))
In Ratchet:

Clicker Avoid 009

Code a fantasy game where the cursor is a goblin collecting yellow dragons and speed 5 [choose-your-own-sprite], and is avoiding speed 1 fruits and purple [choose-your-own-sprite].

#lang clicker-cartoon-avoid

(start-fantasy
  goblin
  ((dragon yellow) (rand 5))
  ((fruit 1) (rand purple)))
In Ratchet:

Clicker Avoid 010

Code a fantasy game where the cursor is a blue knight collecting green knights, and is avoiding red knights.

#lang clicker-cartoon-avoid

(start-fantasy
  (knight blue)
  ((knight green))
  ((knight red)))
In Ratchet:

Clicker Special 001

Code a fantasy game where the cursor is a dragon collecting coins, and is avoiding ninjas, and can get special ice powers.

#lang clicker-cartoon-special

(start-fantasy dragon (coin) (ninja) (ice-power))
In Ratchet:

Clicker Special 002

Code a space game where the cursor is a spaceship collecting coins and purple gems, and is avoiding red meteors, and can get special turtle powers.

#lang clicker-cartoon-special

(start-space
  spaceship
  (coin (gem purple))
  ((meteor red))
  (turtle-power))
In Ratchet:

Clicker Special 003

Code a clouds game where the cursor is a zombie collecting knights and aliens, and is avoiding speed 3 red knights and speed 1 orange aliens, and can get special light powers.

#lang clicker-cartoon-special

(start-clouds
  zombie
  (knight alien)
  ((knight 3 red) (alien 1 orange))
  (light-power))
In Ratchet:

Clicker Special 004

Code a space game where the cursor is an alien collecting green ninjas and blue coins, and is avoiding meteors, and can get special 200-point gems.

#lang clicker-cartoon-special

(start-space
  alien
  ((ninja green) (coin blue))
  (meteor)
  ((gem 200)))
In Ratchet:

Clicker Special 005

Code a fantasy game where the cursor is a spaceship collecting red gems and speed 4 zombies, and is avoiding speed 1 yellow knights and dragons, and can get special 200-point purple coins.

#lang clicker-cartoon-special

(start-fantasy
  spaceship
  ((gem red) (zombie 4))
  ((knight 1 yellow) dragon)
  ((coin 200 purple)))
In Ratchet:

Clicker Special 006

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.

#lang clicker-cartoon-special

(start-clouds alien (coin gem) (ninja))

(start-clouds
  alien
  ((coin orange) (gem 4))
  ((ninja 5 red))
  (ice-power))
In Ratchet:

Clicker Special 007

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.

#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:

Clicker Special 008

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.

#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:

Clicker Special 009

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.

#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: