Skip to content

Commit

Permalink
Fixed occasional issue with startup. See pyglet/pyglet#1019
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea-Oliveri committed Dec 21, 2023
1 parent 054440b commit b085565
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
9 changes: 8 additions & 1 deletion pacman.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@
os.chdir(sys._MEIPASS)


import pyglet

# This improves stability by preventing strange occasional crashes when creating main window.
# It also appears to avoid other occasional issue where process takes long time to end after window closed.
# See GitHub issue pyglet/pyglet#1019
pyglet.options['shadow_window'] = False



import pyglet.app
from src.window import Window

window = Window()
Expand Down
8 changes: 7 additions & 1 deletion references/Additional references.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
On the Pseudo-Random number generator for Frightened ghosts:
https://youtu.be/eFP0_rkjwlY?feature=shared
https://youtu.be/eFP0_rkjwlY?feature=shared

On the number of lives in Pac-Man:
https://www.reddit.com/r/Pacman/comments/gvwj5k/questions_about_lives_in_the_original_pacman_from/

Example of a perfect game:
https://youtu.be/AuoH0vz3Mqk?feature=shared

0 comments on commit b085565

Please sign in to comment.