1234567891011121314151617181920212223242526272829 |
- import bge
- import FSM
- import requests
- import platform
-
- def phone_home():
-
-
- #url = 'https://www.w3schools.com/python/demopage.php'
- url = 'https://shuvit.org/phone_home.php'
- n = platform.uname()
- n = platform.platform()
- myobj = {'somekey': n}
-
- x = requests.post(url, data = myobj, timeout=3.50)
- print('phone home response')
- print(x.text)
-
- def main(cont):
- own = cont.owner
- dict = bge.logic.globalDict
- if 'game_inited' not in own:
- own['game_inited'] = True
- own['cont'] = cont
- dict['gameFSM'] = FSM.GameFSM(own)
- #phone_home()
-
-
- dict['gameFSM'].Execute()
|