I will summarize the procedure for building an environment for a retro game engine called Pyxel.
It is a commentary for Mac.
A game engine that allows you to develop retro-style games in Python. It is published on github, so please see here for details. https://github.com/kitao/pyxel
I will explain in this order.
--Installing Homebrew --Install Python3 --Installing Pyxel
To use Pyxel, you need to install Python3. (Python installed by default on Mac is an old version, and Pyxel does not work.) And it is convenient to use Homebrew to install Python3, so I will install it.
First, open a standard Mac application terminal and enter the code below to run it.
brew -v
If the execution result is as below, homebrew is already installed. Proceed to step 4
Homebrew 2.5.5
Homebrew/homebrew-core
If the execution result is as below, Homebrew is not installed. Proceed to step 2.
command not found
If the execution result is as below, Homebrew is not installed correctly. Proceed to step 3.
Homebrew 2.5.5
Homebrew/homebrew-core N/A
Run the code below. If any window appears, follow the on-screen instructions to install. Also, if press RETURN ... is displayed, enter the Enter key, and if password: is displayed, enter the login password of your personal computer.
xcode-select --install
When you're done, then run the code below. It takes a lot of time. As before, enter the Enter key when press RETURN ... is displayed, and enter the login password of your personal computer when password: is displayed.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
When you're done, go to Step 4.
Run the code below.
brew update-reset
When you're done, then run the code below. It takes a lot of time. Enter the Enter key when press RETURN ・ ・ ・ is displayed, and enter the login password of your personal computer when password: is displayed.
brew doctor
When you're done, go to Step 4.
I think Homebrew is installed, so I will proceed with the installation of Python3.
Run the code below. It will take some time.
brew install python3 gcc sdl2 sdl2_image gifsicle
When you are finished, proceed to Step 5.
I think Python3 is installed, so I will install Pyxel at the end.
Run the code below.
pip3 install -U pyxel
__ Now you are ready to make a retro game with Pyxel! !! !! __
thank you for your hard work! !! I think it took a while, but now you should be able to use Pyxel. I think there are many articles on how to use Pyxel, so please check it out yourself!
Thank you for reading until the end! I would be grateful if you could point out any mistakes!
Recommended Posts