Skip to content

Commit

Permalink
enable only rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Aug 5, 2023
1 parent 594f3f4 commit 20f038b
Show file tree
Hide file tree
Showing 8 changed files with 385 additions and 332 deletions.
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));
}
}
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());
}
}
}

This file was deleted.

Loading

0 comments on commit 20f038b

Please sign in to comment.