예제 #1
0
 public Hero(Vector2f position, Window2D window2D, Level level)
 {
     elapsedBonusTime  = 0;
     weapon            = Weapons.Pistol;
     this.level        = level;
     HeroImage         = new Image("Sprites/Player/player_gun.png");
     Texture           = new Texture(HeroImage);
     TextureRect       = new IntRect(0, 0, 49, 43);
     Scale             = new Vector2f(1f, 1f);
     Origin            = new Vector2f(GetLocalBounds().Width / 2, GetLocalBounds().Height / 2);
     Position          = position;
     sight             = new Sight(window2D);
     window            = window2D;
     IsAlive           = true;
     timeSinceLastShot = 0f;
 }
예제 #2
0
파일: Menu.cs 프로젝트: DipCoy/Tonight
 public Menu(Window2D window)
 {
     window2D = window;
 }
예제 #3
0
 public Level(string mapPath, Window2D window)
 {
     this.mapPath = mapPath;
     window2D     = window;
 }