Java Code Examples for com.watabou.noosa.Visual#point()

The following examples show how to use com.watabou.noosa.Visual#point() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CharSprite.java    From YetAnotherPixelDungeon with GNU General Public License v3.0 5 votes vote down vote up
public JumpTweener( Visual visual, PointF pos, float height, float time ) {
	super( visual, time );
	
	this.visual = visual;
	start = visual.point();
	end = pos;

	this.height = height;
}
 
Example 2
Source File: PosTweener.java    From YetAnotherPixelDungeon with GNU General Public License v3.0 5 votes vote down vote up
public PosTweener( Visual visual, PointF pos, float time ) {
	super( visual, time );
	
	this.visual = visual;
	start = visual.point();
	end = pos;
}
 
Example 3
Source File: CharSprite.java    From unleashed-pixel-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public JumpTweener( Visual visual, PointF pos, float height, float time ) {
	super( visual, time );

	this.visual = visual;
	start = visual.point();
	end = pos;

	this.height = height;
}
 
Example 4
Source File: CharSprite.java    From pixel-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public JumpTweener( Visual visual, PointF pos, float height, float time ) {
	super( visual, time );
	
	this.visual = visual;
	start = visual.point();
	end = pos;

	this.height = height;
}
 
Example 5
Source File: PosTweener.java    From shattered-pixel-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public PosTweener( Visual visual, PointF pos, float time ) {
	super( visual, time );
	
	this.visual = visual;
	start = visual.point();
	end = pos;
}
 
Example 6
Source File: ZapEffect.java    From remixed-dungeon with GNU General Public License v3.0 5 votes vote down vote up
private static void attachMissileTeenier(Visual target, int from, int to) {

        target.point( DungeonTilemap.tileToWorld( from ) );
        PointF dest = DungeonTilemap.tileToWorld( to );

        PointF d = PointF.diff( dest, target.point() );
        target.speed.set( d ).normalize().scale(SPEED );

        target.angularSpeed = 0;
        target.angle = (float) (135 - Math.toDegrees(Math.atan2( d.x, d.y )));

        PosTweener tweener = new PosTweener( target, dest, d.length() / SPEED );
        tweener.listener = tweener1 -> target.killAndErase();
        target.getParent().add( tweener );
    }
 
Example 7
Source File: JumpTweener.java    From remixed-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public JumpTweener(Visual visual, PointF pos, float height, float time) {
	super(visual, time);

	this.visual = visual;
	start = visual.point();
	end = pos;

	this.height = height;
}
 
Example 8
Source File: PosTweener.java    From remixed-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public PosTweener( Visual visual, float dx, float dy, float time ) {
	super( visual, time );

	this.visual = visual;
	start = visual.point();
	end = start.clone();
	end.offset(dx,dy);
}
 
Example 9
Source File: PosTweener.java    From remixed-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public PosTweener( Visual visual, PointF pos, float time ) {
	super( visual, time );
	
	this.visual = visual;
	start = visual.point();
	end = pos;
}
 
Example 10
Source File: PosTweener.java    From PD-classes with GNU General Public License v3.0 5 votes vote down vote up
public PosTweener( Visual visual, PointF pos, float time ) {
	super( visual, time );
	
	this.visual = visual;
	start = visual.point();
	end = pos;
}
 
Example 11
Source File: PosTweener.java    From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 5 votes vote down vote up
public PosTweener( Visual visual, PointF pos, float time ) {
	super( visual, time );
	
	this.visual = visual;
	start = visual.point();
	end = pos;
}
 
Example 12
Source File: CharSprite.java    From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 5 votes vote down vote up
public JumpTweener( Visual visual, PointF pos, float height, float time ) {
	super( visual, time );

	this.visual = visual;
	start = visual.point();
	end = pos;

	this.height = height;
}