Design Patterns and Video Games

OpenGL 2D Facade

Create a facade for tile-based games using OpenGL. We present examples in Python, but the design and the OpenGL bindings are the same whatever the language.

Patterns: Facade, Game Loop, Observer, Flyweight, Abstract Factory, Factory Method

The post list:

  1. Window and basic drawing
  2. Mesh data
  3. Vertex Array Objects
  4. Shaders
  5. Textures
  6. Draw a tile
  7. Render a level
  8. Facade
  9. Load a level
  10. Layers
  11. View and Keyboard
  12. Characters
  13. Text
  14. Unicode Text
  15. Text styles
  16. Text renderers
  17. Mixed text styles
  18. Frame box
  19. Test content
  20. Automatic tile borders
  21. Shaders and Layers
  22. Load and save game state
  23. Water animation
  24. The Z-Buffer
  25. Get the Z of a pixel
  26. More to come...