On this page:
5.1 Power Kata (difficulty = 1)
5.2 Power Kata (difficulty = 3)
5.3 Power Kata (difficulty = 5)
5.4 Drone Kata (difficulty = 3)
5.5 Drone Kata (difficulty = 3)

5 Power Katas

5.1 Power Kata (difficulty = 1)

Tip: Other darts besides (energy-blast) are (star-bit), (magic-orb), and (hammer).

read
Code a game with a powerful, custom-colored energy blast.
code
#lang battlearena-avengers
 
(avengers-game
  #:power-list (list
   (energy-blast #:color 'orange #:damage 20)))

5.2 Power Kata (difficulty = 3)

Tip: The rarity levels are ’common, ’uncommon, ’rare, ’epic, and ’legendary.

read
Code a game with powerful, fast, custom-colored star bit with high rarity.
code
#lang battlearena-avengers
 
(define (my-power)
   (star-bit
    #:color 'orange
    #:damage 10
    #:speed 15
    #:rarity 'legendary))
 
(avengers-game #:power-list (list (my-power)))

5.3 Power Kata (difficulty = 5)

Tip: By default, every power’s rapid-fire variable is true.

read
Code a game with 2 weapons: 1 powerful, fast magic orb with spread and single-click shooting mode; and 1 powerful, fast hammer with a custom color and high rarity.
code
#lang battlearena-avengers
 
(define (my-power-1)
   (magic-orb
    #:damage 10
    #:speed 15
    #:fire-mode 'spread
    #:rapid-fire? #f))
 
(define (my-power-2)
   (hammer
    #:color 'red
    #:damage 15
    #:speed 10
    #:rarity 'rare))
 
(avengers-game
  #:power-list (list (my-power-1) (my-power-2)))

5.4 Drone Kata (difficulty = 3)

Tip: The firing modes are ’normal, ’random, ’spread, and ’homing.

read
Code a game with an energy drone that uses a spread-shot energy blast of a custom color.
code
#lang battlearena-avengers
 
(define (my-drone)
   (energy-drone
    #:color 'yellow
    #:fire-mode 'spread))
 
(avengers-game #:power-list (list (my-drone)))

5.5 Drone Kata (difficulty = 3)

read
Code a game with an energy drone that uses a powerful, fast-shooting, homing energy blast of a custom color.
code
#lang battlearena-avengers
 
(define (my-drone)
   (energy-drone
    #:color 'red
    #:damage 50
    #:fire-rate 3
    #:fire-mode 'homing))
 
(avengers-game #:power-list (list (my-drone)))