Model-View-Controller, is a design pattern that separates (decouples) game objects data from it's presentation and ways of manipulation.

learn more… | top users | synonyms

4
votes
1answer
197 views

Game Architecture and Separation of Concerns

I'm trying to build a "simple" Tetris game, but I want to have enough flexibility to add a few things: The game can be played by a human, or (if the human presses a certain key) an AI is swapped in. ...
0
votes
0answers
16 views

LibGDX MVC - Where I should put resources [duplicate]

I want to use a MVC pattern to develop a small Game like SpaceInvaders. But dont know, wether I unterstand this pattern right. First of all, I try to explain how I understand this pattern. Model: ...
1
vote
2answers
329 views

Should game objects draw themselves? [duplicate]

Assuming you have classes like Player, Enemy, Map and Tile. The first approach to structuring rendering code would be to give each a render() method and let it draw itself: void render(){ ...
1
vote
2answers
161 views

How do I separate model positions from view positions in MVC?

Using MVC in games (as opposed to web apps) always confuses me when it comes to the view. How am I supposed to keep the model agnostic of how the view is presenting things? I always end up giving ...
0
votes
2answers
97 views

is a good practice to orgnize MVC classes in diferent packages? [closed]

Im,working on a project where the classes are organized by subject like gameplay, menus, utilities etc... Basically this 3 packages. is a good practice to organize classes in controller, view and ...
0
votes
1answer
140 views

Is my social game technical solution viable?

I'm currently working on a board social game using HTML5 (canvas) & Asp.net MVC 4, Azure, Sql server, EF. I'd like to do a server side realtime validation (using Ajax) of a player moves (not more ...
2
votes
1answer
66 views

Which part of MVC should be responsible for selecting a unit

Imagine a turn-based tile game, that generally looks like Heroes' combat view. Except for the fact a player can choose any of his units to command. Our team is implementing the game according to MVC ...
3
votes
1answer
121 views

When using MVC, what is the proper way to handle a view refresh when the model isn't ready?

I'm about to start building a game and am having trouble understanding the proper course of action when it's time to refresh the screen, but the model hasn't finished its calculations. I assume this ...
-2
votes
1answer
468 views

MVC pattern for turn-based RPG [closed]

I'd like to make a 2D game in Java using the Model-View-Controller (MVC) pattern, but I have some issues concerning the battles. There are two groups of characters in each battle: heroes and ...
2
votes
1answer
279 views

MVC with looping view

For our school project we'd like to develop a game using the MVC pattern. We're all moderate new java programmers and absolutely new in game development. With our current view (containing only menu) ...
3
votes
2answers
436 views

Are javascript MVC model implementations too slow for games?

I wanted to implement a game in javascript with an MVC design pattern, with each entity's state stored in a model. So for example, In an update loop we iterate over all models and apply the velocity ...
2
votes
1answer
110 views

Model View Controller linking dynamic model to view

I currently an implementing a game roughly using a model-view-controller setup. A single game controller instantiates a model and view. The model and view then instantiate child models and views, ...
1
vote
1answer
355 views

Entity Component Systems with Model View Controller

Can the Model View Controller design pattern be used with non-OOP coding style, specifically with Entity Component System?
2
votes
1answer
239 views

Comprehension question to MVC Pattern in Game Programming

So is my assumption right? If I use MVC in Games I will have to implement a Model,Controller,View for every kind of interaction object. For example in an Motorbike game. My Motorbike object will ...
0
votes
1answer
526 views

Any link / tutorial of how to develop MVC pattern? [closed]

I want to learn how to develop a MVC pattern, but i can't find any site in where they focus it to Games and not to Browser / Windows calculator. Would anyone please link me a tutorial of how to ...
3
votes
1answer
186 views

Using MVC with a retained mode renderer

I am using a retained mode renderer similar to the display lists in Flash. In other words, I have a scene graph data structure called the Stage to which I add the graphical primitives I would like to ...
2
votes
1answer
430 views

How should I connect objects when using the MVC paradigm?

This has been confusing me for the past week as I am trying to make my first actual game. It's only my 2nd year learning Java so I am really trying to learn how to program like a professional ...
4
votes
1answer
260 views

Using heavyweight ORM implementation for light based games

I'm just about to engulf myself in an MVC-based/Component architecture in C#, using MySQL's connector/Net for the data storage, and probably some NHibernate/FluentNHibernate Object-relational-mapping ...
2
votes
3answers
683 views

Design pattern on class level, how to do separation of concerns through mvc or alike?

Say i had a Monster class public class Monster { } Now this class has a set of properties like int health int speed int weaponDamage which details the core information about the monster. in ...