Skip to content

Commit

Permalink
# Fix for issue : Talendar#3
Browse files Browse the repository at this point in the history
# Fix for issue : Talendar#3 by prabathbr (https://github.com/prabathbr/)
import os
from pathlib import Path
_BASE_DIR = Path(os.path.dirname(os.path.realpath(__file__))).parent
ASSETS_DIR = str(_BASE_DIR / "flappy_bird_gym/assets")
  • Loading branch information
prabathbr authored Feb 14, 2022
1 parent d014428 commit 2b244e0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flappy_bird_gym/original_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@
import pygame
from pygame.locals import *

ASSETS_DIR = "./flappy_bird_gym/assets"
# Fix for issue : https://github.com/Talendar/flappy-bird-gym/issues/3 by prabathbr (https://github.com/prabathbr/)
import os
from pathlib import Path
_BASE_DIR = Path(os.path.dirname(os.path.realpath(__file__))).parent
ASSETS_DIR = str(_BASE_DIR / "flappy_bird_gym/assets")


FPS = 30
SCREEN_WIDTH = 288
Expand Down

0 comments on commit 2b244e0

Please sign in to comment.