Eben
  • Member for 7 years, 2 months
  • Last seen more than a month ago
Stats
243
reputation
2k
reached
1
answer
1
question
Loading…
About
  • Game Designer
    • Programmer
    • Caffeinated

I specialize in roguelikes and procedurally generation algorithms. My languages of choice are currently Java and JavaScript.

My roguelike library for Java is publicly available.

Here's how easy it is to set up a basic console:

public class SquidExample {

public static void main(String[] args) {
    SwingPane pane = new SwingPane(40, 30, 14, 23);
    RNG ran = new RNG();
    SColor color;
    for (int x = 0; x < 40; x++) {
        for (int y = 0; y < 30; y++) {
            color = ran.nextBoolean() ? SColor.RUBY : SColor.PLUM;
            pane.put(x, y, color);
        }
    }
    pane.refresh();

    JFrame frame = new JFrame("Example for SquidLib");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().setBackground(SColor.BLACK);
    frame.getContentPane().add(pane);
    frame.pack();

    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
}

}

Badges
This user doesn’t have any gold badges yet.
1
silver badge
8
bronze badges
Top tags
2
Score
1
Posts
50
Posts %
2
Score
1
Posts
50
Posts %
2
Score
1
Posts
50
Posts %
0
Score
1
Posts
50
Posts %
0
Score
1
Posts
50
Posts %