Ruminate Example

From TRCCompSci - AQA Computer Science
Revision as of 13:34, 9 October 2017 by Admin (talk | contribs) (Created page with "==Installation== The nuget repository for Ruminate is broken and won't install, so download this zip file which contains the RuminateGUI.dll file. Copy the DLL file into your...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Installation

The nuget repository for Ruminate is broken and won't install, so download this zip file which contains the RuminateGUI.dll file. Copy the DLL file into your project folder.

Then under project, click add reference and browse for the DLL file.

Setup

Click on project and create a new class, call it Screen.cs. Copy the following code:

using Microsoft.Xna.Framework;

namespace YourNameSpace {

    public abstract class Screen {

        public Color Color { get; set; }

        public abstract void Init(Game1 game);
        public abstract void OnResize();
        public abstract void Update();
        public abstract void Draw();
    }
}

Remember to use the original namespace from when you created the class.