Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darkin1/PhpShooter
https://github.com/darkin1/PhpShooter
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/darkin1/PhpShooter
- Owner: darkin1
- Created: 2020-06-27T07:23:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-03T20:47:58.000Z (over 4 years ago)
- Last Synced: 2024-08-02T07:24:19.214Z (6 months ago)
- Language: PHP
- Size: 236 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PhpShooter
A shooter game written in PHP:[FFI](https://www.php.net/manual/en/class.ffi.php)/[SDL2](https://www.libsdl.org/)/[FFI SDL Bindings](https://github.com/SerafimArts/ffi-sdl)
## Requirements
- PHP >= 7.4.0
- ext-ffi `(php.ini -> extension=ffi)`
- SDL >= 2.0
- SDL Image >= 2.0
- SDL TTF >= 2.0## Installation
### SDL2 Library
- Linux
`sudo apt install libsdl2-2.0-0 libsdl2-image-2.0-0 libsdl2-ttf-2.0-0 -y`- MacOS
`brew install sdl2 sdl2_image sdl2_ttf`### PHP Dependencies
`$ composer install`## Playing
`php main.php`- Movement by arrows
- Fire by space