Basic android Game Design Space Ship Game - part 1 (Main Activity)
 

package com.chitraksh.chigamebasicbuilding;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.View;

public class MainActivity extends Activity {
    public static final String GAMETAG="BASICGAME";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
    public void DoPlayGame(View v)
    {
        Intent i=new Intent(this,GameActivity.class);
        startActivity(i);
    }
    public void ShowHighScore(View v)
    {
        Intent i=new Intent(this,HighScore.class);
        startActivity(i);
    }
    public void ShowSetting(View v)
    {
        Intent i=new Intent(this,Settings.class);
        startActivity(i);
    }

    
}

share on whatapp
186 Views

Comments

 
 
Private Policy   Terms of Service   4922