Skip to main content

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
0 votes
0 answers
63 views

I wrote a Board.java class which draws the initial board draws the Reset button draws the label to indicate whose turn is it In the Main class: I initialized a Pane. Initialized the Board's board ...
zeeshanseikh's user avatar
0 votes
0 answers
54 views

In lockstep multiplayer the simulation of game world has to be deterministic. A frequent source of errors is accidentally changing the game state from local player UI functions. This breaks the ...
luminous's user avatar
0 votes
1 answer
161 views

I am creating a Yugioh java game with MVC. I was wondering wich is the better way to manage game states with MVC? I tought maybe I can use State Pattern in Model section with DrawPhase, ...
Zetsu_Zetsu's user avatar
0 votes
1 answer
1k views

I'm used to application development with frameworks like Qt, and I'm really fond of using MVC-like patterns. Now I'm diving into game dev and I have a bunch of data that I want to show the user and I'...
Josh Sanders's user avatar
1 vote
1 answer
807 views

I have written a version of Castle that so far plays through the terminal. I have recently refactored my code (which can be found here) to use the MVC design pattern. After I have added a GUI I will ...
theJavaGuy's user avatar
1 vote
1 answer
725 views

For example I currently have a Player object that contains it's textures/animations and how to render these (I'd consider this as the view). Player also has an update() method which controls where the ...
TJRC's user avatar
  • 131
0 votes
0 answers
60 views

Im Phil and try to figoure out the best approach for my app. I was searching Stack for my question but I didnt find a completely answer. Assumptions: It will be multiple user who can see in real time ...
Gierlos's user avatar
-1 votes
1 answer
942 views

...
Caston's user avatar
  • 99
3 votes
1 answer
229 views

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. ...
Thoumis Tiechy's user avatar
0 votes
1 answer
1k views

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 ...
Brien Foss's user avatar
1 vote
1 answer
2k views

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. ...
EsotericVoid's user avatar
1 vote
1 answer
153 views

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, ...
Elliot JJ's user avatar
  • 221
0 votes
3 answers
2k views

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 ...
Alex W's user avatar
  • 101
0 votes
1 answer
798 views

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 ...
virtouso's user avatar
  • 2,680
0 votes
1 answer
158 views

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. ...
snoward's user avatar
1 vote
0 answers
185 views

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 ...
Aisen Wang's user avatar
0 votes
1 answer
1k views

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 ...
MrJman006's user avatar
  • 197
10 votes
2 answers
3k views

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. ...
Skyler Lauren's user avatar
2 votes
3 answers
568 views

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 ...
Philipp Kirsch's user avatar
3 votes
1 answer
1k views

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. ...
Tordek's user avatar
  • 133
5 votes
2 answers
4k views

Assuming you have classes like Player, Enemy, Map and ...
user42030's user avatar
1 vote
2 answers
335 views

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 ...
Daniel Kaplan's user avatar
0 votes
2 answers
136 views

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 ...
Daniel Santos's user avatar
0 votes
1 answer
281 views

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 ...
Davidet's user avatar
3 votes
1 answer
255 views

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 ...
10nikov's user avatar
  • 33
3 votes
1 answer
209 views

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 ...
RankWeis's user avatar
  • 133
-1 votes
1 answer
2k views

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....
user2336243's user avatar
2 votes
1 answer
1k views

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) ...
Dionysius's user avatar
  • 121
3 votes
2 answers
743 views

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 ...
v_y's user avatar
  • 133
2 votes
1 answer
217 views

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, ...
user26691's user avatar
2 votes
1 answer
2k views

Can the Model View Controller design pattern be used with non-OOP coding style, specifically with Entity Component System?
TokyoDan's user avatar
  • 299
3 votes
1 answer
415 views

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 ...
Matthias Reisner's user avatar
1 vote
1 answer
1k views

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 ...
Aitor's user avatar
  • 19
3 votes
1 answer
260 views

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 ...
David Gouveia's user avatar
2 votes
1 answer
962 views

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 ...
Rendition's user avatar
4 votes
1 answer
1k views

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 ...
blissfreak's user avatar
2 votes
3 answers
1k views

Say i had a Monster class public class Monster { } Now this class has a set of properties like ...
netbrain's user avatar
  • 339