com.watabou.noosa.Scene Java Examples

The following examples show how to use com.watabou.noosa.Scene. 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: InfiniteLevel.java    From unleashed-pixel-dungeon with GNU General Public License v3.0 6 votes vote down vote up
@Override
public void addVisuals( Scene scene ) {
    switch (THEME) {
        case 0: // sewers
            SewerLevel.addVisuals( this, scene );
            break;
        case 1: // prison
            PrisonLevel.addVisuals( this, scene );
            break;
        case 2: // caves
            CavesLevel.addVisuals( this, scene );
            break;
        case 3: // city
            CityLevel.addVisuals( this, scene );
            break;
        case 4: // frozen
            FrozenLevel.addVisuals(this, scene);
            break;
        default: // halls
            HallsLevel.addVisuals( this, scene );
            break;
    }
}
 
Example #2
Source File: InfiniteOpenLevel.java    From unleashed-pixel-dungeon with GNU General Public License v3.0 6 votes vote down vote up
@Override
public void addVisuals( Scene scene ) {
    switch (THEME) {
        case 0: // sewers
            SewerLevel.addVisuals( this, scene );
            break;
        case 1: // prison
            PrisonLevel.addVisuals( this, scene );
            break;
        case 2: // caves
            CavesLevel.addVisuals( this, scene );
            break;
        case 3: // city
            CityLevel.addVisuals( this, scene );
            break;
        case 4: // frozen
            FrozenLevel.addVisuals(this, scene);
            break;
        default: // halls
            HallsLevel.addVisuals( this, scene );
            break;
    }
}
 
Example #3
Source File: OpenLevel.java    From unleashed-pixel-dungeon with GNU General Public License v3.0 6 votes vote down vote up
@Override
public void addVisuals( Scene scene ) {
    switch (THEME) {
        case 0: // sewers
            SewerLevel.addVisuals( this, scene );
            break;
        case 1: // prison
            PrisonLevel.addVisuals( this, scene );
            break;
        case 2: // caves
            CavesLevel.addVisuals( this, scene );
            break;
        case 3: // city
            CityLevel.addVisuals( this, scene );
            break;
        case 4: // frozen
            FrozenLevel.addVisuals(this, scene);
            break;
        default: // halls
            HallsLevel.addVisuals( this, scene );
            break;
    }
}
 
Example #4
Source File: CavesLevel.java    From unleashed-pixel-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
	for (int i=0; i < LENGTH; i++) {
		if (level.map[i] == Terrain.WALL_DECO) {
			scene.add( new Vein( i ) );
		}
	}
}
 
Example #5
Source File: CityLevel.java    From YetAnotherPixelDungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
	for (int i=0; i < LENGTH; i++) {
		if (level.map[i] == Terrain.WALL_DECO) {
			scene.add( new Smoke( i ) );
		}
	}
}
 
Example #6
Source File: FrozenLevel.java    From unleashed-pixel-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
    for (int i=0; i < LENGTH; i++) {
        if (level.map[i] == Terrain.WALL_DECO) {
            scene.add( new Sink( i ) );
        }
    }
}
 
Example #7
Source File: SewerLevel.java    From YetAnotherPixelDungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
	for (int i=0; i < LENGTH; i++) {
		if (level.map[i] == Terrain.WALL_DECO) {
			scene.add( new Sink( i ) );
		}
	}
}
 
Example #8
Source File: Level.java    From YetAnotherPixelDungeon with GNU General Public License v3.0 5 votes vote down vote up
public void addVisuals( Scene scene ) {
	for (int i=0; i < LENGTH; i++) {
		if (chasm[i]) {
			scene.add( new WindParticle.Wind( i ) );
			if (i >= WIDTH && water[i-WIDTH]) {
				scene.add( new FlowParticle.Flow( i - WIDTH ) );
			}
		} else if( map[i] == Terrain.WELL ) {
               scene.add( new Fountain( i ) );
           }
	}
}
 
Example #9
Source File: CavesLevel.java    From YetAnotherPixelDungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
	for (int i=0; i < LENGTH; i++) {
		if (level.map[i] == Terrain.WALL_DECO) {
			scene.add( new Vein( i ) );
		}
	}
}
 
Example #10
Source File: PrisonLevel.java    From YetAnotherPixelDungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
	for (int i=0; i < LENGTH; i++) {
		if (level.map[i] == Terrain.WALL_DECO) {
			scene.add( new Torch( i ) );
		}
	}
}
 
Example #11
Source File: HallsLevel.java    From unleashed-pixel-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
	for (int i=0; i < LENGTH; i++) {
		if (level.map[i] == 63) {
			scene.add( new Stream( i ) );
		}
	}
}
 
Example #12
Source File: PrisonLevel.java    From unleashed-pixel-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
	for (int i=0; i < LENGTH; i++) {
		if (level.map[i] == Terrain.WALL_DECO) {
			scene.add( new Torch( i ) );
		}
	}
}
 
