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; }
public ChickenDrawer(ChicksScene scene, ThisGamesScene gamescene) : base("chickens") { this.scene = scene; this.gamescene = gamescene; Layer = SpriteLayer.LAYER10; }
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); }