Tag Info

Hot answers tagged

1

Swing should be fine for your needs. You should check out this stackexchange for other possible problems with Swing.


1

this line: if (q.movementCost < successor.movementCost + g) should look like: if (q.movementCost + g < succesor.movementCost) also remember that function getCost() should return heuristic + movementCost.


1

You could check to see if the key was pressed in the previous frame. Consider doing something like this: bool DownPressed; bool UpPressed; .... if (KeyBinding.downDown) { if (!DownPressed) { DownPressed = true; nextEntry(); } } else { DownPressed = false; } if (KeyBinding.upDown) { if (!UpPressed) { ...



Only top voted, non community-wiki answers of a minimum length are eligible