Example #1
0
 /// <summary>
 /// Creates a new step-based game loop, which processes game logic
 /// only in response to a keypress.
 /// </summary>
 /// <param name="stateMachine">The StateMachine used for this game's control flow.</param>
 public StepwiseGameLoop(Sharplike.Core.ControlFlow.StateMachine stateMachine)
 {
     usercode = stateMachine.GameLoopTick;
 }
Example #2
0
 public Boolean GameLoopTick(Sharplike.Core.Runtime.AbstractGameLoop loop)
 {
     while (Game.Terminated == false)
     {
         this.stackDictionary[currentStack].Peek().GameLoopTick(loop);
         return true;
     }
     return false;
 }