diff mamba/constants.py @ 561:9afaa1969d6f

Level format 2 support * * * Allow for blank author * * * Fix thinko in write code
author Neil Muller <drnlmuller@gmail.com>
date Tue, 18 Oct 2011 11:41:28 +0200
parents 4be447ecf53d
children b94f3db7bc90
line wrap: on
line diff
--- a/mamba/constants.py	Mon Oct 17 18:02:49 2011 +0200
+++ b/mamba/constants.py	Tue Oct 18 11:41:28 2011 +0200
@@ -1,5 +1,12 @@
 from pygame.locals import K_ESCAPE, K_q, K_BACKSPACE, K_DELETE
 
+# version tuple for maps
+# NB: We only compare on the first two elements of the version when loading
+# levels - this is so levels saved by later point releases are loadable by
+# older versions. So changing the level format (new sprite, etc.) is not
+# acceptable in a point release
+VERSION = (0, 2, 0)
+
 # Display constants
 SCREEN = (800, 600)
 EDIT_SCREEN = (1000, 600)