On this page:
2.1 Avatar Kata (difficulty = 1)
2.2 Avatar Kata (difficulty = 1)
2.3 Avatar Kata (difficulty = 1)
2.4 Avatar Kata (difficulty = 1)

2 Avatar Katas

2.1 Avatar Kata (difficulty = 1)

read
Code a game with an avatar.
code
#lang battlearena
 
(battlearena-game #:avatar (basic-avatar))

2.2 Avatar Kata (difficulty = 1)

read
Code a game with an avatar that has a custom sprite.
code
#lang battlearena
 
(battlearena-game
  #:avatar (basic-avatar #:sprite pirateboy-sprite))

2.3 Avatar Kata (difficulty = 1)

Tip: The default speed is 10.
read
Code a game with a fast-moving sprite.
code
#lang battlearena
 
(define (my-avatar)
   (basic-avatar
    #:sprite pirategirl-sprite
    #:speed 20))
 
(battlearena-game #:avatar (my-avatar))

2.4 Avatar Kata (difficulty = 1)

Tip: The default item-slots is 2.
read
Code a game with a fast-moving sprite, a large backpack, and double the health and shield values.
code
#lang battlearena
 
(define (my-avatar)
   (basic-avatar
    #:sprite pirateboy-sprite
    #:speed 20
    #:item-slots 5
    #:health 200
    #:shield 200
    #:max-health 200
    #:max-shield 200))
 
(battlearena-game #:avatar (my-avatar))