Combine "main" and "mainLoop".
This commit is contained in:
parent
b560aeadc1
commit
b8638b288d
14
main.py
14
main.py
@ -35,7 +35,11 @@ def nonzerocap(n):
|
||||
|
||||
|
||||
|
||||
def mainLoop():
|
||||
def main():
|
||||
pygame.init()
|
||||
pygame.display.set_caption('P3HE')
|
||||
if not pygame.get_init():
|
||||
return False
|
||||
offset = 0.0078125
|
||||
sky = (127,127,255)
|
||||
ground = (102, 51, 0)
|
||||
@ -171,14 +175,6 @@ def mainLoop():
|
||||
clock.tick()
|
||||
return True
|
||||
|
||||
def main():
|
||||
pygame.init()
|
||||
pygame.display.set_caption('P3HE')
|
||||
if not pygame.get_init():
|
||||
return False
|
||||
retstatus = mainLoop()
|
||||
return retstatus
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.path.append(os.path.realpath(__file__))
|
||||
if not main():
|
||||
|
Loading…
Reference in New Issue
Block a user