Anonymous
public text v1 · immutable#to controll which zone you are in and which area of that zone
class ZoneControll():
def CurrentZone(self):
if Global.CurrentZone == "SterlingField":
self.Area = Global.CurrentArea["central"]
Global.MapData = os.path.join (Global.CurrentZone,Global.CurrentZone[self.Area])
Global.MapImage = pygame.image.load(Global.MapData).convert_alpha()
#draw the map
Global.screen.blit(Global.MapImage,(0,0))