Esempio n. 1
0
 private void CreateGun()
 {
     MouseState mouseState = Mouse.GetState();
     Vector2 position = new Vector2(mouseState.X, mouseState.Y);
     mBuildingBlock = new Gun(mWorld, position, mPlayer);
 }
Esempio n. 2
0
 private void CreateBox()
 {
     Vector2 size = new Vector2(5.9f, 2.9f);
     MouseState mouseState = Mouse.GetState();
     Vector2 position = new Vector2(mouseState.X, mouseState.Y);
     mBuildingBlock = new Box(mWorld, position, size, mTexture, true, mPlayer, mHealth);
 }