Exemplo n.º 1
0
        public GameWindow()
        {
            InitializeComponent();
            Res.setupRes();

            backImg = new Bitmap(ActionPanel.Width, ActionPanel.Height);
            backGraphics = Graphics.FromImage(backImg);
            actionGraphics = ActionPanel.CreateGraphics();
            lblFont = new Font(ActionPanel.Font.FontFamily, fontSize, FontStyle.Bold);
            scrollingBackgroundImage = Res.getPic("back_water.gif");
            slidingHeight = -scrollingBackgroundImage.Height;
            ThisGameWindow = this;
            actors = new Actor[maxArraySize];
        }