Rogue: Savage Rats, a retro-themed dungeon crawler
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package mightypork.test;
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.util.Random;
|
|
|
|
|
|
|
|
import mightypork.util.files.ion.Ion;
|
|
|
|
|
|
|
|
|
|
|
|
public class TestIonArray {
|
|
|
|
|
|
|
|
public static void main(String[] args) throws IOException
|
|
|
|
{
|
|
|
|
final byte[] array = new byte[1024 * 8];
|
|
|
|
|
|
|
|
final Random rand = new Random();
|
|
|
|
|
|
|
|
for (int i = 0; i < array.length; i++) {
|
|
|
|
array[i] = (byte) rand.nextInt();
|
|
|
|
}
|
|
|
|
|
|
|
|
Ion.toFile(new File("hello.ion"), array);
|
|
|
|
}
|
|
|
|
}
|