On this page:
6.1 Health Kata (difficulty = 3)
6.2 Size Kata (difficulty = 3)
6.3 Boost Kata (difficulty = 4)
6.4 Boost Kata (difficulty = 3)
6.5 Force Field Kata (difficulty = 3)

6 Power-Up Katas

6.1 Health Kata (difficulty = 3)

Tip: You can also try set-health-to.

read
Code a game with a "Health Power-up" item that increases your health. Customize the icon and make it respawnable.
code
#lang battlearena-avengers
 
(avengers-game
  #:item-list (list
   (basic-item
    #:name "Health Power-up"
    #:icon (make-icon "HP" 'green 'white)
    #:on-use (change-health-by 50)
    #:respawn? #t)))

6.2 Size Kata (difficulty = 3)

Tip: Use a negative number in scale-sprite to shrink your character.

read
Code a game with a "Grow Power-up" item that makes you bigger. Customize the icon.
code
#lang battlearena-avengers
 
(avengers-game
  #:item-list (list
   (basic-item
    #:name "Grow Power-up"
    #:icon (make-icon "BIG" 'red 'white)
    #:on-use (scale-sprite 2 #:for 100))))

6.3 Boost Kata (difficulty = 4)

Tip: You can also try set-damage-to and multiply-damage-by.

read
Code a game with a "Damage Boost" item that temporarily increases the damage of your power and customize the icon.
code
#lang battlearena-avengers
 
(avengers-game
  #:power-list (list (energy-blast))
  #:item-list (list
   (basic-item
    #:name "Damage Boost"
    #:icon (make-icon "DB" 'orangered)
    #:on-use (change-damage-by 1000 #:for 200))))

6.4 Boost Kata (difficulty = 3)

Tip: You can also try set-speed-to and change-speed-by. The default movement speed is 10.

read
Code a game with a temporary "Speed Boost" item with a custom icon.
code
#lang battlearena-avengers
 
(avengers-game
  #:item-list (list
   (basic-item
    #:name "Speed Boost"
    #:icon (make-icon "SB" 'yellow)
    #:on-use (multiply-speed-by 2 #:for 200))))

6.5 Force Field Kata (difficulty = 3)

Tip: The default duration is 500.

read
Code a game with a "Force Field" item that lasts for a long time. Customize the icon.
code
#lang battlearena-avengers
 
(avengers-game
  #:item-list (list
   (basic-item
    #:name "Force Field"
    #:icon (make-icon "FF")
    #:on-use (spawn (force-field #:duration 1000)))))