mirror of
https://github.com/LucasKalil-Programador/sand-box-python.git
synced 2026-07-04 16:32:58 -03:00
Finalizado
This commit is contained in:
parent
46ee808c5e
commit
cc3d1f3ad8
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
|
@ -112,7 +112,7 @@ class Game:
|
||||||
self.__render_gui()
|
self.__render_gui()
|
||||||
pygame.display.flip()
|
pygame.display.flip()
|
||||||
|
|
||||||
self.fps_clock.tick(self.fps)
|
self.fps_clock.tick_busy_loop(self.fps)
|
||||||
|
|
||||||
def __loading(self):
|
def __loading(self):
|
||||||
# First run to force numba compilation
|
# First run to force numba compilation
|
||||||
|
|
@ -146,5 +146,5 @@ class Game:
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
game = Game(size=(1000, 1000), fps=300, scale=1, test_mode=True)
|
game = Game(size=(160, 160), fps=120, scale=4, font_size=30, test_mode=False)
|
||||||
game.run()
|
game.run()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue