tl:dr get this fix
The above link will give you a series of registry edit files for different situations, including adding and removing pinning abilities. While messing with the registry can be a bit scary and doing it via files off the internet is usually a terrible no-no, thoseĀ are legit (at least at the time of this post).
You can (and should) verify that nothing hinky is going on with them by opening them up in a text editor and see what is going on before you merge them. You can also open up regedit and apply the bits manually as well.
This is good if you’ve got things installed that your system can run like an executable but aren’t traditional executable files. Examples of this are Java .jar files, Python .py files, and similar things. You can also link regular files, like if you have a spreadsheet you want to directly open.
Since putting up the how-to video for installing SquidLib, I’ve been hard at work adding more new things.
First up are a couple dungeon generation algorithms I ported from rot.js by Ondrej Zara.
Most excitingly, here is some output from the Classic Rogue generator:
Now you can more easily make your roguelike more like rogue!
Next up is a maze:
And lastly, some new methods for getting random points inside a shape:
These random point methods are attached to the RadiusStrategy interface so they’ll line up with whatever Field of View and Line of Sight shapes you’re using.
If you don’t yet have it, you can get all the SquidLib releases here: https://github.com/SquidPony/SquidLib/releases
I’ve put up a video on installing SquidLib as a library in both NetBeans and Eclipse. You can see it here: http://youtu.be/FLt-DwvRnVM
In the video I go through getting the library, getting the IDEs, setting the IDE to have SquidLib as an available library, and making a short example code to show it all working. I hope it helps you start your Java roguelike games more easily!
Here’s the code in the above image:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
import javax.swing.JFrame; import squidpony.squidcolor.SColor; import squidpony.squidgrid.gui.SwingPane; import squidpony.squidmath.RNG; /** * * @author Eben Howard */ 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); } } |
A new version of Assault Fish is up!
It’s a refactoring of version 1.6 to use SquidLib 2.0 instead of 1.95. The source is Apache 2.0 so feel free to steal bits of it and/or rework it in your image.
Because it’s a refactoring, there’s no gameplay changes to it, just back-end changes.
©2011-2019 Eben Howard | Powered by WordPress with Easel | Subscribe: RSS | Back to Top ↑