Stash shadow draft

This commit is contained in:
Patrick 'Quezler' Mounier 2020-04-16 17:44:43 +02:00
parent a1d4804fae
commit 83511368f6
No known key found for this signature in database
GPG Key ID: 0D6CA7326C76D8EA
4 changed files with 3 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 738 KiB

After

Width:  |  Height:  |  Size: 738 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

After

Width:  |  Height:  |  Size: 124 KiB

View File

@ -129,6 +129,9 @@ public class CraterConveyor extends Block implements Autotiler{
// crater
Draw.rect(regions[7], Tmp.v1.x, Tmp.v1.y, Mathf.lerp(a, b, Interpolation.smooth.apply(1f - Mathf.clamp(cooldown * 2, 0f, 1f))));
// shadow
Drawf.shadow(Tmp.v1.x, Tmp.v1.y, 5f);
// item
float size = (itemSize / 2f) + items.total() * 0.1f / (itemCapacity / 8f);
Draw.rect(items.first().icon(Cicon.medium), Tmp.v1.x, Tmp.v1.y, size, size, 0);