Example #13
Source File: SewerLevel.java    From unleashed-pixel-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
	for (int i=0; i < LENGTH; i++) {
		if (level.map[i] == Terrain.WALL_DECO) {
			scene.add( new Sink( i ) );
		}
	}
}
 
Example #14
Source File: CityLevel.java    From unleashed-pixel-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
	for (int i=0; i < LENGTH; i++) {
		if (level.map[i] == Terrain.WALL_DECO) {
			scene.add( new Smoke( i ) );
		}
	}
}
 
Example #15
Source File: CavesLevel.java    From remixed-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
	for (int i=0; i < level.getLength(); i++) {
		if (level.map[i] == Terrain.WALL_DECO) {
			scene.add( new Vein( i ) );
		}
	}
}
 
Example #16
Source File: HallsLevel.java    From YetAnotherPixelDungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
	for (int i=0; i < LENGTH; i++) {
		if (level.map[i] == 63) {
			scene.add( new Stream( i ) );
		}
	}
}
 
Example #17
Source File: HallsLevel.java    From pixel-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
	for (int i=0; i < LENGTH; i++) {
		if (level.map[i] == 63) {
			scene.add( new Stream( i ) );
		}
	}
}
 
Example #18
Source File: Level.java    From remixed-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public void addVisuals(Scene scene) {
	for (int i = 0; i < getLength(); i++) {
		if (pit[i]) {
			scene.add(new WindParticle.Wind(i));
			if (i >= getWidth() && water[i - getWidth()]) {
				scene.add(new FlowParticle.Flow(i - getWidth()));
			}
		}
	}
}
 
Example #19
Source File: PrisonLevel.java    From pixel-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
	for (int i=0; i < LENGTH; i++) {
		if (level.map[i] == Terrain.WALL_DECO) {
			scene.add( new Torch( i ) );
		}
	}
}
 
Example #20
Source File: SewerLevel.java    From pixel-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
	for (int i=0; i < LENGTH; i++) {
		if (level.map[i] == Terrain.WALL_DECO) {
			scene.add( new Sink( i ) );
		}
	}
}
 
Example #21
Source File: CityLevel.java    From pixel-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
	for (int i=0; i < LENGTH; i++) {
		if (level.map[i] == Terrain.WALL_DECO) {
			scene.add( new Smoke( i ) );
		}
	}
}
 
Example #22
Source File: Level.java    From pixel-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public void addVisuals( Scene scene ) {
	for (int i=0; i < LENGTH; i++) {
		if (pit[i]) {
			scene.add( new WindParticle.Wind( i ) );
			if (i >= WIDTH && water[i-WIDTH]) {
				scene.add( new FlowParticle.Flow( i - WIDTH ) );
			}
		}
	}
}
 
Example #23
Source File: CavesLevel.java    From pixel-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
	for (int i=0; i < LENGTH; i++) {
		if (level.map[i] == Terrain.WALL_DECO) {
			scene.add( new Vein( i ) );
		}
	}
}
 
Example #24
Source File: GutsLevel.java    From remixed-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
	for (int i=0; i < level.getLength(); i++) {
		if (level.map[i] == Terrain.WALL_DECO) {
			scene.add( new BloodSink( i ) );
		}
	}
}
 
Example #25
Source File: IceCavesLevel.java    From remixed-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
	for (int i=0; i < level.getLength(); i++) {
		if (level.map[i] == Terrain.WALL_DECO) {
			scene.add( new IceVein( i ) );
		}
	}
}
 
Example #26
Source File: NecroLevel.java    From remixed-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
	for (int i=0; i < level.getLength(); i++) {
		if (level.map[i] == Terrain.WALL_DECO) {
			scene.add( new Candle( i ) );
		}
	}
}
 
Example #27
Source File: ChallengeButton.java    From remixed-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public ChallengeButton(Scene startScene) {
    super();
    parentScene = startScene;

    width = image.width;
    height = image.height;

    image.am = Badges.isUnlocked(Badges.Badge.VICTORY) ? 1.0f : 0.5f;
}
 
Example #28
Source File: HallsLevel.java    From remixed-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
	for (int i=0; i < level.getLength(); i++) {
		if (level.map[i] == 63) {
			scene.add( new Stream( i ) );
		}
	}
}
 
Example #29
Source File: PrisonLevel.java    From remixed-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals( Level level, Scene scene ) {
	for (int i=0; i < level.getLength(); i++) {
		if (level.map[i] == Terrain.WALL_DECO) {
			scene.add( new Torch( i ) );
		}
	}
}
 
Example #30
Source File: SewerLevel.java    From remixed-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void addVisuals(Level level, Scene scene) {
	for (int i = 0; i < level.getLength(); i++) {
		if (level.map[i] == Terrain.WALL_DECO) {
			scene.add(new WaterSink(i));
		}
	}
}