Changes

Jump to: navigation, search

Programming methods used in games

940 bytes added, 10:05, 13 November 2012
/* Hardware Double Buffer */
However, page flipping eats up a lot of memory area (which is crucial especially for 64Kb machines). This explains why a lot of games can have small game-areas !
 
=== Scrolling ===
 
The following types of scroll are used:
 
1. The player controls a character on the screen. When the character is moved the screen scrolls but the character remains in the same position on the screen. If they get to the edge of the map, they may walk up to the sides of the screen. If they walk back the other way when they reach a particular point on the screen it starts to scroll again and they remain in the same position.
 
2. The player controls a character on the screen. When the character is moved towards the edges of the screen, the scroll moves a whole screen in width or height. The character is now on the opposite side. e.g. the character moves left, the screen scrolls by a whole screen width, the character is now on the right. The screen only scrolls when they get close to the sides.
 
3. The screen always scrolls. The player controls a character who is either static or moves freely around the screen.
==== Software Scrolling ====
2,541
edits