class CEEntity(object):

    '''
    A CEEntity is anything that has variables (including a timer, which is always there by default).
    This includes all sprites and the current stage, and possibly other things as needed. Scripts
    are always run relative to an instance of CEEntity; this is how we can use the same language to
    refer to either sprites or stages.

    CEEntity variables are arbitrary strings. CEEntity values are arbitrary objects, including
    other CEEntity instances.
    '''

    def __init__(self):
        self.timer = 0
        self.vars = {}

    def set(self, name, val):
        self.vars[name] = val

    def get(self, name, default=None):
        if name in self.vars:
            return self.vars[name]
        return default

    def update(self, mils):
        self.timer += mils

@@ -490,16 +490,101 @@
 tances.%0A
+    %0A    Some variables have special extra handling; see the set method for details.%0A
     '''%0A
@@ -714,16 +714,224 @@
 e%5D = val
+%0A        if name == 'x':%0A            self.vars%5B'tilex'%5D = val/16%0A            self.vars%5B'physx'%5D = val*16%0A        if name == 'y':%0A            self.vars%5B'tiley'%5D = val/16%0A            self.vars%5B'physy'%5D = val*16
 %0A%0A    de

add handling for setting x/y