コード例 #1
0
ファイル: Level1Room2.cs プロジェクト: artron33/PsmFramework
        private void CreateShip()
        {
            Mode.TextureManager.AddTextureAsset(Assets.Image_Ship64, this);
            Actor actor = new Actor(this, Assets.Image_Ship64, Background.GetTilePositionAtCenter(4, 2), 300f, 0.9999f);
            //actor.SetPosition(Background.GetTilePositionAtCenter(4, 2));
            AddActor(actor);
            actor.SetMovementStrategy(new PlayerInputMovementStrategy(actor, true, true));

            SetCameraSubject(actor);
        }
コード例 #2
0
ファイル: Level1Room1.cs プロジェクト: artron33/PsmFramework
        private void CreateShip()
        {
            Mode.TextureManager.AddTextureAsset(Assets.Image_Ship64, this);
            Ship = new Actor(this, Assets.Image_Ship64, Background.GetTilePositionAtCenter(6, 2), 300f, 0.9999f);
            //Ship.SetPosition(Background.GetTilePositionAtCenter(6, 2));
            AddActor(Ship);
            Ship.SetMovementStrategy(new PlayerInputMovementStrategy(Ship, true, true));

            ShipDrag = new Drag2d(Ship, .01f, .05f);
            //ShipFriction = new Friction2d(Ship);
        }