fork download
  1. using Microsoft.Xna.Framework;
  2. using Microsoft.Xna.Framework.Graphics;
  3. using Sandbox.Tiles;
  4. namespace Sandbox.Tiles
  5. {
  6. public class Floor : Title
  7. {
  8. public Floor(Texture2D sprite)
  9. {
  10. this.sprite = sprite;
  11. isWalkable = true;
  12. }
  13. public override void draw(SpriteBatch spriteBatch)
  14. {
  15. spriteBatch.Draw(sprite, Position, Color.White);
  16. }
  17. }
  18. }
  19.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,17): error CS0234: The type or namespace name `Xna' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
prog.cs(2,17): error CS0234: The type or namespace name `Xna' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
prog.cs(6,26): error CS0246: The type or namespace name `Title' could not be found. Are you missing an assembly reference?
prog.cs(8,22): error CS0246: The type or namespace name `Texture2D' could not be found. Are you missing an assembly reference?
prog.cs(13,35): error CS0246: The type or namespace name `SpriteBatch' could not be found. Are you missing an assembly reference?
Compilation failed: 5 error(s), 0 warnings
stdout
Standard output is empty