package com.xjd.wolfpuzzle;



import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.DialogInterface.OnClickListener;
import android.media.AudioManager;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;

public class GameActivity extends Activity{
	public static float screecW, screeH;
	public static GameActivity instance;
	public static int currentScore;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		instance=GameActivity.this;
		DisplayMetrics metrics = new DisplayMetrics();
		getWindowManager().getDefaultDisplay().getMetrics(metrics);
		screecW = metrics.widthPixels;
		screeH = metrics.heightPixels;
		GameView gameView = new GameView(GameActivity.this);
		gameView.setOnWinListener(new GameView.OnWinListener() {
			@Override
			public void onSuccess() {
				// TODO 自动生成的方法存根
				finish();
			}
		});
		setContentView(gameView);

	}





	@Override
	protected void onResume() {
		// TODO Auto-generated method stub
		GameView.stop = true;
		super.onResume();
	}
}
