Well, i dunno why, but i always wanted to get work real weather in 2D Well, we just talked with SQ: about his project, when i got the real idea. I would like to share my currently small project and idea for you guys and get suggestions or opinions by you.
To get the real weather for 2D is very easy.
Service Provider is OpenWeather
API Example:
api.openweathermap.org/data/2.5/weather?q=London,uk&appid=2de143494c0b295cca9337e1e96b00e0
There is a cron.php file, which need to be executed every mins by a simple cron job.
This PHP file edits a weather.dat file, which read by a simple LUA script.
Currently it just display a simple text every minute:
- Please keep in mind that i used Budapest which was Mist and had 5 Celsius when i made the screenshot.
To provide that see this pic.
The main idea is the next:
Weather widget which tells the currently weather and display it, which example a nice pic and with other informations
The game changes's the weather accordingly which is the currently weather in your city.
Please share your opinions.
The script just requires some work and its done.
3× editiert, zuletzt 08.12.15 03:48:26