Abstracting…

So far, we've only implemented boring UI stuff and some housekeeping code for our assets and settings. we'll now abstract the world of Mr. Nom and all the objects in it. we'll also free Mr. Nom from the screen resolution and let him live in his own little world with his own little coordinate system.

Abstracting the World of Mr. Nom: Model, View, Controller

If you are a long-time coder, you've probably heard about design patterns. They are, more or less, strategies to design your code, given a scenario. Some of them are academic, and some have uses in the real world. For game development, we can borrow some ideas from the Model-View-Controller (MVC) design pattern. It's often used by the database and Web community to separate the ...

Get Beginning Android 4 Games Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.