【Xbox360】 XNA Game Studio その5 【C#】
■ このスレッドは過去ログ倉庫に格納されています
0589名前は開発中のものです。
2008/04/23(水) 17:41:56ID:PYiUd49+using A=Microsoft.Xna.Framework.GraphicsDeviceManager;using Microsoft.Xna.
Framework;using Microsoft.Xna.Framework.Graphics;namespace W{class G:Game{
static void Main(){new G().Run();}A g;SpriteBatch s;Texture2D t;G(){g=new A(
this);}protected override void LoadContent(){s=new SpriteBatch(GraphicsDevice)
;t=new Texture2D(GraphicsDevice,45,9,1,TextureUsage.None,SurfaceFormat.Color);
t.SetData<int>(new int[]{0,-1,-1,-1,-1,-1,-1,-1,0,0,0,0,0,-1,0,0,0,-1,0,0,0,-1
,0,0,0,0,-1,0,0,-1,0,0,0,-1,0,0,0,0,0,-1,0,0,0,0,0,0,-1,0,0,0,0,0,-1,0,0,0,0,
-1,0,0,0,0,-1,-1,-1,0,-1,-1,-1,-1,0,0,-1,0,0,-1,0,-1,0,0,0,0,0,0,-1,0,0,0,0,0,
0,-1,-1,-1,-1,-1,-1,-1,0,0,0,-1,0,0,0,0,-1,0,-1,0,-1,0,0,-1,0,0,0,0,0,-1,-1,-1
,-1,-1,0,0,0,-1,-1,-1,0,-1,-1,0,0,0,-1,0,0,0,0,0,-1,0,0,-1,0,0,0,0,0,0,0,-1,0,
0,-1,-1,-1,-1,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,-1,-1,0,0,-1,0,0,-1,-1,-1,-1,-1,-1,
-1,0,0,-1,0,0,0,0,0,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-1,-1,-1,-1,-1,-1,0,0,0
,0,-1,0,0,0,-1,0,0,0,0,0,-1,0,0,0,0,0,0,-1,0,0,0,0,0,0,-1,0,0,-1,-1,-1,-1,0,0,
-1,0,0,0,-1,0,0,0,0,0,0,-1,-1,0,0,0,-1,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,0,0,-1,0
,0,0,0,-1,-1,-1,0,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-1,-1,-1,0,0,-1,0,-1,0,0,0,-1,0
,0,0,0,0,-1,0,0,0,0,0,0,0,0,-1,0,0,-1,0,-1,0,0,-1,0,0,-1,0,0,-1,-1,0,0,0,0,0,0
,0,0,0,0,-1,0,0,0,-1,-1,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,-1,0,0,0,-1,0,0,-1,-1,-1,
-1,0,-1,0,0,-1,-1,-1,-1,-1,-1,0,0,0,0,-1,0,0,0,-1,0});}protected override void
Draw(GameTime a){GraphicsDevice.Clear(Color.Black);s.Begin();s.Draw(t,new
Rectangle(0,0,800,600),Color.White);s.End();base.Draw(a);}}}
■ このスレッドは過去ログ倉庫に格納されています