Example #1
0
        static void SetTextTexture()
        {
            Object2D obj = new Object2D(gc);

            obj.Initialize(shader);
            obj.Visible = true;
            obj.Texture = Object2D.createTexture(debugString, font, 0xffffffff);
            obj.SetLeftTop(0, height);
            debugStringList.Add(obj);
            height += font.Size;
            Console.Write(debugString);
            debugString = String.Empty;
        }
Example #2
0
        public static void Initialize()
        {
            // Set up the graphics system
            graphics = new GraphicsContext();

            count = 0;

            cubes = new CubeContainer(graphics);
            cubes.Initialize();

            camera = new Camera(graphics);
            camera.Initialize();

            gameStatus = GameStatus.Start;

            players = new Player[4];
            for (int i = 0; i < 4; i++)
            {
                players[i]    = new Player();
                players[i].id = i;
            }
            players[0].isHuman = true;
            players[1].isHuman = false;
            players[2].isHuman = false;
            players[3].isHuman = false;

            /* 順番決め */
//			MakeOrder ();

            /* object2D用のシェーダー */
            simpleShader = new ShaderProgram("/Application/shaders/Simple.cgx");


            dialog = new Object2D(graphics);
            dialog.Initialize(simpleShader);
            dialog.Visible = false;

            Logger.Initialize(graphics, simpleShader);

            touchDataList = new TouchDataList();
        }