11.07.2015 Views

Here - 1000 BiT

Here - 1000 BiT

Here - 1000 BiT

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

LESSON 22POKEing GRAPHICSMake colored stripes and adjust the TV or monitor color knobs.THE SCREEN IS A MAP OF MEMORY BOXESImagine a little town with 25 streets. Each street has 40 houses on it.Each house is a box in memory and can hold one character.The streets are the 25 lines, counting down the screen. There are 40 boxes countingacross a line.The computer flies over the town like an airplane. It looks down on the boxes and drawsa map which it shows on the screen. The map shows which character is in each house.Remember, most of the map is blank screen, but "blank" or "space" is a character too!MOVING A CHARACTER INTO A HOUSEEnter this: POKE 1024,83:POKE 55296,2You will see a red heart in the "home" position on the screen (upper left corner). WHATHAPPENED? We POKEd the heart (character number 83) into the memory box number1024 which shows in the home position on the screen.POKE means you put the number directly into the memory box.Then we POKEd a color, red, into another memory box (55296) which gives the color ofthe character in the home position.126

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!