コード例 #1
0
ファイル: Game1.cs プロジェクト: Ratel13/cocos2d-xna
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
//#if MACOS
//            Content.RootDirectory = "AngryNinjas/Content";
//#else
			Content.RootDirectory = "Content";
//#endif
//
//#if XBOX || OUYA
//            graphics.IsFullScreen = true;
//#else
            graphics.IsFullScreen = false;
//#endif

            // Frame rate is 30 fps by default for Windows Phone.
            TargetElapsedTime = TimeSpan.FromTicks(333333 / 2);

            // Extend battery life under lock.
            //InactiveSleepTime = TimeSpan.FromSeconds(1);

            CCApplication application = new AppDelegate(this, graphics);
            Components.Add(application);
//#if XBOX || OUYA
//            CCDirector.SharedDirector.GamePadEnabled = true;
//            application.GamePadButtonUpdate += new CCGamePadButtonDelegate(application_GamePadButtonUpdate);
//#endif
        }
コード例 #2
0
ファイル: Game1.cs プロジェクト: Ratel13/cocos2d-xna
        public Game1() : base()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
			//
			// This is the main Cocos2D connection. The CCApplication is the manager of the
			// nodes that define your game.
			//
            CCApplication application = new AppDelegate(this, graphics);
            this.Components.Add(application);
        }
コード例 #3
0
ファイル: Game1.cs プロジェクト: Karunp/cocos2d-xna
        public Game1() : base()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
			//
			// This is the main Cocos2D connection. The CCApplication is the manager of the
			// nodes that define your game.
			//
			graphics.PreferredBackBufferWidth = WINDOW_WIDTH;
			graphics.PreferredBackBufferHeight = WINDOW_HEIGHT;
            CCApplication application = new AppDelegate(this, graphics);
            this.Components.Add(application);
        }
コード例 #4
0
ファイル: Game1.cs プロジェクト: Ratel13/cocos2d-xna
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
			Content.RootDirectory = "Content";
            graphics.IsFullScreen = false;

            // Frame rate is 30 fps by default for Windows Phone.
            TargetElapsedTime = TimeSpan.FromTicks(333333 / 2);

            // Extend battery life under lock.
            //InactiveSleepTime = TimeSpan.FromSeconds(1);

            CCApplication application = new AppDelegate(this, graphics);
            Components.Add(application);
        }
コード例 #5
0
ファイル: Game1.cs プロジェクト: Ratel13/cocos2d-xna
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            // Frame rate is 30 fps by default for Windows Phone.
            // Divide by 2 to make it 60 fps
            TargetElapsedTime = TimeSpan.FromTicks(333333 / 2);
            IsFixedTimeStep = true;

            IsMouseVisible = true;

            // Extend battery life under lock.
            //InactiveSleepTime = TimeSpan.FromSeconds(1);

            CCApplication application = new AppDelegate(this, graphics);
            Components.Add(application);

        }
コード例 #6
0
ファイル: game1.cs プロジェクト: Karunp/cocos2d-xna
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
			Content.RootDirectory = "Content";
			// Set to full screen, or not.
            graphics.IsFullScreen = false;
            // Frame rate is 60 fps.
            TargetElapsedTime = TimeSpan.FromTicks(333333 / 2);

            // Extend battery life under lock.
            //InactiveSleepTime = TimeSpan.FromSeconds(1);

            CCApplication application = new AppDelegate(this, graphics);
            Components.Add(application);
			// If you have a gamepad device then you should hookup these events.
//
//            CCDirector.SharedDirector.GamePadEnabled = true;
//            application.GamePadButtonUpdate += new CCGamePadButtonDelegate(application_GamePadButtonUpdate);
//
        }