For Linux users
Dang, I thought I caught all the capitalization mistakes before I finished, but it turns out I missed the level files. So there are three options if you're running on Linux or Mac, first you can change all of the level files to capital L, Level1.txt, Level2.txt, etc. in the data folder.Or download the play.py here with the updated file name play.py
Or you can change the following snippet of code starting from line 22:
if levelName == "Jungle": self.fname = "Level1.txt" self.introBanner,null = data.load_image("jungleIntro.png",(0,255,0)) self.robot = robot.Robot("Climb") elif levelName == "Space": self.fname = "Level2.txt" self.introBanner,null = data.load_image("spaceIntro.png",(0,255,0)) self.robot = robot.Robot("Gravity") elif levelName == "Lava": self.fname = "Level3.txt" self.introBanner,null = data.load_image("lavaIntro.png",(0,255,0)) self.robot = robot.Robot("Runner") elif levelName == "War": self.fname = "Level4.txt" self.introBanner,null = data.load_image("warIntro.png",(0,255,0)) self.robot = robot.Robot("Firepower") elif levelName == "Final": self.fname = "Level5.txt" self.introBanner,null = data.load_image("finalIntro.png",(0,255,0))
to
if levelName == "Jungle": self.fname = "level1.txt" self.introBanner,null = data.load_image("jungleIntro.png",(0,255,0)) self.robot = robot.Robot("Climb") elif levelName == "Space": self.fname = "level2.txt" self.introBanner,null = data.load_image("spaceIntro.png",(0,255,0)) self.robot = robot.Robot("Gravity") elif levelName == "Lava": self.fname = "level3.txt" self.introBanner,null = data.load_image("lavaIntro.png",(0,255,0)) self.robot = robot.Robot("Runner") elif levelName == "War": self.fname = "level4.txt" self.introBanner,null = data.load_image("warIntro.png",(0,255,0)) self.robot = robot.Robot("Firepower") elif levelName == "Final": self.fname = "level5.txt" self.introBanner,null = data.load_image("finalIntro.png",(0,255,0))
My apologies for that one, I'm getting rusty on differences with Python between Windows and Linux.
Thanks again Pekuja for catching that one.