Render bricks and ball using sprites instead of constructed polygons
Changed field width to 10 blocks instead of 11
This commit is contained in:
@ -2,6 +2,7 @@ package com.me.brickbuster;
|
||||
|
||||
import com.badlogic.gdx.Game;
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.assets.AssetManager;
|
||||
import com.badlogic.gdx.graphics.GL20;
|
||||
import com.badlogic.gdx.graphics.OrthographicCamera;
|
||||
import com.badlogic.gdx.graphics.Texture;
|
||||
@ -28,6 +29,8 @@ public class BrickBuster extends Game {
|
||||
public ShapeRenderer sr;
|
||||
public PolygonSpriteBatch pb;
|
||||
|
||||
public AssetManager assets;
|
||||
|
||||
@Override
|
||||
public void create () {
|
||||
cam = new OrthographicCamera();
|
||||
@ -42,6 +45,8 @@ public class BrickBuster extends Game {
|
||||
sr = new ShapeRenderer();
|
||||
pb = new PolygonSpriteBatch();
|
||||
|
||||
assets = new AssetManager();
|
||||
|
||||
setScreen(new MenuState(this));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user