Index
Techniques
How games are built: rendering, audio, animation, AI, engine and tooling techniques.
- RenderingStatus bar split — Keeping a status bar fixed while the playfield scrolls, by changing the display partway through a frame or using a separate layer. · 7 gamesRaster effects — Changing PPU settings, usually the scroll, partway through drawing a frame, so different bands of the screen move differently. · 5 gamesSprite flicker — Changing the order of sprites in OAM from frame to frame so that, past the 8-per-scanline limit, a different sprite drops out each frame. · 3 gamesCHR bank switching — Swapping which part of the cartridge's tile ROM the PPU sees, to animate tiles or to give part of the screen its own tile set. · 2 gamesColor math — The Super NES's adding or subtracting of a second picture or a fixed color to the screen, for translucency, fades, tints and glows. · 2 gamesPalette cycling — Animating graphics by rewriting palette entries over time while the tiles stay the same. · 2 gamesHDMA — The Super NES's horizontal-blank DMA, which writes a table of values to a video register line by line with no CPU time, for effects such as gradients and ripples. · 1 gameMode 7 — The Super NES background mode that rotates and scales one large layer through a 2 by 2 matrix, used for spinning bosses and for floors seen in perspective. · 1 gameMosaic — A Super NES setting that draws a background in square blocks of a single color, for blurs and transitions. · 1 gameRaycasting — A way to draw a first-person view of a tile map by casting one ray per screen column across the grid and sizing that column's wall slice by the distance to the hit. · 1 gameScrolling — Moving the view across a level larger than the screen, by shifting the background and drawing the new edge before it comes into view. · 1 gameBackground objects — Large enemies or machinery drawn in the background's tiles instead of with sprites, so they can exceed the sprite limits, at the cost of moving only by redrawing or scrolling.CHR RAM — Tile patterns kept in RAM on the cartridge, which the game fills from program ROM, instead of fixed tiles in CHR ROM.Forced blanking — Turning the display off so the game can write video memory freely, at the cost of a blank screen while it does.Metasprites — An object drawn from several hardware sprites placed by a table of offsets, with one such table per animation frame.Metatiles — Background blocks built from several tiles, so a level is stored and drawn in units larger than the hardware's tiles.Palette swap — Showing the same tiles or sprites in other colors by changing only the palette, for a second player, a power-up, an area, or damage.Pre-rendered sprites — Sprites and tiles made by rendering 3D models before release and reducing each frame to the console's colors, rather than drawing them pixel by pixel.Shadow OAM — A copy of the sprite table kept in RAM, filled during the frame and copied to the video chip in one transfer at vertical blank.Tile animation — Animating part of the background by rewriting its tile numbers in the name table or its patterns in tile memory over time.VRAM buffer — A queue in RAM of writes for video memory, which the game fills during the frame and copies to the video chip in vertical blank.
- AudioMusic driver — The routine that runs a game's music once a frame, reading note and length bytes per channel and writing the sound chip's registers. · 4 gamesSampled sound — Playing sound from stored sample values rather than a chip's fixed tone shapes, from a 32-step loop in Game Boy wave RAM to recorded instruments on the Super NES. · 3 gamesDPCM samples — Playing recorded sound on the NES through its delta modulation channel, a 1-bit delta stream read from cartridge ROM. · 2 gamesEcho — A delayed copy of the sound mixed back into the output for reverb or space, which the Super NES's sound chip makes in hardware.Sound effects — Short sounds a game plays on its sound channels over or instead of the music, with rules for which sound gets a channel.
- EngineRandom number generator — The routine a game calls for its rolls, producing a sequence from a formula, a fixed table, or hardware timing. · 24 gamesPassword and battery save — Metroid's password packs 18 bytes into 24 characters with a check byte; Dragon Warrior's battery save keeps ten CRC-checked copies and loads the first that passes. · 10 gamesDemo playback — Super Mario Bros., NES Tetris, and Doom play a demo by feeding stored inputs through their normal input path; Quake replays the server's recorded messages instead. · 5 gamesSimulation tick — SimCity spreads its simulation over a 16-step cycle: eight steps each scan a strip of the map, and the other eight run the clock, census, traffic, and overlay maps. · 5 gamesController reading — Each frame a game polls its controllers and turns the button states into held and newly pressed bits for the rest of the code. · 2 gamesObject slots — A fixed table of object records in RAM, one slot per enemy, item, or shot, which spawning fills and despawning frees. · 2 gamesProcedural dungeon — Building each dungeon level at random from rules, such as rooms placed on the map and joined by corridors. · 2 gamesCooperative multitasking — Running several jobs as tasks that each hand control back on their own, so one frame can resume many half-finished routines. · 1 gameGame loop — The code that runs once per displayed frame, timed to the video chip's vertical blank, and calls each part of the game in turn. · 1 gameRNG manipulation — Steering a game's random outcomes by changing when or how its generator advances or gets sampled. · 1 gameState machine — A number that names what a game or an object is doing now, with one routine per value and a dispatch that runs the current one. · 1 gameTile collision — Testing points of an object against the level's tile map to decide what stops it, holds it up, or lets it pass. · 1 gameBinary-coded decimal — Storing a number as its decimal digits, one to a byte or two to a byte, so the game can show it without dividing.Boot sequence — The code a console runs from its reset vector at power-on or reset, which readies the hardware and memory and then starts the game.Copy protection — Code that checks a copy of a game is genuine or unmodified, and changes or stops play when it isn't.Enhancement chip — A processor in the cartridge that works beside the console's own, for speed, 3D, scaling or decompression.Jump table — A table of code addresses indexed by a number, which a game uses to run one of several routines without a chain of comparisons.Level loading — A game stores its levels compactly and expands them into the screen, collision map, and objects as play reaches them.PRG bank switching — Swapping which bank of program ROM the CPU sees in part of its address space, so a cartridge can hold more code and data than the CPU can address at once.Run-length encoding — Compression that stores a run of one repeated value as the value and a count, which suits screens full of empty or repeated tiles.