public MoneyGibGlow(Model model, MoneyGib gib, Game1 game) : base() { this.model = model; this.gib = gib; this.game = game; scale = new Vector3(.05f, .05f, .05f); tex = TextureManager.gibGlow; sb = new SpriteBatch(game.GraphicsDevice); rTarg = new RenderTarget2D(game.GraphicsDevice, 64, 64); rot.Z = Utilities.nextFloat() * MathHelper.PiOver2; col = gib.color; game.GraphicsDevice.SetRenderTarget(rTarg); sb.Begin(); sb.Draw(tex, Vector2.Zero, col); sb.End(); game.GraphicsDevice.SetRenderTarget(null); }
public void addGib(float amount, Vector3 position) { MoneyGib g = new MoneyGib(amount, moneyGib1, this, ((Game1)Game).ship, position, (Game1)game, 0); //moneyGibs.Add(g); ((Game1)Game).modelManager.addObject(g); }