コード例 #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;
 }