The Linux Foundation Projects
Skip to main content

Wrapping

Camera wrapping is a technique often used in video games, which allows a player to move in a straight line and get back to where they started. This was more often used in older games to make it seem that the player is moving up or down an extremely high hill; memory can be saved by using wrapping instead of creating a larger area filled with impassable walls. Wrapping is also used to make a 2D game world round; for example, in PacMan exiting the game screen to the right wraps the player to the same position on the left side of the screen. Similarly, in Final Fantasy VII, exiting the game map to the right wraps the player to the same position on the left side of the map, and exiting the map to the top wraps the player to the bottom of the map.