Reconstructor sprites / Bugfixes
Before Width: | Height: | Size: 698 B After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 914 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 2.7 KiB |
BIN
core/assets-raw/sprites/blocks/units/tetrative-reconstructor.png
Normal file
After Width: | Height: | Size: 8.6 KiB |
@ -247,3 +247,7 @@
|
|||||||
63497=reconstructor-morphism|block-reconstructor-morphism-medium
|
63497=reconstructor-morphism|block-reconstructor-morphism-medium
|
||||||
63496=reconstructor-functor|block-reconstructor-functor-medium
|
63496=reconstructor-functor|block-reconstructor-functor-medium
|
||||||
63495=reconstructor-prime|block-reconstructor-prime-medium
|
63495=reconstructor-prime|block-reconstructor-prime-medium
|
||||||
|
63494=additive-reconstructor|block-additive-reconstructor-medium
|
||||||
|
63493=multiplicative-reconstructor|block-multiplicative-reconstructor-medium
|
||||||
|
63492=exponential-reconstructor|block-exponential-reconstructor-medium
|
||||||
|
63491=tetrative-reconstructor|block-tetrative-reconstructor-medium
|
||||||
|
Before Width: | Height: | Size: 770 B After Width: | Height: | Size: 773 B |
Before Width: | Height: | Size: 380 KiB After Width: | Height: | Size: 401 KiB |
Before Width: | Height: | Size: 639 KiB After Width: | Height: | Size: 638 KiB |
Before Width: | Height: | Size: 129 KiB After Width: | Height: | Size: 130 KiB |
Before Width: | Height: | Size: 286 KiB After Width: | Height: | Size: 294 KiB |
Before Width: | Height: | Size: 910 KiB After Width: | Height: | Size: 926 KiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 129 KiB After Width: | Height: | Size: 130 KiB |
Before Width: | Height: | Size: 280 KiB After Width: | Height: | Size: 290 KiB |
Before Width: | Height: | Size: 959 KiB After Width: | Height: | Size: 969 KiB |
@ -78,7 +78,7 @@ public class Blocks implements ContentList{
|
|||||||
|
|
||||||
//units
|
//units
|
||||||
groundFactory, airFactory, navalFactory,
|
groundFactory, airFactory, navalFactory,
|
||||||
reconstructorBasis, reconstructorMorphism, reconstructorFunctor, reconstructorPrime,
|
additiveReconstructor, multiplicativeReconstructor, exponentialReconstructor, tetrativeReconstructor,
|
||||||
repairPoint,
|
repairPoint,
|
||||||
|
|
||||||
//campaign
|
//campaign
|
||||||
@ -1685,7 +1685,7 @@ public class Blocks implements ContentList{
|
|||||||
consumes.power(1.2f);
|
consumes.power(1.2f);
|
||||||
}};
|
}};
|
||||||
|
|
||||||
reconstructorBasis = new Reconstructor("reconstructor-basis"){{
|
additiveReconstructor = new Reconstructor("additive-reconstructor"){{
|
||||||
requirements(Category.units, ItemStack.with(Items.copper, 50, Items.lead, 120, Items.silicon, 230));
|
requirements(Category.units, ItemStack.with(Items.copper, 50, Items.lead, 120, Items.silicon, 230));
|
||||||
|
|
||||||
size = 3;
|
size = 3;
|
||||||
@ -1702,7 +1702,7 @@ public class Blocks implements ContentList{
|
|||||||
};
|
};
|
||||||
}};
|
}};
|
||||||
|
|
||||||
reconstructorMorphism = new Reconstructor("reconstructor-morphism"){{
|
multiplicativeReconstructor = new Reconstructor("multiplicative-reconstructor"){{
|
||||||
requirements(Category.units, ItemStack.with(Items.copper, 50, Items.lead, 120, Items.silicon, 230));
|
requirements(Category.units, ItemStack.with(Items.copper, 50, Items.lead, 120, Items.silicon, 230));
|
||||||
|
|
||||||
size = 5;
|
size = 5;
|
||||||
@ -1717,8 +1717,7 @@ public class Blocks implements ContentList{
|
|||||||
};
|
};
|
||||||
}};
|
}};
|
||||||
|
|
||||||
//TODO finish these
|
exponentialReconstructor = new Reconstructor("exponential-reconstructor"){{
|
||||||
reconstructorFunctor = new Reconstructor("reconstructor-functor"){{
|
|
||||||
requirements(Category.units, ItemStack.with(Items.copper, 50, Items.lead, 120, Items.silicon, 230));
|
requirements(Category.units, ItemStack.with(Items.copper, 50, Items.lead, 120, Items.silicon, 230));
|
||||||
|
|
||||||
size = 7;
|
size = 7;
|
||||||
@ -1732,7 +1731,7 @@ public class Blocks implements ContentList{
|
|||||||
};
|
};
|
||||||
}};
|
}};
|
||||||
|
|
||||||
reconstructorPrime = new Reconstructor("reconstructor-prime"){{
|
tetrativeReconstructor = new Reconstructor("tetrative-reconstructor"){{
|
||||||
requirements(Category.units, ItemStack.with(Items.copper, 50, Items.lead, 120, Items.silicon, 230));
|
requirements(Category.units, ItemStack.with(Items.copper, 50, Items.lead, 120, Items.silicon, 230));
|
||||||
|
|
||||||
size = 9;
|
size = 9;
|
||||||
|
@ -81,8 +81,8 @@ public class Weathers implements ContentList{
|
|||||||
Core.camera.bounds(Tmp.r2);
|
Core.camera.bounds(Tmp.r2);
|
||||||
int total = (int)(Tmp.r1.area() / density * state.intensity());
|
int total = (int)(Tmp.r1.area() / density * state.intensity());
|
||||||
Lines.stroke(0.75f);
|
Lines.stroke(0.75f);
|
||||||
Draw.color(Color.royal, Color.white, 0.3f);
|
|
||||||
float alpha = Draw.getColor().a;
|
float alpha = Draw.getColor().a;
|
||||||
|
Draw.color(Color.royal, Color.white, 0.3f);
|
||||||
|
|
||||||
for(int i = 0; i < total; i++){
|
for(int i = 0; i < total; i++){
|
||||||
float scl = rand.random(0.5f, 1f);
|
float scl = rand.random(0.5f, 1f);
|
||||||
|
@ -124,12 +124,16 @@ public abstract class Weather extends MappableContent{
|
|||||||
if(life < fadeTime){
|
if(life < fadeTime){
|
||||||
opacity = life / fadeTime;
|
opacity = life / fadeTime;
|
||||||
}else{
|
}else{
|
||||||
opacity = Mathf.lerpDelta(opacity, 1f, 0.02f);
|
opacity = Mathf.lerpDelta(opacity, 1f, 0.01f);
|
||||||
}
|
}
|
||||||
|
|
||||||
life -= Time.delta();
|
life -= Time.delta();
|
||||||
|
|
||||||
weather.update((Weatherc)this);
|
weather.update((Weatherc)this);
|
||||||
|
|
||||||
|
if(life < 0){
|
||||||
|
remove();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -111,6 +111,7 @@ public class Reconstructor extends UnitBlock{
|
|||||||
}
|
}
|
||||||
|
|
||||||
Draw.z(Layer.blockOver + 0.1f);
|
Draw.z(Layer.blockOver + 0.1f);
|
||||||
|
Drawf.shadow(x, y, size * tilesize, 0.5f);
|
||||||
Draw.rect(topRegion, x, y);
|
Draw.rect(topRegion, x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,8 +200,6 @@ public class Generators{
|
|||||||
//encode square sprite in alpha channel
|
//encode square sprite in alpha channel
|
||||||
average.a = hasEmpty ? 0.1f : 1f;
|
average.a = hasEmpty ? 0.1f : 1f;
|
||||||
colors.draw(block.id, 0, average);
|
colors.draw(block.id, 0, average);
|
||||||
}catch(IllegalArgumentException e){
|
|
||||||
Log.info("Skipping &ly'@'", block.name);
|
|
||||||
}catch(NullPointerException e){
|
}catch(NullPointerException e){
|
||||||
Log.err("Block &ly'@'&lr has an null region!", block);
|
Log.err("Block &ly'@'&lr has an null region!", block);
|
||||||
}
|
}
|
||||||
|
@ -187,6 +187,11 @@ public class ImagePacker{
|
|||||||
this.path = path;
|
this.path = path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean found(){
|
||||||
|
return !invalid;
|
||||||
|
}
|
||||||
|
|
||||||
static void validate(TextureRegion region){
|
static void validate(TextureRegion region){
|
||||||
if(((GenRegion)region).invalid){
|
if(((GenRegion)region).invalid){
|
||||||
ImagePacker.err("Region does not exist: @", ((GenRegion)region).name);
|
ImagePacker.err("Region does not exist: @", ((GenRegion)region).name);
|
||||||
|