Android Open Source - Android_Pong Brick From Project Back to project page Android_Pong .
License The source code is released under:
MIT License
If you think the Android project Android_Pong listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code package com.pong.android.modell.breakout;
/ / w w w . j a v a 2 s . c o m
public class Brick extends Rectangle{
private boolean alive = true;
public Brick(float w, float h, float topLX, float topLY,
int offsetVertexData, float r, float g, float b) {
super (w, h, topLX, topLY, offsetVertexData, r, g, b);
// TODO Auto-generated constructor stub
}
public void destroy(){
alive = false;
}
@Override
public void draw(){
if (alive){
super.draw();
}
}
}
Java Source Code List com.pong.android.GameOverActivity.java com.pong.android.IFGameEvents.java com.pong.android.MenuActivity.java com.pong.android.PongActivity.java com.pong.android.modell.breakout.BreakOutActivity.java com.pong.android.modell.breakout.BreakOutBall.java com.pong.android.modell.breakout.BreakOutPlayer.java com.pong.android.modell.breakout.BreakOutRenderer.java com.pong.android.modell.breakout.Brick.java com.pong.android.modell.breakout.Rectangle.java com.pong.android.modell.dodgeball.Ball.java com.pong.android.modell.dodgeball.DodgeballActivity.java com.pong.android.modell.dodgeball.DodgeballPlayer.java com.pong.android.modell.dodgeball.DodgeballRenderer.java com.pong.android.modell.dodgeball.Rectangle.java com.pong.android.modell.pong.Board.java com.pong.android.modell.pong.PongBall.java com.pong.android.modell.pong.PongOpponent.java com.pong.android.modell.pong.PongPlayer.java com.pong.android.modell.pong.PongRenderer.java com.pong.android.modell.pong.Rectangle.java com.pong.android.util.ShaderUtility.java