StaticVariables!
I have now removed all, i think, static variables from my code, thank you for pointing me my bug, i only had 4 game demoes to track down,
i will later on build atleast 30 AWT games to my site.
Im only a hobbyer with Java, i have no school history on computers.
so, i removed all static variables and changed my code to following style.
My chessgame for example holds 5 classes.
ChessGame.java,
ChessGame_Variables.java,
ChessGame_Init.java,
ChessGame_GameLogic.java,
ChessGame_ScreenUpdate.java.
My variables are all on ChessGame_Variables.java file.
I call it as following ->
at ChessGame.java i have
public ChessGame_Variables vars = new ChessGame_Variables ();
and at other classes _Init, _GameLogic, _ScreenUpdate i have an contrucstors for vars,
public ChessGame_Variables vars = null;
public ChessGame_XXXXX ( ChessGame_Variables fvars )
{
vars = fvars;
}
I hope i get it right this time ;), i will work like this way on my futher releases too !!
It was a bit of a dump idea from me to try to build my Applets with static variables !!
Thanks…