Applying MVC to the RPG course [QUESTION]

Hi there folks!

I’m creating a 2d game besides the RPG development. I’m finding myself struggling with the readability and structure when I continue my project after a little while so I started thinking about applying MVC principles to the Unity project structure (like for example in Xamarin).

Of course this is already done by other people before, so I decided to try and find some references on google first to get me going. I’ve found a very interesting article about applying MVC to a Unity project instead of using their standard Entity-Component structure. I’m going and try to apply this concept to my 2d game. I’m not sure if you guys agree on this kind of structure but it’s probably interesting to give it a quick read.

@ben & @Rick_Davidson Maybe apply it to the RPG course beforehand? You know, for the sake of non-spaghetti code or something :wink: If not that’s okay of course but I’m very curious about your opinion on this.

The article: https://www.toptal.com/unity-unity3d/unity-with-mvc-how-to-level-up-your-game-development

UPDATE: modified the outcome of the article to my needs. A small simple example can be downloaded here:

Cheers!

1 Like

cheers for the article link.
having a read this afternoon.

1 Like

Hi @OboShape,

Just tried out the full article and concept in Unity. Modified it a little. I’ve pushed the project to a Bitbucket repo. Perhaps it can be of use for the RPG as well. Feel free to comment on the git project!

Repo can be found here: https://bitbucket.org/jeroenboumans/unitymvc

I’ve aso attached it to the post.

1 Like

Privacy & Terms