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
60
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
0
answers
54
views
Separating game logic from UI in lockstep multiplayer
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 ...
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, ...
0
votes
1
answer
1k
views
What's the Unity way of implementing data driven UI
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'...
1
vote
1
answer
804
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 ...
1
vote
1
answer
725
views
Is it a good idea to implement a MVC pattern into my LibGDX 2D RPG-style game?
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 ...
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 ...
-1
votes
1
answer
941
views
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.
...
0
votes
1
answer
1k
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 ...
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.
...
1
vote
1
answer
153
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, ...
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
797
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
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.
...