- OpenGL >4.3
- Python 2.7
To compile GLFW for X11, you need to have the X11 and OpenGL header packages installed, as well as the basic development tools like GCC and make. For example, on Ubuntu and other distributions based on Debian GNU/Linux, you need to install the cmake
, xorg-dev
and libglu1-mesa-dev
packages. The former pulls in all X.org header packages and the latter pulls in the Mesa OpenGL and GLU packages. GLFW itself doesn't need or use GLU, but some of the examples do. Note that using header files and libraries from Mesa during compilation will not tie your binaries to the Mesa implementation of OpenGL.
- Run
install_glfw.sh
To install game you need to have virtualenv
and pip
packages installed.
- Run
install.sh
To install game you need to have virtualenv
and pip
packages installed. You needn't to clone this repository.
- Run
virtualenv .
- Run
. ./bin/activate
- Run
pip install PyOpenGL_game
- To start the game run
pyopenglgame
- First, activate virtualenv with
. ./bin/activate
command. - To test image rendering run
python2.7 ./tests/sceneX.py
where X — scene number (1, 2 or 3). - To test game logic run
py.test ./tests/test_logic.py
. You need to havepytest
package installed.
- Run
run.sh
- If you want to change locale, set
LC_MESSAGES
enviroment variable. For russian, typeexport LC_MESSAGES=ru_RU
in terminal, then runrun.sh
.