On this page:
6.1 Town Kata (difficulty = 2)
6.2 Sky Kata (difficulty = 1)
6.3 Sky Kata (difficulty = 1)
6.4 Level Design Kata (difficulty = 1)
6.5 Level Design Kata (difficulty = 2)

6 Town & Sky Katas

6.1 Town Kata (difficulty = 2)

read
Code a game with a lava background with a 2 by 2 grid.
code
#lang survival-pokemon
 
(define (my-town)
   (basic-town
    #:image LAVA-BG
    #:rows 2
    #:columns 2))
 
(pokemon-game #:town (my-town))

6.2 Sky Kata (difficulty = 1)

Tip: By default, the length-of-day will be 2400.

read
Code a game with a very long day/night cycle.
code
#lang survival-pokemon
 
(pokemon-game
  #:sky (basic-sky #:length-of-day 5000))

6.3 Sky Kata (difficulty = 1)

Tip: Here is a link to all available colors: colors.

read
Code a game with a custom-colored night sky.
code
#lang survival-pokemon
 
(pokemon-game
  #:sky (basic-sky #:night-sky-color 'darkmagenta))

6.4 Level Design Kata (difficulty = 1)

Tip: This will fill the world with two types of trees.

read
Code a game with a forest town with world objects.
code
#lang survival-pokemon
 
(pokemon-game
  #:town (basic-town #:image FOREST-BG)
  #:enable-world-objects? #t)

6.5 Level Design Kata (difficulty = 2)

Tip: Setting hd? #t will use more detailed assets but it will take longer to load.

read
Code a game with a forest town filled with 2 types of high-definition trees.
code
#lang survival-pokemon
 
(pokemon-game
  #:town (basic-town #:image FOREST-BG)
  #:other-entities (make-world-objects
   round-tree
   pine-tree
   #:hd? #t))