Making use of a database

As a web developer, it is hardly avoidable to work with a database. And why not? It seems to be the best way to create, store or edit data and keep it over a long time.

Since my game is not just a heavy ui, but also a heavy data driven game, storing data in the common game dev world doesn’t seem to be the right choice.

Creating an event manager

Connecting a database is just as easy as on a webiste

The game relies on events that while occure on a certain date or depending on some random factors. To keep track of all the events, I use a database. This will also allow me to keep track of events.

Good old webdev habbits: Let's work with databases.
The event management seems to work. This prompt triggers the beginning of the Second World War on the correct date.

For now, I am totally good with this approach. Writing queries to databases is something, I am very comfortable with. But right now, I am also asking myself, how this approach could work if I have multiple save games. But this is a problem for the future me. Haha, take this ***!

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *