Mid
From PDF
GoF Patterns
Gang of Four Patterns
Tile-Based Games:?
- In games like Tetris or Minecraft, the board or world might contain many
repeated elements (e.g., the same type of tiles or blocks). Using the Flyweight
Pattern, you can create a single object for each tile type and reuse it across
multiple grid locations, saving memory.
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png