The plan here is to slowly fill up the screen with playing cards.
graphics 640,480 so you can type that in straight away.
card=rand(52)
"rand" is short for "random" - note that it is a word that BB "knows" and that "card" is our word.
card_img=loadimage(card+".png")
drawblock card_img,rand(640),rand(480)repeat
until keyhit(1)delay 100
freeimage card_img
Again there are things I want to point out to you:
This time I have shown the lines as I typed them - i.e. all in lower case. You will notice that BB does the Capitalization for you. This Capitalization is simply for clarity.
The lines in the loop are indented for clarity not because BB requires it. Use the Tab key to start indentation and the BackSpace key to stop it.
keyhit(1) - the "1" is the code for the Esc key. There is a code for each of the keys on the keyboard but we will adopt the convention of ALWAYS using the Esc key to Escape from our program.
The delay is measured in milliseconds (thousandths of a second). Deciding on what value to use is best done by experiment.