Exemplo n.º 1
0
        public PlayScene(MoonshotGame g)
        {
            this.g = g;

            Init();
            InitGlobal();
            InitUi();
            InitPlacement();
        }
Exemplo n.º 2
0
        public MenuScene(MoonshotGame g)
        {
            this.g = g;

            font         = AssetManager.GetFont("alpha_beta");
            instructFont = AssetManager.GetFont("pixantiqua");

            textMeasure     = Raylib.MeasureTextEx(font, MoonVars.Name, fontSize, 1);
            instructMeasure = Raylib.MeasureTextEx(instructFont, instruction, instructFontSize, 1);

            stars = new Stars();
        }
Exemplo n.º 3
0
        public LogoScene(MoonshotGame g)
        {
            this.g = g;

            loadAssets();

            font = AssetManager.GetFont("jupiter_crash");

            textMeasure = Raylib.MeasureTextEx(font, "nehpe", fontSize, 1);

            //TODO(np): colors should maybe be static / globally available
            bgColor = new Color(36, 36, 36, 255);
            fgColor = new Color(196, 196, 196, 255);
            //fgColor = Color.DARKBLUE;

            bg = new StarBackground();

            stars = new Stars();
        }
Exemplo n.º 4
0
        static void Main(string[] args)
        {
            var game = new MoonshotGame();

            game.Run();
        }