i am developing a browser game and stuck on a “theory problem”.
I want to make the user to “level” specific buildings to gain better stats.
Example:
- Coal Mine: Lvl 1 (If user clicks on “upgrade” it will upgrade after X hours to lvl2 and so on)
Now my question is, whats the best solution to handle it in the mysql database?
What table setup’s would you prefer and how to mange the “lvling” thing?
Would it be good to make a table called “buildings” and another one with “user_buildings” where a link to “buildings” is with actual level?
Or are there better solutions?
Please help me with a good brainstorming 🙂
in the
buildingstable I would keep the buildings “definition” like hours needed to upgrade from lvl 1 to2 is X, from 2 to 3 is Y…in
user_buildingsI would keep the users curent building, like: Coal Mine, located apt partition of map z, built started at u, current level u…