Exemple #1
0
        public Fox(GameplayScreen screen, ChicksScene world, /*Screens.GameplayScreen screen,*/ Vector2 position, float rot)
            : base(87, position, true, world.World, "fox")
        {
            this.screen = screen;
            chicksScene = world;
            DoDimensions = false;
            PhysicsPosition = false;

            Body.Mass = 1.55f;

            RaiseFlag(Jabber.Flags.ACCEPTINPUT);

            EventManager.Get.RegisterListner(this);

            Layer = SpriteLayer.LAYER10;

            Body.UserData = this;

            Body.Friction = 10.0f;
            Body.AngularDamping = 10.0f;

            Body.LinearDamping = maxDamp;
            Body.Friction = maxDamp;
            Body.AngularDamping = maxDamp;

              //  this.screen = screen;
            for (int i = 0; i < ScreenManager.Get.Screens.Count; i++)
            {
                if (ScreenManager.Get.Screens[i] is GameplayScreen)
                {
                    screen = ScreenManager.Get.Screens[i] as GameplayScreen;
                }
            }
            //screen = Jabber.GameScreenManager.ScreenManager.Get.TopScreen as GameplayScreen;
        }
Exemple #2
0
 public ChickenDrawer(ChicksScene scene, ThisGamesScene gamescene)
     : base("chickens")
 {
     this.scene     = scene;
     this.gamescene = gamescene;
     Layer          = SpriteLayer.LAYER10;
 }
Exemple #3
0
        public ThisGamesScene(GameplayScreen screen, JabWorld world,
                              ChicksScene chicksScene, ContentManager content)
            : base(world, content)
        {
            this.screen      = screen;
            this.chicksScene = chicksScene;


            AddSpriteLoadInterceptor("textures\\fan", LoadFan);
            AddSpriteLoadInterceptor("textures\\donut", LoadDonut);
            AddSpriteLoadInterceptor("textures\\donutcase", LoadDonutCase);

            AddSpriteLoadInterceptor("textures\\basketball", LoadBasketBall);
            AddSpriteLoadInterceptor("textures\\Physical\\basketball", LoadBasketBall);

            AddSpriteLoadInterceptor("textures\\tyre", LoadTyre);
            AddSpriteLoadInterceptor("textures\\Physical\\tyre", LoadTyre);
        }
Exemple #4
0
        public Fox(GameplayScreen screen, ChicksScene world, /*Screens.GameplayScreen screen,*/ Vector2 position, float rot)
            : base(87, position, true, world.World, "fox")
        {
            this.screen     = screen;
            chicksScene     = world;
            DoDimensions    = false;
            PhysicsPosition = false;

            Body.Mass = 1.55f;

            RaiseFlag(Jabber.Flags.ACCEPTINPUT);

            EventManager.Get.RegisterListner(this);

            Layer = SpriteLayer.LAYER10;

            Body.UserData = this;

            Body.Friction       = 10.0f;
            Body.AngularDamping = 10.0f;



            Body.LinearDamping  = maxDamp;
            Body.Friction       = maxDamp;
            Body.AngularDamping = maxDamp;

            //  this.screen = screen;
            for (int i = 0; i < ScreenManager.Get.Screens.Count; i++)
            {
                if (ScreenManager.Get.Screens[i] is GameplayScreen)
                {
                    screen = ScreenManager.Get.Screens[i] as GameplayScreen;
                }
            }
            //screen = Jabber.GameScreenManager.ScreenManager.Get.TopScreen as GameplayScreen;
        }
Exemple #5
0
 public ChickenDrawer(ChicksScene scene, ThisGamesScene gamescene)
     : base("chickens")
 {
     this.scene = scene;
     this.gamescene = gamescene;
     Layer = SpriteLayer.LAYER10;
 }
Exemple #6
0
        public ThisGamesScene(GameplayScreen screen, JabWorld world,
        ChicksScene chicksScene, ContentManager content)
            : base(world, content)
        {
            this.screen = screen;
            this.chicksScene = chicksScene;

            AddSpriteLoadInterceptor("textures\\fan", LoadFan);
            AddSpriteLoadInterceptor("textures\\donut", LoadDonut);
            AddSpriteLoadInterceptor("textures\\donutcase", LoadDonutCase);

            AddSpriteLoadInterceptor("textures\\basketball", LoadBasketBall);
            AddSpriteLoadInterceptor("textures\\Physical\\basketball", LoadBasketBall);

            AddSpriteLoadInterceptor("textures\\tyre", LoadTyre);
            AddSpriteLoadInterceptor("textures\\Physical\\tyre", LoadTyre);
        }