language: C# (mono-2.8)
date: 304 days 17 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
 
namespace XNASnake
{
    class Snake
    {
        public Snake(Texture2D t)
        {
            texture = t;
            velocity = new Vector2(0, 0);
            position = new Vector2(400, 300);
        }
        public Texture2D texture;
        public Vector2 velocity;
        public Vector2 position;
        public Vector2 pozycjaPoprzednia;
 
 
        public Rectangle Rectanglee()
        {
            return new Rectangle(Convert.ToInt32(position.X), Convert.ToInt32(position.Y), texture.Width, texture.Height);
        }
 
        public enum WhereToGo
        {
            goLEFT,
            goRIGHT,
            goUP,
            goDOWN
        }
    }
}
 
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