fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using Microsoft.Xna.Framework;
  5. using Microsoft.Xna.Framework.Audio;
  6. using Microsoft.Xna.Framework.Content;
  7. using Microsoft.Xna.Framework.GamerServices;
  8. using Microsoft.Xna.Framework.Graphics;
  9. using Microsoft.Xna.Framework.Input;
  10. using Microsoft.Xna.Framework.Media;
  11.  
  12. namespace XNASnake
  13. {
  14. class Snake
  15. {
  16. public Snake(Texture2D t)
  17. {
  18. texture = t;
  19. velocity = new Vector2(0, 0);
  20. position = new Vector2(400, 300);
  21. }
  22. public Texture2D texture;
  23. public Vector2 velocity;
  24. public Vector2 position;
  25. public Vector2 pozycjaPoprzednia;
  26.  
  27.  
  28. public Rectangle Rectanglee()
  29. {
  30. return new Rectangle(Convert.ToInt32(position.X), Convert.ToInt32(position.Y), texture.Width, texture.Height);
  31. }
  32.  
  33. public enum WhereToGo
  34. {
  35. goLEFT,
  36. goRIGHT,
  37. goUP,
  38. goDOWN
  39. }
  40. }
  41. }
  42.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(4,17): error CS0234: The type or namespace name `Xna' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
prog.cs(5,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,17): error CS0234: The type or namespace name `Xna' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
prog.cs(7,17): error CS0234: The type or namespace name `Xna' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
prog.cs(8,17): error CS0234: The type or namespace name `Xna' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
prog.cs(9,17): error CS0234: The type or namespace name `Xna' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
prog.cs(10,17): error CS0234: The type or namespace name `Xna' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
prog.cs(23,16): error CS0246: The type or namespace name `Vector2' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(24,16): error CS0246: The type or namespace name `Vector2' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(25,16): error CS0246: The type or namespace name `Vector2' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(16,22): error CS0246: The type or namespace name `Texture2D' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(28,16): error CS0246: The type or namespace name `Rectangle' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(4,17): error CS0234: The type or namespace name `Xna' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
prog.cs(5,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,17): error CS0234: The type or namespace name `Xna' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
prog.cs(7,17): error CS0234: The type or namespace name `Xna' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
prog.cs(8,17): error CS0234: The type or namespace name `Xna' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
prog.cs(9,17): error CS0234: The type or namespace name `Xna' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
prog.cs(10,17): error CS0234: The type or namespace name `Xna' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
Compilation failed: 19 error(s), 0 warnings
stdout

Standard output is empty