コード例 #1
0
        /* Fire a new projectile */
        public override Projectile FireProjectile(Vector2 position)
        {
            projectileTexture = textureManager.Instance.useTexture("ink");

            Projectile bullet = new ink(projectileTexture,
                                        new Vector2(projectileTexture.Width / 2, projectileTexture.Height / 2),
                                        new Vector2(position.X, position.Y + 32),
                                        new Rectangle(0, 0, projectileTexture.Width, projectileTexture.Height));

            return(bullet);
        }
コード例 #2
0
        /* Fire a new projectile */
        public override Projectile FireProjectile(Vector2 position)
        {
            projectileTexture = textureManager.Instance.useTexture("ink");

            Projectile bullet = new ink(projectileTexture,
                         new Vector2(projectileTexture.Width / 2, projectileTexture.Height / 2),
                         new Vector2(position.X, position.Y + 32),
                         new Rectangle(0, 0, projectileTexture.Width, projectileTexture.Height));

            return bullet;
        }