On this page:
3.1 Planet Kata (difficulty = 1)
3.2 Planet Kata (difficulty = 1)
3.3 Planet Kata (difficulty = 3)
3.4 Level Design Kata (difficulty = 1)
3.5 Level Design Kata (difficulty = 2)

3 Planet Design Katas

3.1 Planet Kata (difficulty = 1)

read
Code a game with a planet.
code
#lang battlearena-avengers
 
(avengers-game #:planet (basic-planet))

3.2 Planet Kata (difficulty = 1)

Tip: See other bg-image options in the assets library.

read
Code a game with a lava planet.
code
#lang battlearena-avengers
 
(avengers-game
  #:planet (basic-planet #:image LAVA-BG))

3.3 Planet Kata (difficulty = 3)

Tip: Start-tile can be between 0 (the default) and total-tiles minus 1. For example, a 2x2 grid has 4 tiles, so the last tile is tile 3.

read
Code a game with a high-definition lava planet, fewer tiles, and different starting tile.
code
#lang battlearena-avengers
 
(define (my-planet)
   (basic-planet
    #:image LAVA-BG
    #:rows 2
    #:columns 2
    #:start-tile 3
    #:hd? #t))
 
(avengers-game #:planet (my-planet))

3.4 Level Design Kata (difficulty = 1)

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

read
Code a game with a forest planet that has world objects.
code
#lang battlearena-avengers
 
(avengers-game
  #:planet (basic-planet #:image FOREST-BG)
  #:enable-world-objects? #t)

3.5 Level Design Kata (difficulty = 2)

Tip: make-world-objects works best with houses or trees and must only take two types. See the Assets Library for more options.

read
Code a game with a pink planet that has 2 randomly-colored types of trees in high-definition.
code
#lang battlearena-avengers
 
(avengers-game
  #:planet (basic-planet #:image PINK-BG)
  #:other-entities (make-world-objects
   candy-cane-tree
   snow-pine-tree
   #:hd? #t
   #:random-color? #t))