The problem here is the code delete the following line of code and it should work
get image 1,0,0,300,300
Basically what the code was saying was load an image into image slot 1, then get an image from the screen and store it in image slot 1, hence overwriting the image previously loaded with the image of a section of the current screen, therefore the background image.
The correct code should be
hide mouse
`no need to clear screen if loading a bitmap directly to the screens bitmap
load bitmap "background.bmp", 0
load bitmap "F15.bmp", 1, 1
sprite 1,170,90,1
wait key
`should always delete media, so as to not leave file fragments left behind
delete sprite 1
delete image 1
cls
`clear any left overs in video memory
flush video memory
end
You might be wondering why there is an extra 1 at the end of the load image command - this is to turn off mipmapping so the image isn't blurred on your sprite; if you use the get image command you should also do this.
Also I have to say the book was written for DBC so some examples won't work - this one was coded wrongly though, it shouldn't work in DBC either.
pizzaman