Moongate Games UK

"Changing worlds, one line of code at a time"

Real World Data in Games (Weather Edition)

As I write this I'm on a train on my way to London for a couple days to do a workshop on the Internet of things.

For those who don't know what the Internet of Things (IoT) is, it's basically all sorts of devices that connect to the Internet, including things like you smartphone, pc, fridge, car and alsorts of other devices. 

Going to this workshop had me thinking, What about pulling data from the real world have have it put into Virtual worlds or game world's. There are loads of possibilities for stuff like this. The first thing that comes to mind in my own head is simulating the weather from the players location in the game world.  

For something like that it's not actually that hard to implement, all you would need is to first have someway to get the players location, such as inputting it or if they're on a smartphone using the GPS location. Then using a weather API such as the openweathermap API you can get the current weather in their location, and implement it into the game itself.

With just the data from this you could simulate the weather in a game world, or even use it to create new worlds...

With just the data from this you could simulate the weather in a game world, or even use it to create new worlds...

Or you could use some of the weather details pulled to generate levels/world's in game using a Random Number Generator. Obviously with something like this if you have the exact same weather conditions, the you will get the exact same level.