Skip to content

L04_Play Game on Pycharm !

Download the Game Projects from Github

Open the Game with Pycharm

Click File - Open
alt text

Find the path to the file you just downloaded and copy it here
alt text

Configure Pycharm

  1. Select Your Local Python Interpreter. (not Virtual Environment)

alt text

  1. 2 ways to run your game project

  2. Select the Current File and Click on Run button.
    alt text

  3. Or, Just move the mouse cursor to the code area of ​​the project, right-click, and select “Run ” to run the current code. alt text

  4. Pip install packages

alt text
You will find that the Pygame module name is underlined with a red wavy line. This is because you need to install the pygame module to run this game. This is easy to fix: Click Terminal button and type: pip install pygame

alt text

You can play it now !!! πŸ€©πŸ˜πŸ€—πŸ€—

alt text

You can play it now !!! πŸ€©πŸ˜πŸ€—πŸ€—

alt text

Hints

On windows, you can press windows + R to open Run command; In MacOS, you go to the Terminal to open Run command
alt text

Type python, you can check whether you’ve installed Python Interpreter:

Exit the Python shell by typing exit() or pressing Ctrl+Z (on Windows).

In the command line (outside the Python interpreter), run the following:

pip list

You can check all installed packages.

Dinosaur T-Rex Game Serial

Dinosaur T-Rex alt text

alt text Naruto

alt text Halloween Runner Game

alt text Night

Some inspiration on Dinosaurs

Hack Club dinosaurs alt text

No PIL Package Resolved

alt text

pip install Pillow

alt text