Combine "main" and "mainLoop".

This commit is contained in:
bʰedoh₂ swé 2024-04-16 16:20:20 +05:00
parent b560aeadc1
commit b8638b288d

14
main.py
View File

@ -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():