background preloader

Design patterns

Facebook Twitter

Quick Tip: The OOP Principle of Coupling. So far in this series, we've discussed object-oriented programming in general, and the OOP principle of cohesion.

Quick Tip: The OOP Principle of Coupling

In this article, we'll look at the principle of coupling and how it helps in game development. Note: Although this tutorial is written using Java, you should be able to use the same techniques and concepts in almost any game development environment. Coupling looks at the relationship between objects and how closely connected they are.

A Relations Diagram is a great way to visualise the connections between objects. Game design patterns - MVC. Quick Tip: Intro to Object-Oriented Programming for Game Development. Welcome to a new series of Quick Tips on Object-Oriented Programming!

Quick Tip: Intro to Object-Oriented Programming for Game Development

We'll be going over the principles of OOP and how they can be used to create organized code. In this first part, we'll talk about what OOP is and why it's helpful, with a few examples of how it could be used in game development. What Is Object-Oriented Programming? Object-oriented programming (OOP), in its most basic sense, is a programming style used to organize code. Video games can run anywhere from a few thousand lines of code (Cut the Rope has 15,000) to millions of lines of code long (Crysis has over a million).