Beispiel #1
0
        public void Draw(SpriteBatch spriteBatch)
        {
            camera.BeginDraw(spriteBatch);

            background.Draw(spriteBatch);

            spriteBatch.End();

            Light1.BeginDraw();
            foreach (Light1 light in lights)
            {
                light.Draw();
            }
            Light1.EndDraw(spriteBatch);

            camera.BeginDraw(spriteBatch);

            player.Draw(spriteBatch);
            foreach (Block block in blocks)
            {
                block.Draw(spriteBatch);
            }

            spriteBatch.End();
        }
Beispiel #2
0
 public static void Initialize(GraphicsDevice GraphicsDevice, ContentManager Content)
 {
     Block.Initialize(GraphicsDevice, camera, 32, 32, Color.Black);
     Light1.Initialize(GraphicsDevice, camera);
     Image.Initialize(Content);
 }
Beispiel #3
0
 public LightDiskPlayer(Vector2 position, float radius, float rotation, Keys up, Keys left, Keys down, Keys right, Color avatarColor, float lightStrength, Color lightColor)
     : base(position, radius, rotation, up, left, down, right, avatarColor)
 {
     light = new Light1(position, lightStrength, lightColor);
 }