noisebynorthwest / term-asteroids Goto Github PK
View Code? Open in Web Editor NEWAn Asteroids-like game, running in a terminal, written in PHP
License: MIT License
An Asteroids-like game, running in a terminal, written in PHP
License: MIT License
macOS 13.3.1
Docker version 20.10.14
> make run
if [[ ! $(docker images | grep term-asteroids) ]]
then
make build
fi
if [[ ! $(docker ps | grep term-asteroids) ]]
then
if [[ $(docker ps -a | grep term-asteroids) ]]
then
docker rm term-asteroids
fi
docker run -d \
-e DISPLAY=:0 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v $(pwd):/var/www/html \
-p 8000:8000 \
--name term-asteroids term-asteroids \
bash -c "sleep 3650d"
fi
if [[ ! -d vendor ]]
then
docker exec -it \
term-asteroids \
bash -c 'cd /var/www/html && ./install-composer.sh'
fi
docker exec -it \
term-asteroids \
/usr/bin/env LANG=C.UTF-8 /usr/bin/xterm -maximized -T TermAsteroids \
-e 'php -dzend.assertions=-1 index.php --use-native-renderer || sleep 20'
/usr/bin/xterm: Xt error: Can't open display: :0
make: *** [Makefile:51: run] Error 1
❯ make run --debug
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-apple-darwin11.3.0
Reading makefiles...
Updating goal targets....
File `run' does not exist.
File `init' does not exist.
Must remake target `init'.
if [[ ! $(docker images | grep term-asteroids) ]]
/bin/bash: -c: line 1: syntax error: unexpected end of file
make: *** [init] Error 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.