Changed turret outlines / Wall block tweaks
BIN
core/assets-raw/sprites/blocks/distribution/mass-driver.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 173 B After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 721 B After Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.7 KiB |
BIN
core/assets-raw/sprites/blocks/units/repair-point.png
Normal file
After Width: | Height: | Size: 211 B |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 369 B After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 176 B After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 621 B After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 484 B After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 267 B After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 231 B After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 495 B After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 189 B After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 540 B After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 220 B After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 574 B After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 205 B After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 369 B After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 176 B After Width: | Height: | Size: 1.8 KiB |
@ -41,15 +41,14 @@ void main() {
|
||||
vec2 v = vec2(1.0/u_texsize.x, 1.0/u_texsize.y);
|
||||
|
||||
vec4 c = texture2D(u_texture, v_texCoord.xy);
|
||||
bool outl = cont(t, v);
|
||||
|
||||
if(1.0-abs(coords.x - 0.5)*2.0 < 1.0-u_progress && !outl){
|
||||
if(1.0-abs(coords.x - 0.5)*2.0 < 1.0-u_progress){
|
||||
c = vec4(0.0);
|
||||
}
|
||||
|
||||
if(c.a > 0.01){
|
||||
float f = abs(sin(coords.x*2.0 + u_time));
|
||||
if(f > 0.9 || outl)
|
||||
if(f > 0.9)
|
||||
f = 1.0;
|
||||
else
|
||||
f = 0.0;
|
||||
|
Before Width: | Height: | Size: 698 B After Width: | Height: | Size: 704 B |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 276 KiB After Width: | Height: | Size: 248 KiB |
Before Width: | Height: | Size: 224 KiB After Width: | Height: | Size: 276 KiB |
Before Width: | Height: | Size: 170 KiB After Width: | Height: | Size: 165 KiB |
Before Width: | Height: | Size: 221 KiB After Width: | Height: | Size: 209 KiB |
Before Width: | Height: | Size: 417 KiB After Width: | Height: | Size: 399 KiB |
Before Width: | Height: | Size: 247 KiB After Width: | Height: | Size: 280 KiB |
@ -70,7 +70,7 @@ public class Generators{
|
||||
|
||||
ImagePacker.generate("block-icons", () -> {
|
||||
Image colors = new Image(content.blocks().size, 1);
|
||||
Color outlineColor = new Color(0, 0, 0, 0.3f);
|
||||
Color outlineColor = Color.valueOf("4d4e58");
|
||||
|
||||
for(Block block : content.blocks()){
|
||||
TextureRegion[] regions = block.getGeneratedIcons();
|
||||
@ -95,7 +95,7 @@ public class Generators{
|
||||
try{
|
||||
Image last = null;
|
||||
if(block.outlineIcon){
|
||||
int radius = 3;
|
||||
int radius = 4;
|
||||
GenRegion region = (GenRegion)regions[regions.length - 1];
|
||||
Image base = ImagePacker.get(region);
|
||||
Image out = last = new Image(region.getWidth(), region.getHeight());
|
||||
|