Create a simple, simple, Game Engine
<p>I'm on my way with my first game, all design and that stuff are done, just coding left.
I have successfully watched tutorials around the world wide web with information about Graphics and how to create a successfully thread-synchronization within it. </p>

<p>Like now I have a SurfaceView-class and a Thread-class. The thread-class have this constructor to receive the Game Engine from my SurfaceView-class.
Simple code from Thread-class constructor:</p>

<pre><code>    public Thread(SurfaceHolder localsurfaceHolder,
    Context context,
    Handler handler, 
    SurfacefView localEngine) {

    surfaceHolder = localsurfaceHolder;
    this.handler = handler;
    this.context = context;
    engine = localEngine;
}
</code></pre>

<p>From my SurfaceView-class in the surfaceCreated-method:</p>

<pre><code>thread = new GameThread(getHolder(), context, new Handler(), this);
</code></pre>

<p>And there is my code that will start trigging the thread when the surface is created.</p>

<p>Now to the <strong>real deal</strong>. Shortly I want a game engine that is totally separated from the view. The problem is; how to achieve this? How should the GameEngine-class constructor look like and where shall I put the drawing/calculations-methods? What does the GameEngine?</p>

<p>Now my GameEngine-class look like:</p>

<pre><code>package com.myname.mygame;

public class GameEngine {

      //If im right, a constructor for the engine should be placed here
      //How and which parameters shall I change and send with from the view

}
</code></pre>

<p>Thanks in advance!</p>
