Exemplo n.º 1
0
 public FontManager(string path)
 {
     instance = this;
     _font_cache = new Dictionary<string, Font>();
     if (!path.EndsWith(@"\")) path = path + @"\";
     font_paths = new List<string>();
     font_paths.Add(path);
 }
Exemplo n.º 2
0
        public BasicGame(MachineType machine_type, ILogger logger)
            : base(machine_type, logger)
        {
            FontManager manager = new FontManager(@"fonts\");
            if (machine_type == MachineType.WPCAlphanumeric)
            {
                // Create alphanumeric display
            }
            else
            {
                this.dmd = new DisplayController(this, 128, 32, manager.font_named("Font07x5.dmd"));
            }

            this.score_display = new ScoreDisplay(this, 50);

            // The below code is for showing frames on the desktop
            //if (this.dmd != null) this.dmd.frame_handlers.Add(new DMDFrameHandler(this.set_last_frame));

            // Set up key map configs
        }