Refactor Context and GameRunner
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
package ${package};
|
||||
|
||||
import com.bartlomiejpluta.base.api.game.runner.GameRunner;
|
||||
import com.bartlomiejpluta.base.api.game.context.Context;
|
||||
import com.bartlomiejpluta.base.api.game.screen.Screen;
|
||||
import com.bartlomiejpluta.base.api.game.runner.GameRunner;
|
||||
|
||||
public class ${className} implements GameRunner {
|
||||
|
||||
@@ -9,4 +10,19 @@ public class ${className} implements GameRunner {
|
||||
public void init(Context context) {
|
||||
throw new RuntimeException("Not implemented yet");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void input(Screen screen) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(float dt) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dispose() {
|
||||
// Do something after game loop is end
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user