Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void create(float blockPosX,float blockPosY,float blockSizeX,float blockSizeY,float angle){
- entityType = EntityCommon.ENTITY_TYPE_BLOCK;
- this.setPosition(blockPosX* GameScreen.BLOC_SIZE, blockPosY*GameScreen.BLOC_SIZE);
- this.setSize(blockSizeX * GameScreen.BLOC_SIZE, blockSizeY * GameScreen.BLOC_SIZE);
- this.setOrigin(this.getWidth()/2,this.getHeight()/2);
- this.setRotation(angle);
- bodyDef = new BodyDef();
- bodyDef.type = BodyDef.BodyType.StaticBody;
- fixtureDef = new FixtureDef();
- fixtureDef.friction=0;
- isBouncy = false;
- GameScreen.getInstance().getGameStage().addActor(this);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement