Skip to content

Commit ca23a21

Browse files
author
XenGi
committed
version number bumped. tests updated. add some inline notes.
1 parent 52f7717 commit ca23a21

11 files changed

+28
-24
lines changed

controller_example.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"""
1111

1212
__author__ = 'Ricardo Band'
13-
__copyright__ = 'Copyright 2013, Ricardo Band'
13+
__copyright__ = 'Copyright 2014, Ricardo Band'
1414
__credits__ = ['Ricardo Band']
1515
__license__ = 'MIT'
16-
__version__ = '0.1.0'
16+
__version__ = '0.1.1'
1717
__maintainer__ = 'Ricardo Band'
1818
__email__ = '[email protected]'
1919
__status__ = 'Development'

emulator.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"""
1111

1212
__author__ = 'Ricardo Band'
13-
__copyright__ = 'Copyright 2013, Ricardo Band'
13+
__copyright__ = 'Copyright 2014, Ricardo Band'
1414
__credits__ = ['Ricardo Band']
1515
__license__ = 'MIT'
16-
__version__ = '0.1.0'
16+
__version__ = '0.1.1'
1717
__maintainer__ = 'Ricardo Band'
1818
__email__ = '[email protected]'
1919
__status__ = 'Development'

game_example.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
"""
1212

1313
__author__ = 'Ricardo Band'
14-
__copyright__ = 'Copyright 2013, Ricardo Band'
14+
__copyright__ = 'Copyright 2014, Ricardo Band'
1515
__credits__ = ['Ricardo Band']
1616
__license__ = 'MIT'
17-
__version__ = '0.1.0'
17+
__version__ = '0.1.1'
1818
__maintainer__ = 'Ricardo Band'
1919
__email__ = '[email protected]'
2020
__status__ = 'Development'
@@ -138,6 +138,9 @@ def gameloop(self):
138138
self.render()
139139
except KeyboardInterrupt:
140140
pass
141+
# don't forget to quit the controller process if your game ends.
142+
# In future releases this will be done automatically.
143+
self.ctlr.quit()
141144

142145

143146
if __name__ == '__main__':

pymlgame/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# -*- coding: utf-8 -*-
22

33
__author__ = 'Ricardo Band'
4-
__copyright__ = 'Copyright 2013, Ricardo Band'
4+
__copyright__ = 'Copyright 2014, Ricardo Band'
55
__credits__ = ['Ricardo Band']
66
__license__ = 'MIT'
7-
__version__ = '0.1.0'
7+
__version__ = '0.1.1'
88
__maintainer__ = 'Ricardo Band'
99
__email__ = '[email protected]'
1010
__status__ = 'Development'

pymlgame/clock.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"""
66

77
__author__ = 'Ricardo Band'
8-
__copyright__ = 'Copyright 2013, Ricardo Band'
8+
__copyright__ = 'Copyright 2014, Ricardo Band'
99
__credits__ = ['Ricardo Band']
1010
__license__ = 'MIT'
11-
__version__ = '0.1.0'
11+
__version__ = '0.1.1'
1212
__maintainer__ = 'Ricardo Band'
1313
__email__ = '[email protected]'
1414
__status__ = 'Development'

pymlgame/controller.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"""
66

77
__author__ = 'Ricardo Band'
8-
__copyright__ = 'Copyright 2013, Ricardo Band'
8+
__copyright__ = 'Copyright 2014, Ricardo Band'
99
__credits__ = ['Ricardo Band']
1010
__license__ = 'MIT'
11-
__version__ = '0.1.0'
11+
__version__ = '0.1.1'
1212
__maintainer__ = 'Ricardo Band'
1313
__email__ = '[email protected]'
1414
__status__ = 'Development'
@@ -119,7 +119,7 @@ def quit(self):
119119
"""
120120
Kill the Controller process.
121121
"""
122-
self.t._stop()
122+
self.server.server_close()
123123

124124

125125
class Event(object):

pymlgame/locals.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"""
66

77
__author__ = 'Ricardo Band'
8-
__copyright__ = 'Copyright 2013, Ricardo Band'
8+
__copyright__ = 'Copyright 2014, Ricardo Band'
99
__credits__ = ['Ricardo Band']
1010
__license__ = 'MIT'
11-
__version__ = '0.1.0'
11+
__version__ = '0.1.1'
1212
__maintainer__ = 'Ricardo Band'
1313
__email__ = '[email protected]'
1414
__status__ = 'Development'

pymlgame/screen.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"""
66

77
__author__ = 'Ricardo Band'
8-
__copyright__ = 'Copyright 2013, Ricardo Band'
8+
__copyright__ = 'Copyright 2014, Ricardo Band'
99
__credits__ = ['Ricardo Band']
1010
__license__ = 'MIT'
11-
__version__ = '0.1.0'
11+
__version__ = '0.1.1'
1212
__maintainer__ = 'Ricardo Band'
1313
__email__ = '[email protected]'
1414
__status__ = 'Development'

pymlgame/surface.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"""
66

77
__author__ = 'Ricardo Band'
8-
__copyright__ = 'Copyright 2013, Ricardo Band'
8+
__copyright__ = 'Copyright 2014, Ricardo Band'
99
__credits__ = ['Ricardo Band']
1010
__license__ = 'MIT'
11-
__version__ = '0.1.0'
11+
__version__ = '0.1.1'
1212
__maintainer__ = 'Ricardo Band'
1313
__email__ = '[email protected]'
1414
__status__ = 'Development'

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"""
77

88
__author__ = 'Ricardo Band'
9-
__copyright__ = 'Copyright 2013, Ricardo Band'
9+
__copyright__ = 'Copyright 2014, Ricardo Band'
1010
__credits__ = ['Ricardo Band']
1111
__license__ = 'MIT'
12-
__version__ = '0.1.0'
12+
__version__ = '0.1.1'
1313
__maintainer__ = 'Ricardo Band'
1414
__email__ = '[email protected]'
1515
__status__ = 'Development'

tests.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"""
77

88
__author__ = 'Ricardo Band'
9-
__copyright__ = 'Copyright 2013, Ricardo Band'
9+
__copyright__ = 'Copyright 2014, Ricardo Band'
1010
__credits__ = ['Ricardo Band']
1111
__license__ = 'MIT'
12-
__version__ = '0.1.0'
12+
__version__ = '0.1.1'
1313
__maintainer__ = 'Ricardo Band'
1414
__email__ = '[email protected]'
1515
__status__ = 'Development'
@@ -227,7 +227,8 @@ def setUp(self):
227227
TEST_RPC_PORT))
228228

229229
def tearDown(self):
230-
self.controller.server.server_close()
230+
self.controller.quit()
231+
# just wait a second for the socket to close
231232
time.sleep(1)
232233

233234
def test_uid(self):

0 commit comments

Comments
 (0)