Questions tagged [mvc]

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

Filter by
Sorted by
Tagged with
11
votes
2answers
2k 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. ...
4
votes
1answer
779 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 ...
3
votes
1answer
191 views

Combat numbers in an MVC

Bear with me this will take some explaining... I'm trying to design my game as close to Model-View-Controller design principles as possible. At least in and so far as I understand those principles. ...
3
votes
1answer
839 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. ...
3
votes
1answer
170 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
184 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 ...
3
votes
1answer
308 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 ...
3
votes
1answer
207 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 ...
3
votes
2answers
682 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
3answers
909 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 ...
2
votes
1answer
1k 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
915 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 ...
2
votes
2answers
3k views

Should game objects draw themselves? [duplicate]

Assuming you have classes like Player, Enemy, Map and ...
2
votes
3answers
310 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 ...
2
votes
1answer
156 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, ...
2
votes
1answer
765 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) ...
1
vote
2answers
252 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 ...
1
vote
1answer
1k 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 ...
1
vote
1answer
673 views

Game logic in mvc: model or controller?

Sorry if the title is too broad, I'll try to explain this in a more specific way down here. We need to create a board-game in Java for an University project and we have to use the mvc pattern for it. ...
1
vote
1answer
96 views

Using Unity and MonoBehavior for UI only?

I've made a turn-based game (think xcom) in Unity, and because I don't need real-time, asynchronous elements, or physics calculations I decided to make a pure c# Model (in the sense of Model, View, ...
1
vote
0answers
159 views

C++ - what is the best library that I can use to create GUI if a textview already exists [closed]

I have a 2D char array in the textView.Basically,I need to map each char to a texture and render the whole view. Given a limited time, what is the possible best library that I can use? The header for ...
0
votes
3answers
705 views

Applying MVC in Game Development

Suppose one is working on a game which has more than one component of code where the data, view, and logic is disjoint from the workings of another component of code (i.e. all games have a main menu ...
0
votes
1answer
336 views

is mvc design pattern good for developing video games? [closed]

how mvc design structure works in game development and specially in unity game development. I know what mvc is and how it works but in coding structure for game development specially in unity I don't ...
0
votes
1answer
120 views

Adding network support

I am trying to implement a simple game "Bulls and cows" in c#. It is a final project of my university course about design patterns. The target of the game is simple - try to guess the opponent number. ...
0
votes
1answer
161 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 ...
0
votes
1answer
864 views

WebGL .NETCoreApp 1.1 - UnityLoader.js - SyntaxError: expected expression, got end of script

After creating a release build of my game using Unity 5.6, I could navigate to the created folder and open the 'index.html' file and my game would load and play normally. However, when trying to ...
0
votes
0answers
65 views
0
votes
0answers
29 views

Render and Update in Robotlegs Like Archtecture

I'm developing a small Snake game using a custom engine and trying to apply Robotlegs-like MVC-S architecture with Commands, Events as well. Currently I put some commands for collision checks, bounds ...
0
votes
1answer
562 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 ...
0
votes
2answers
107 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 ...
-1
votes
1answer
1k 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 monsters....