As a hobby project, I'm currently trying to create a small browser game - and I thought it would be the โright thingโ to encode it using the MVC pattern, separating the game โengineโ from the presentation. It would be a simple RPG game where a player character wanders around the world, fighting monsters and collecting items.
My problem is that I am stuck in engine design. In the current project, most of the engine dominates the player-character object - there are things like location, monster or item, but this is the character that performs most of the actions: travels, attacks, buys items, etc. I know there are probably other ways to develop such an engine, but for some reason I canโt understand this, so I ask you to give you some tips or advice.
Oh, and the server server will be php + mysql, if that matters.
source
share