Newer
Older
BallJumper / app / src / main / java / jonathan / balljumper / MainActivity.java
Jonathan Ström on 24 Jul 2017 632 bytes Added base.
package jonathan.balljumper;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import jonathan.balljumper.engine.GameEngine;
import jonathan.balljumper.views.PlayerView;

public class MainActivity extends AppCompatActivity {

    private GameEngine gameEngine;
    private PlayerView playerView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        gameEngine = new GameEngine();
        playerView = (PlayerView)findViewById(R.id.playerView);
        playerView.invalidate();
    }
}