-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
385 additions
and
332 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
examples/bullet/core/src/main/java/com/github/xpenatan/gdx/examples/bullet/BulletGame.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.github.xpenatan.gdx.examples.bullet; | ||
|
||
import com.badlogic.gdx.Game; | ||
|
||
public class BulletGame extends Game { | ||
|
||
@Override | ||
public void create() { | ||
setScreen(new BulletInitScreen(this)); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...s/bullet/core/src/main/java/com/github/xpenatan/gdx/examples/bullet/BulletInitScreen.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.github.xpenatan.gdx.examples.bullet; | ||
|
||
import com.badlogic.gdx.ScreenAdapter; | ||
import com.badlogic.gdx.physics.bullet.Bullet; | ||
|
||
public class BulletInitScreen extends ScreenAdapter { | ||
|
||
private BulletGame game; | ||
|
||
private boolean bulletInit = false; | ||
|
||
public BulletInitScreen(BulletGame game) { | ||
this.game = game; | ||
} | ||
|
||
@Override | ||
public void show() { | ||
Bullet.init(() -> bulletInit = true); | ||
} | ||
|
||
@Override | ||
public void render(float delta) { | ||
if(bulletInit) { | ||
bulletInit = false; | ||
game.setScreen(new BulletTestScreen()); | ||
} | ||
} | ||
} |
324 changes: 0 additions & 324 deletions
324
examples/bullet/core/src/main/java/com/github/xpenatan/gdx/examples/bullet/BulletTest.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.