I managed to figure it out:
// Snipped from my Keyboard class (which implements KeyListener)
private boolean keySwitch = false;
public void keyPressed(KeyEvent e)
{
keys[e.getKeyCode()]...
Type: Posts; User: Madolite
I managed to figure it out:
// Snipped from my Keyboard class (which implements KeyListener)
private boolean keySwitch = false;
public void keyPressed(KeyEvent e)
{
keys[e.getKeyCode()]...
Hey guys, this is probably a noobish question, but I'm just totally mindblank right now:
So, I've made a boolean array keys[] of size 120 (to include all keys I'm using for my Keyboard class), and...
Nice, thanks for the tips. I'll definitely check out Kevin's stuff too. :)
I thought I'd join these forums to get some more in-depth understanding of whatever I've missed in Java, as a self-taught. I'm starting out as an indie game developer and I'm getting things done now....