I have downloaded a snake game project from the internet, initially this project contains three java files namely
1. Engine.java
2. Snake.java
3. Gameoard.java
when i runs Engine.java, game starts running .
Now i have done some modification in it to improve the interactivity of the game, i.e i have added two JDialog named
1. PlayGame.java
2.RulesDialog.java
PlayGame.java has three JButtons :- Play button, Rules Button , Exit
-when play button gets clicked game should start
-when rules button gets clicked RulesDialog.java JDialog appears and
-when exit button gets clicked application or game should be closed.
Action of button is set in the
actionPerformed()
method of individual buttons.
Now problem i am facing is when i <pre lang="text">click Play button game window is visible on the screen but snake is not moving
and i am not getting to point how to resolve this problem ..
So plz help me out