2.7 Planet Cute Images
On this page:
2.7.1 Characters
character-boy
character-cat-girl
character-horn-girl
character-pink-girl
character-princess-girl
enemy-bug
speech-bubble
2.7.2 Blocks
brown-block
dirt-block
grass-block
plain-block
stone-block-tall
stone-block
wall-block-tall
wall-block
water-block
wood-block
2.7.3 Items
chest-closed
chest-lid
chest-open
gem-blue
gem-green
gem-orange
heart
key
rock
selector
tree-short
tree-tall
tree-ugly
yellow-star
2.7.4 Ramps
ramp-east
ramp-north
ramp-south
ramp-west
2.7.5 Buildings
door-tall-closed
door-tall-open
roof-east
roof-north-east
roof-north-west
roof-north
roof-south-east
roof-south-west
roof-south
roof-west
window-tall
2.7.6 Shadows
shadow-east
shadow-north-east
shadow-north-west
shadow-north
shadow-side-west
shadow-south-east
shadow-south-west
shadow-south
shadow-west

2.7 Planet Cute Images

 (require 2htdp/planetcute) package: htdp-lib

The 2htdp/planetcute library contains the Planet Cute art by Daniel Cook (Lostgarden.com).

The images are designed to be overlaid with each other to build scenes for use in games. Here is an example image taken from the Planet Cute website.

; stack : non-empty-list-of-images -> image
; stacks 'imgs' on each other, separated by 40 pixels
(define (stack imgs)
  (cond
    [(empty? (rest imgs)) (first imgs)]
    [else (overlay/xy (first imgs)
                      0 40
                      (stack (rest imgs)))]))
> (beside/align
   "bottom"
   (stack (list wall-block-tall stone-block))
   (stack (list character-cat-girl
                stone-block stone-block
                stone-block stone-block))
   water-block
   (stack (list grass-block dirt-block))
   (stack (list grass-block dirt-block dirt-block)))

g1: unbound identifier;

 also, no #%top syntax transformer is bound

  in: g1

The Planet Cute images also include some shadows that can improve the look of your game; see the Shadows section for an overview of how to use them.

2.7.1 Characters

image
image
image
image
image

value

enemy-bug : image?

image
image

2.7.2 Blocks

image
image
image
image
image
image
image
image
image
image

2.7.3 Items

image

value

chest-lid : image?

image
image

value

gem-blue : image?

image

value

gem-green : image?

image
image

value

heart : image?

image

value

key : image?

image

value

rock : image?

image

value

selector : image?

image
image

value

tree-tall : image?

image

value

tree-ugly : image?

image
image

2.7.4 Ramps

value

ramp-east : image?

image
image
image

value

ramp-west : image?

image

2.7.5 Buildings

image
image

value

roof-east : image?

image
image
image
image
image
image
image

value

roof-west : image?

image
image

2.7.6 Shadows

The shadow images are intended to be overlaid on the other blocks when they appear in certain configurations, as detailed here.

image image image image
image
image
image
image
image
image
image
image
image