public override void Initialize() { SetMainLight(fk_Material.TrueWhite, new fk_Vector(0, 0, -1)); SetStateLight(fk_Material.TrueWhite, new fk_Vector(0, 0, -1)); SetMainCamera(new fk_Vector(0, 0, 100)); SetStateCamera(new fk_Vector(0, 0, 100)); _titleTex = new fk_RectTexture(); if (!_titleTex.ReadJPG("sram.jpg")) { Console.WriteLine("Tex Load Error"); } _titleTex.TextureSize = new fk_TexCoord(40, 30); _titleTexModel = new fk_Model() { Shape = _titleTex, Material = fk_Material.White }; _titleTexModel.GlMoveTo(new fk_Vector(0, 10, 0)); MainScene.EntryModel(_titleTexModel); _guideSprite = new fk_SpriteModel(); if (!_guideSprite.InitFont("PixelMplus12-Regular.ttf")) { Console.WriteLine("Font Load Error."); } _guideSprite.PrdScale(0.2); _guideSprite.DrawText("Enter : Start"); _guideSprite.GlMoveTo(new fk_Vector(0, -20, 0)); MainScene.EntryModel(_guideSprite); base.Initialize(); }
public void Entry() { _titleLabelSprite.GlMoveTo(-20, 33, 0); _scoreLabelSprite.GlMoveTo(-15, 16, 0); _lifeLabelSprite.GlMoveTo(-15, 0, 0); _scoreSprite.GlMoveTo(0, 16, 0); _lifeSprite.GlMoveTo(0, 0, 0); MainFrame.Instance.NowScene.StateScene.EntryModel(_titleLabelSprite); //MainFrame.Instance.NowScene.StateScene.EntryModel(_scoreLabelSprite); MainFrame.Instance.NowScene.StateScene.EntryModel(_lifeLabelSprite); //MainFrame.Instance.NowScene.StateScene.EntryModel(_scoreSprite); MainFrame.Instance.NowScene.StateScene.EntryModel(_lifeSprite); }