PSS SDKã§ãã©ã³ããã¡ã¤ã«ã使ãæ¹æ³
PlayStation Suiteã®ãã©ã¼ã©ã ã«ãã©ã³ããã¡ã¤ã«ã®èªã¿è¾¼ã¿ã«ã¤ãã¦ã®ãµã³ãã«ãæ¸ããã¦ããã®ã§è©¦ãã¦ã¿ã¾ããã
FontMap - PlayStation Forum
http://community.eu.playstation.com/t5/Graphics/FontMap/td-p/15931393
使ç¨ãããã©ã³ãã¯åãè¾¼ã¿ã§ä½¿ã£ã¦ãåé¡ç¡ãã©ã¤ã»ã³ã¹ã®æ¥æ¬èªãã©ã³ããè¡¡å±±æ¯çãã©ã³ããã使ãã¾ããã
こちらããDLãããã¡ã¤ã«åã KouzanBrushFont.ttf ã«å¤æ´ãã¾ããã
ããã°ã©ã ã¯ä¸ããä½ãã®ãã¡ã³ãã¦ãªã®ã§ Pss\sample\GameEngine2D\HelloSprite ãå å·¥ãã¦ä½¿ãäºã«ãã¾ããã
ã¾ãã¯ãã®ã½ãªã¥ã¼ã·ã§ã³ã«ãã©ã³ããã¡ã¤ã«ã追å (ãã«ãã¢ã¯ã·ã§ã³ãcontentã«å¤æ´ãã or 追å æã«å¤æ´ããå¿ è¦ãæãäºã«æ³¨æ)ã
次ã«ããã°ã©ã ãå¤æ´ãã¾ãã
HelloSprite.cs ãéãã using ã§ä»¥ä¸ãè¨å®ã
using Sce.Pss.Core.Imaging;
scene.Camera.SetViewFromViewport(); ã #if EASY_SETUP ã®éã以ä¸ã®æ§ã«è¨è¿°ãã¾ãã
scene.Camera.SetViewFromViewport(); var label = new Label(); label.Text = "HelloWrold!!"; // label.Text = "ããã«ã¡ã¯ä¸ç!!"; label.FontMap = new FontMap( new Font( "/Application/KouzanBrushFont.ttf", 30, FontStyle.Bold ) ); label.Scale = new Vector2(5f, 5f); label.Position = new Vector2(0 ,0); label.HeightScale = 0.5f; scene.AddChild(label); #if EASY_SETUP
ã¾ãã¯è±èªã®æåãHelloWrold!!ãã表示ãã¦ã¿ã¾ãããã¡ãããåé¡ãªã表示åºæ¥ã¾ããã
次ã«æ¥æ¬èªã試ãã¦ã¿ã¾ãã label.Text ã "ããã«ã¡ã¯ä¸ç!!" ã«å¤æ´ãã¦ã¿ã¾ãããçµæã¯ãã¡ãã
æ®å¿µãªããåè§ã§è¨è¿°ããã!ã以å¤ã¯è¡¨ç¤ºããã¾ããã§ããã
念ã®ããã«Vitaä¸ã§ãå®è¡ãã¦ã¿ã¾ãããçµæã«å¤åã¯æãã¾ããã§ããã
(2012/09/14 追è¨)
ãã¡ãã®ãµã¤ãã®æ
å ±ã«ã¦è§£æ±ºãã¾ããã
PS Suiteï¼å¥½ããªãã©ã³ãã§æ¥æ¬èªè¡¨ç¤º - Nanashi-soft
http://blog.livedoor.jp/nanashisoft/archives/52547118.html
FontMap ã new ããæã®è¨è¿°ã以ä¸ã®æ§ã«å¤æ´ãããäºã§è§£æ±ºãã¾ããã
label.FontMap = new FontMap( new Font( "/Application/KouzanBrushFont.ttf", 30, FontStyle.Bold ), label.Text );
å¾ã PlayStation Mobile SDK ã®ãã¼ã¸ã§ã³0.99ãåºã¦ãã®ã§ãã¼ã¸ã§ã³ããæãæ¨æºã©ã¤ãã©ãªã®åå空éãå¤ãã£ãã¿ããã§ããããµã³ãã«ã³ã¼ããè¦ã㨠Sce.Pss.Core ãã Sce.PlayStation ã¨ããè¨è¿°ã«å¤ãã£ã¦ãã¾ããã
using Sce.PlayStation.Core; using Sce.PlayStation.Core.Imaging; using Sce.PlayStation.Core.Graphics; using Sce.PlayStation.Core.Input;
(追è¨ããã¾ã§)