This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://wiki.ros.org/docker/Tutorials/GUI | |
# mount /etc/group and /etc/passwd read only | |
# set user from $USER | |
docker run -ti --rm -v $(pwd):/tmp/hx -w /tmp/hx -v /etc/group:/etc/group:ro -v /etc/passwd:/etc/passwd:ro —user=$USER debian:jessie | |
#With newer versions of docker volumes don't get mounted until after the user is assumed. However, if you use -u=$UID instead of --user=$USER it will work. | |
#If you want to match the group id too you can do -u=$UID:$(id -g $USER) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = { | |
type: Phaser.AUTO, | |
width: 800, | |
height: 600, | |
parent: 'phaser-example', | |
physics: { | |
default: 'arcade', | |
arcade: { | |
debug: true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// based on this example: | |
// * http://jsfiddle.net/gJ4kA/ | |
// further reads: | |
// * https://gamedev.stackexchange.com/questions/71233/planet-gravity | |
// * https://gamedev.stackexchange.com/questions/21063/2d-planet-gravity | |
// * http://codeflow.org/entries/2010/aug/28/integration-by-example-euler-vs-verlet-vs-runge-kutta/ | |
// calc: https://www.ajdesigner.com/phpgravity/gravity_acceleration_equation.php#ajscroll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = { | |
type: Phaser.AUTO, | |
width: 800, | |
height: 600, | |
parent: 'phaser-example', | |
physics: { | |
default: 'arcade', | |
arcade: { | |
debug: true, | |
gravity: { y: 0 } |