コード例 #1
0
ファイル: Particle.cs プロジェクト: narfman0/SunshineSlashers
 public void Draw(GameTime gameTime, Demo game)
 {
     foreach (Particle particle in list)
     {
         game.DrawModel(game.UnitSphere, Matrix.CreateTranslation(particle.pos));
     }
 }
コード例 #2
0
ファイル: Level.cs プロジェクト: narfman0/SunshineSlashers
 public Level(Demo Game)
 {
     Well = new GameObject[MAX_WELLS];
     House = new GameObject[MAX_HOUSES];
     Crate = new GameObject[MAX_CRATES];
     Tree = new GameObject[MAX_TREES];
     Mushroom = new GameObject[MAX_MUSHROOMS];
 }
コード例 #3
0
 public GameObject(Demo Game, Model model1, Vector3 StartPos, float scale)
     : this(Game, model1)
 {
     Pos = StartPos; Scale = scale;
     Boundary = Game.GetModelBB(model1);
     Boundary.Max *= scale;
     Boundary.Max += Pos;
     Boundary.Min *= scale;
     Boundary.Min += Pos;
     Rotation = 0.0f;
 }
コード例 #4
0
ファイル: Being.cs プロジェクト: narfman0/SunshineSlashers
 public Being(Demo Game)
 {
     this.Game = Game;
     GunList = new ArrayList();
     GunList.Add(new Gun(7, 28, (int)Guns.Deagle, Game.Deagle));
     GunList.Add(new Gun(30, 90, (int)Guns.AK47, Game.AK47));
     GunList.Add(new Gun(8, 24, (int)Guns.Shotty, Game.Shotty));
     CurrentGun = (int)Guns.Deagle;
     camera = new FirstPersonCamera(Game);
     Health = CurrentHealth = 100;
     timeToChangeDirection = Environment.TickCount;
     StarScore = 0;
     TimeOfLastDeath = Environment.TickCount;
     model = Game.Leet;
 }
コード例 #5
0
 public AnimatedModel(Demo Game)
 {
     Game1 = Game;
     LoadContent();
 }
コード例 #6
0
ファイル: Demo.cs プロジェクト: narfman0/SunshineSlashers
 private static void Main()
 {
     using (Demo demo = new Demo())
     {
         demo.Run();
     }
 }
コード例 #7
0
 public GameObject(Demo Game, Model model1)
 {
     this.Game = Game;
     Pos = new Vector3(0, 0, 0);
     model = model1;
 }