Esempio n. 1
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
        }
Esempio n. 2
0
 public ScoreLayer(int width, int height, ScoreDisplay mode)
     : base(width, height)
 {
     this.mode = mode;
 }