Skip to content

darkin1/PhpShooter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhpShooter

A shooter game written in PHP:FFI/SDL2/FFI SDL Bindings

Php shooter screenshot

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages