#!/bin/bash # # Chapter 18's figures load the Breakout artwork by the same relative path the # game does, so they need an `art/` beside the program. Copy the example's own # directory rather than a private duplicate: a figure drawn from a second copy # of the artwork stops being a figure of the program it documents the moment # either copy moves, which is the drift this whole arrangement is against. cp -R "$(dirname "${BASH_SOURCE[0]}")/../../examples/breakout/sprites/art" art