update readme

This commit is contained in:
Mitch Weaver
2017-11-26 02:38:10 +01:00
parent 5e8b9a51a6
commit 80504d87a1
5 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
bin
/bin/

BIN
res/inventory-demo.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 KiB

BIN
res/lighting-demo.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 996 KiB

BIN
res/physics-demo.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 MiB

View File

@@ -249,9 +249,9 @@ class __PhysicsDemonstration extends Engine {
if(Keyboard.D()) { player.setVelX(walkingVelocity); player.setFacing(Facing.RIGHT); }
else if(Keyboard.A()) { player.setVelX(-walkingVelocity); player.setFacing(Facing.LEFT); }
if(Keyboard.SPACE()) if(!player.getJumping()) { player.setJumping(true); player.setVelY(-15f); }
if(Keyboard.E()) new ExampleObject(player.getCenter().x, player.getCenter().y, 20, 20, true);
if(Keyboard.E() || Keyboard.C()) new ExampleObject(player.getCenter().x, player.getCenter().y, 20, 20, true);
if(Keyboard.R()) engine.generateWorld();
if(Keyboard.F()) {
if(Keyboard.F() || Keyboard.V()) {
final float velX = player.facingLeft() ? -15 : 15;
new ExampleBullet(player.getCenter().x, player.getCenter().y, 40, 40, velX, 0, 75, 225, Colors.orange);
}