Render bricks and ball using sprites instead of constructed polygons

Changed field width to 10 blocks instead of 11
This commit is contained in:
2018-11-22 00:24:05 +04:00
parent bb8d4a41e3
commit 70f142c2fa
46 changed files with 361 additions and 84 deletions

View File

@ -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));
}