forked from Dancing-Turtle/ArdClient
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
> Fixed: gob matches very memory uses
> Fixed: map wait issues > Changed: ui scale step from 25 to 5 +Update
- Loading branch information
Showing
13 changed files
with
131 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package haven.res.gfx.tiles.paving.stranglevine; | ||
|
||
import haven.FastMesh; | ||
import haven.Message; | ||
import haven.Resource; | ||
import haven.Sprite; | ||
import haven.resutil.CSprite; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Random; | ||
|
||
@haven.FromResource(name = "gfx/tiles/paving/stranglevine", version = 13, override = true) | ||
public class Factory implements Sprite.Factory { | ||
public static final int[] dnum = {3, 6, 12}; | ||
public static final float r = 3; | ||
|
||
public Sprite create(Sprite.Owner owner, Resource res, Message sdt) { | ||
ArrayList<FastMesh.MeshRes> var = new ArrayList<FastMesh.MeshRes>(res.layers(FastMesh.MeshRes.class)); | ||
Random rnd = owner.mkrandoom(); | ||
CSprite spr = new CSprite(owner, res); | ||
int st = sdt.eom() ? 2 : sdt.uint8(); | ||
int num = rnd.nextInt(dnum[st]) + dnum[st]; | ||
for (int i = 0; i < num; i++) { | ||
FastMesh.MeshRes v = var.get(rnd.nextInt(var.size())); | ||
spr.addpart((float) rnd.nextGaussian() * r, (float) rnd.nextGaussian() * r, v.mat.get(), v.m); | ||
} | ||
return (spr); | ||
} | ||
} |
Binary file not shown.
Oops, something went wrong.