New answers tagged slick
You can useDisplay.getWidth() / 2 - (Your truetypefont).getWidth(your text) / 2 to center it horizontally
You should read the Javadocs for Slicks TrueTypeFont. It has a Method public int getWidth(java.lang.String whatchars) to get the width of a particular String. To draw perfectly centered it is then simply int positionX = (windowWidth - textWidth) / 2;
I would suggest just making the image with a glowing effect, but if you must have it done in game then you would: 1) Render your scene or "glow objects" to texture A 2) Bind texture A, then using the horizontal shader, render a quad to texture B 3) Bind texture B, then using the vertical shader, render a quad to texture A However This requires the ...
I would not recommend this! Games are games and GUIs are GUIs. Just because they're not console applications does not mean that they're equivalent. I'd HIGHLY recommend something like the Lightweight Java Game Library (LWJGL) http://www.lwjgl.org/ You may not have many problems with Swing (though I think of many off the bat) but if you want to learn how to ...
Swing should be fine for your needs. You should check out this stackexchange for other possible problems with Swing.
Top 50 recent answers are included