-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPantalla.cs
58 lines (51 loc) · 1.55 KB
/
Pantalla.cs
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
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;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
namespace TarreeGame
{
class Pantalla
{
private string[] elementos;
private int separacion = 30;
public Pantalla(int elements)
{
elementos = new string[elements];
/*switch (pantalla)
{
case "menu_principal":
//
break;
case "juego_single":
//
break;
case "juego_servidor":
//
break;
case "juego_cliente":
//
break;
}*/
}
public void anadir(int posicion, string texto)
{
elementos[posicion] = texto;
}
public void Draw(SpriteBatch spritebatch, SpriteFont fuente)
{
int i=0;
for (i=0; i < elementos.Length; i++){
spritebatch.DrawString(fuente, elementos[i].ToString(), new Vector2(150, 180 + (separacion * i)), Color.Black);
}
}
}
}