コード例 #1
0
ファイル: Program.cs プロジェクト: parappayo/Bushido-Burrito
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (GameMain game = new GameMain())
     {
         game.Run();
     }
 }
コード例 #2
0
        public HexTileMap(Game game, MapData mapData)
            : base(game)
        {
            mGame = (GameMain)game;
            mMapData = mapData;

            mMapViewPosition = new Vector3(0.0f, 0.0f, 0.0f);
            mMapZoom = 1.0f;
        }
コード例 #3
0
        Stack<Matrix> worldMatrixStack; // used for OpenGL style modelview

        #endregion Fields

        #region Constructors

        public RenderMan(GameMain game)
        {
            mGame = game;

            TextureMan = new TextureMan();  // loads texture resources

            worldMatrixStack = new Stack<Matrix>();
            InitializeRenderEffect();

            // init render utilities
            RenderQuad = new RenderQuad(this);
            RenderHex = new RenderHex(this);
            RenderUnit = new RenderUnit(this);
        }
コード例 #4
0
ファイル: InputMan.cs プロジェクト: parappayo/Bushido-Burrito
 public InputMan(Game game, GameWorld world)
     : base(game)
 {
     mGame = (GameMain)game;
     mWorld = world;
 }