Example #1
0
	public Canone() {
		super.setTexture(LTextures.loadTexture("assets/Canone.png"));
		super.setPosition(240f, -680f);
		super.setSource(480, 0, 70, 0x55);
		super.setOrigin(35f, 55f);
		this.ballColors = new ArrayList<Integer>();
		this.nextBalls = new ArrayList<Ball>();
		this.nextBalls.add(Ball.CreateBall(super.getPosition(),
				MathUtils.random(0x65 - 1) % (Ball.maxColorIndex + 1)));
		this.nextBalls.add(Ball.CreateBall(
				super.getPosition().add(Ball.ballGraphWidth * 0.8f,
						Ball.ballGraphWidth * 0.5f), MathUtils.random(0x65 - 1)
						% (Ball.maxColorIndex + 1)));
		this.nextBalls.add(Ball.CreateBall(
				super.getPosition().add(Ball.ballGraphWidth * 1.6f,
						Ball.ballGraphWidth * 0.5f), MathUtils.random(0x68 - 1)
						% (Ball.maxColorIndex + 1)));
		this.nextBalls.get(0).SetScale(1f);
		this.nextBalls.get(1).SetScale(0.8f);
		this.nextBalls.get(2).SetScale(0.8f);
	}
Example #2
0
 public LMessage(String fileName, int x, int y) {
   this(LTextures.loadTexture(fileName), x, y);
 }
Example #3
0
 public void setScrollModeBackground(int c, String resName) {
   setScrollModeBackground(c, LTextures.loadTexture(resName));
 }