.cs principal (main):
Únicamente escribiremos el código básico para inciar el programa.
using System;
namespace Plane
{
#if WINDOWS || XBOX
static class Program
{
static void Main(string[] args)
{
using (Game1 game = new Game1())
{
game.Run();
}
}
}
#endif
}
- ROTACIÓN DE UN TEXTO.
Cálculo ángulo:
RotationAngle + = (float)gameTime.ElapsedGameTime.TotalSeconds;
float circle = MathHelper.Pi * 2;
RotationAngle = RotationAngle % circle;
Rotación del "Texto":
spriteBatch.DrawString(gamefont, "Texto", position_text, Color.DarkGoldenrod, RotationAngle, new Vector2(0,0), 0.8f, SpriteEffects.None, 0.0f);
No hay comentarios:
Publicar un comentario