Reconstructor sprites / Bugfixes

This commit is contained in:
Anuken 2020-06-13 16:27:15 -04:00
parent f55fb48ea7
commit b48736e771
35 changed files with 6830 additions and 6735 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 698 B

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 914 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

View File

@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 770 B

After

Width:  |  Height:  |  Size: 773 B

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 380 KiB

After

Width:  |  Height:  |  Size: 401 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 639 KiB

After

Width:  |  Height:  |  Size: 638 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 KiB

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 286 KiB

After

Width:  |  Height:  |  Size: 294 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 910 KiB

After

Width:  |  Height:  |  Size: 926 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 KiB

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 280 KiB

After

Width:  |  Height:  |  Size: 290 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 959 KiB

After

Width:  |  Height:  |  Size: 969 KiB

View File

@ -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;

View File

@ -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);

View File

@ -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

View File

@ -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);
} }

View File

@ -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);
} }

View File

@ -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);