2 Skin Katas
2.1 Custom Skin Kata (difficulty = 1)
read
Code a game with a basic-skinned hero.
code
#lang survival-minecraft (minecraft-game #:skin (basic-skin))
2.2 Custom Skin Kata (difficulty = 2)
read
Code a game with a pixelated hero.
code
#lang survival-minecraft (define (my-hero) (basic-skin #:sprite monk-sprite)) (minecraft-game #:skin (reduce-quality-by 3 (my-hero)))
2.3 Custom Skin Kata (difficulty = 2)
Tip: The default speed is 10.
read
Code a game with a fast, Alex-skinned hero.
code
#lang survival-minecraft (define (my-hero) (basic-skin #:sprite alex-sprite #:speed 20)) (minecraft-game #:skin (my-hero))
2.4 Custom Skin Kata (difficulty = 3)
Tip: The default key-mode is ’arrow-keys.
read
Code a game with a fast, stronger hero whom you control with the WASD keys. Choose any sprite.
code
#lang survival-minecraft (define (my-hero) (basic-skin #:sprite pig-sprite #:speed 20 #:key-mode 'wasd #:health 200 #:max-health 200)) (minecraft-game #:skin (my-hero))