Changes

Games

5 bytes removed, 10:00, 19 October 2009
/* Page Flipping */
=== Page Flipping ===
Most good CPC games use the page-flipping technique in order to display sprites and/or scroll the playing area smoothly. In especialparticular, two memory areas (instead of one) are reserved for the screen ram. In each frame, one of the two screens is displayed in turn, by using the hardware (exactly by changing the screen-offset, Reg 12 and 13 of the [[CRTC|CRTC]]). At the same time, the next frame is being drawn in the non-visible screen until the next frame fly back signal. Then, the same cycle continues on and on is repeated for (each) next following frame.
The big advantage of this technique is that we can use a whole frame's machine-time for our code (with no animation problems that arrise arise when we alter screen ram at the same time the electron beam displays it on the monitor). On the other hand, page flipping eats up a lot of memory area (which is crucial especially for 64Kb machines). This explains why a lot of games have very small game-areas !
=== Hardware Scrolling ===
1,179
edits