Java Code Examples for com.watabou.noosa.Scene#add()
The following examples show how to use
com.watabou.noosa.Scene#add() .
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: CityLevel.java From unleashed-pixel-dungeon with GNU General Public License v3.0 | 5 votes |
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 2
Source File: GutsLevel.java From remixed-dungeon with GNU General Public License v3.0 | 5 votes |
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 3
Source File: NecroLevel.java From remixed-dungeon with GNU General Public License v3.0 | 5 votes |
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 4
Source File: Level.java From pixel-dungeon with GNU General Public License v3.0 | 5 votes |
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 5
Source File: CityLevel.java From pixel-dungeon with GNU General Public License v3.0 | 5 votes |
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: Level.java From remixed-dungeon with GNU General Public License v3.0 | 5 votes |
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 7
Source File: CityLevel.java From remixed-dungeon with GNU General Public License v3.0 | 5 votes |
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 Smoke( i ) ); } } }
Example 8
Source File: HallsLevel.java From pixel-dungeon with GNU General Public License v3.0 | 5 votes |
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 9
Source File: CavesLevel.java From unleashed-pixel-dungeon with GNU General Public License v3.0 | 5 votes |
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: Level.java From unleashed-pixel-dungeon with GNU General Public License v3.0 | 5 votes |
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 11
Source File: HallsLevel.java From remixed-dungeon with GNU General Public License v3.0 | 5 votes |
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 12
Source File: SewerLevel.java From unleashed-pixel-dungeon with GNU General Public License v3.0 | 5 votes |
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 13
Source File: PrisonLevel.java From unleashed-pixel-dungeon with GNU General Public License v3.0 | 5 votes |
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 14
Source File: IceCavesLevel.java From remixed-dungeon with GNU General Public License v3.0 | 5 votes |
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 15
Source File: HallsLevel.java From unleashed-pixel-dungeon with GNU General Public License v3.0 | 5 votes |
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 16
Source File: CavesLevel.java From YetAnotherPixelDungeon with GNU General Public License v3.0 | 5 votes |
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 17
Source File: Level.java From YetAnotherPixelDungeon with GNU General Public License v3.0 | 5 votes |
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 18
Source File: CityLevel.java From YetAnotherPixelDungeon with GNU General Public License v3.0 | 5 votes |
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 19
Source File: SewerLevel.java From YetAnotherPixelDungeon with GNU General Public License v3.0 | 5 votes |
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 20
Source File: PrisonLevel.java From YetAnotherPixelDungeon with GNU General Public License v3.0 | 5 votes |
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 ) ); } } }