mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-10 18:57:39 +07:00
New map
This commit is contained in:
parent
84171a8619
commit
cf3f540df4
BIN
core/assets/maps/debrisField.msav
Normal file
BIN
core/assets/maps/debrisField.msav
Normal file
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
#define HIGHP
|
||||
#define NSCALE 2700.0
|
||||
#define CAMSCALE (NSCALE*5.0)
|
||||
#define CAMSCALE (NSCALE*10.0)
|
||||
|
||||
uniform sampler2D u_texture;
|
||||
uniform sampler2D u_stars;
|
||||
|
@ -29,7 +29,7 @@ import static mindustry.Vars.*;
|
||||
|
||||
public class Maps{
|
||||
/** List of all built-in maps. Filenames only. */
|
||||
private static String[] defaultMapNames = {"maze", "fortress", "labyrinth", "islands", "tendrils", "caldera", "wasteland", "shattered", "fork", "triad", "mudFlats", "moltenLake", "archipelago", "veins", "glacier"};
|
||||
private static String[] defaultMapNames = {"maze", "fortress", "labyrinth", "islands", "tendrils", "caldera", "wasteland", "shattered", "fork", "triad", "mudFlats", "moltenLake", "archipelago", "debrisField", "veins", "glacier"};
|
||||
/** Maps tagged as PvP */
|
||||
static final String[] pvpMaps = {"veins", "glacier"};
|
||||
/** All maps stored in an ordered array. */
|
||||
|
@ -27,7 +27,7 @@ public class OreFilter extends GenerateFilter{
|
||||
public void apply(){
|
||||
float noise = noise(in.x, in.y, scl, 1f, octaves, falloff);
|
||||
|
||||
if(noise > threshold && in.overlay != Blocks.spawn && (target == Blocks.air || in.floor == target || in.overlay == target)){
|
||||
if(noise > threshold && in.overlay != Blocks.spawn && (target == Blocks.air || in.floor == target || in.overlay == target) && in.floor.asFloor().hasSurface()){
|
||||
in.overlay = ore;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user