Stars: 162
Forks: 11
Pull Requests: 5
Issues: 2
Watchers: 10
Last Updated: 2022-10-27 16:01:59
Just an OpenGL (SDL) demo in pure PHP
License:
Languages: PHP, Shell, Dockerfile, C
Please note that this is only a demo and may contain non-optimal, crazy and completely unbelievable programming techniques (Well, besides the fact that this code is written by a PHP 🐒 developer who has never encountered game development).
If your psyche was injured please consult a doctor.
Peace <3
Oh yes, according to my information, nobody has ever done such things in pure PHP.
Demo in action: https://www.youtube.com/watch?v=vsBbJbhKeeU
composer install
php app.php
sudo apt install libsdl2-2.0-0 -y
sudo apt install libsdl2-image-2.0-0 -y
sudo apt install libsdl2-ttf-2.0-0 -y
composer install
php app.php
brew install sdl2
brew install sdl2_image
brew install sdl2_ttf
composer install
php app.php
docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -e XAUTHORITY=$XAUTHORITY $(docker build -q .)
./engine/
" directory contains deprecated code that will be removed in
the future (for now it is required for the demo to work). All actual code is
currently contained in the ./libs/
directory and some part of the old code
has already been replaced with the current one../libs/binaries-downloader
package is responsible for their installation.
Assemblies are available here in the "assets" section here: https://github.com/SerafimArts/opengl-demo/releases/tag/0.0.1