示例#1
0
文件: Sprite.cs 项目: LipkeGu/OpenRPG
        public Sprite(World world, string filename)
        {
            Filename = filename;

            using (var s = File.OpenRead(filename))
                Texture = Texture2D.FromStream(world.Game.GraphicsDevice, s);

            Size = new Size(Texture.Width, Texture.Height);
        }
示例#2
0
 public InputManager(World world)
 {
     this.world = world;
 }