Skip to content

ynizon/lemming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lemming

About

Lemming Game (not Lemmings) revisited in PHP / JS.
It's a race on an hexagon map.

See https://www.trictrac.net/jeu-de-societe/lemming

Demo on https://lemming.gameandme.fr

Installation with Docker (only on Linux)

  • copy .env.docker.example to .env . ./vendor/bin/sail up -d ./vendor/bin/sail artisan migrate --seed

Installation witout Docker

  • copy .env.example to .env and configure it.
  • create the lemming database
composer install    
php artisan key:generate
php artisan migrate --seed

Compiling asset (if needed)

Modify resources/css/app.css Modify resources/js/app.js

npm run production    

Pusher

If you want refresh your browser when your opponent has played, you need to create an account on pusher.com and set your app in .env like this:

BROADCAST_DRIVER=pusher
PUSHER_APP_ID=""
PUSHER_APP_KEY=""
PUSHER_APP_SECRET=""
PUSHER_APP_CLUSTER="eu"

Maps

  • To create new map, modify the game.js > createOriginalMap function
  • Start a new game
  • Edit the json from the map table

Quality

  • PHPCodeSniffer
  • PHPCS
  • PHPMD
  • Larastan (vendor/bin/phpstan analyze)

License

This application use the [MIT] licence.

Thanks

Troobleshooting

Contact

ynizon@gmail.com

Releases

No releases published

Packages

No packages published

Languages