KKMMMTTT / AstroSoar

0 stars 0 forks source link

Add SpaceStars background scene #26

Closed kwreen closed 4 years ago

kwreen commented 4 years ago

Closes https://github.com/KKMMMTTT/AstroSoar/issues/4

The game world involves moving in space. The background should be of the universe where stars are present in the distance.

With the following Scene configuration..

public class TbdScene : Scene
    {
        private readonly SpaceStars spaceStars;
        public TbdScene()
        {
            TextureImage image = new TextureImage("star.png", 900, 900);
            spaceStars = new SpaceStars(image, 1000, 1000, 125);
        }
        public override void Draw(ICanvas canvas)
        {
            spaceStars.Draw(canvas);
        }
    }

..we can obtain this example of generated space stars image

Notes