Model-View-Controller, is a design pattern that separates (decouples) game objects data from it's presentation and ways of manipulation.
0
votes
1answer
71 views
MVC How To Handle Animations?
I am working on a turn based game that utilizes the model, view, controller design pattern to separate logic from input from rendering. I am still a little new to the pattern, but from my ...
6
votes
2answers
338 views
Does SpriteKit follow the MVC pattern?
I am currently working on an iOS project called Old Frank that I have been trying to follow a MVC design pattern.
The gist of it is.
GameObjects(model) <- Scene(controller) -> Sprites "SpriteKit" ...
1
vote
3answers
107 views
Implementing single and muliplayer without messing everything up [closed]
I don't know a good way to implement single and multiplayer in a game without messing up the whole project structure.
Should I create separate classes for single and multiplayer entities or is there ...
4
votes
1answer
288 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.
...
1
vote
2answers
789 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
190 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
99 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
149 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
77 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
149 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
616 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
411 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
516 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
125 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
519 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
256 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
722 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
190 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
535 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
343 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
767 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 ...