Questions tagged [mvc]
Model-View-Controller, is a design pattern that separates (decouples) game objects data from it's presentation and ways of manipulation.
37 questions
0
votes
0
answers
26
views
How to model tic-tac-toe as a Model View Controller Pattern in JavaFX?
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 ...
0
votes
1
answer
160
views
Manage game states of a card game with MVC
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, ...
1
vote
1
answer
802
views
Adding JavaFX GUI to an MVC based terminal card game
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 ...
0
votes
0
answers
60
views
Approach in implementing the web browser game
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 ...
3
votes
1
answer
229
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.
...
1
vote
1
answer
2k
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.
...
0
votes
3
answers
2k
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
1
answer
157
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
1
answer
1k
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 ...
2
votes
3
answers
567
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 ...
5
votes
2
answers
4k
views
Should game objects draw themselves? [duplicate]
Assuming you have classes like Player, Enemy, Map and ...
0
votes
2
answers
136
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 ...
3
votes
1
answer
252
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 ...
-1
votes
1
answer
2k
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....
3
votes
2
answers
742
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
1
answer
2k
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?
1
vote
1
answer
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 ...
2
votes
1
answer
957
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
3
answers
1k
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
...