Boss level
This commit is contained in:
parent
3a3542af7e
commit
ba49674c3b
5 changed files with 173 additions and 3 deletions
162
DangerousD/Content/boss.tmx
Normal file
162
DangerousD/Content/boss.tmx
Normal file
|
@ -0,0 +1,162 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<map version="1.10" tiledversion="1.10.2" orientation="orthogonal" renderorder="right-down" width="200" height="200" tilewidth="16" tileheight="16" infinite="1" nextlayerid="4" nextobjectid="3">
|
||||
<tileset firstgid="1" source="../../../../../Desktop/DangerousD map/map.tsx"/>
|
||||
<layer id="1" name="Слой тайлов 1" class="StopTile" width="200" height="200">
|
||||
<data encoding="csv">
|
||||
<chunk x="-16" y="-32" width="16" height="16">
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,799,799,799,799,799,799,799,
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0
|
||||
</chunk>
|
||||
<chunk x="0" y="-32" width="16" height="16">
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
799,799,799,799,799,799,799,799,799,799,799,799,799,799,799,799,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||
</chunk>
|
||||
<chunk x="16" y="-32" width="16" height="16">
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
799,799,799,799,799,799,799,799,799,799,799,799,799,799,799,799,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||
</chunk>
|
||||
<chunk x="32" y="-32" width="16" height="16">
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
799,799,799,799,799,799,799,799,799,799,799,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0
|
||||
</chunk>
|
||||
<chunk x="-16" y="-16" width="16" height="16">
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,799,799,799,799,799,799,799,799
|
||||
</chunk>
|
||||
<chunk x="0" y="-16" width="16" height="16">
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
799,799,799,799,799,799,799,799,799,799,799,799,799,799,799,799
|
||||
</chunk>
|
||||
<chunk x="16" y="-16" width="16" height="16">
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
799,799,799,799,799,799,799,799,799,799,799,799,799,799,799,799
|
||||
</chunk>
|
||||
<chunk x="32" y="-16" width="16" height="16">
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0,
|
||||
0,0,0,0,0,0,0,0,0,0,799,0,0,0,0,0,
|
||||
799,799,799,799,799,799,799,799,799,799,799,0,0,0,0,0
|
||||
</chunk>
|
||||
</data>
|
||||
</layer>
|
||||
<objectgroup id="2" name="Слой объектов 1" class="LivingEntities">
|
||||
<object id="1" name="DEBUGUS" type="Player" x="293.333" y="-126.667">
|
||||
<point/>
|
||||
</object>
|
||||
</objectgroup>
|
||||
<objectgroup id="3" name="Слой объектов 2" class="LivingEntities.Monsters">
|
||||
<object id="2" type="SilasMaster" x="82.6667" y="-186.667">
|
||||
<point/>
|
||||
</object>
|
||||
</objectgroup>
|
||||
</map>
|
|
@ -12,7 +12,7 @@ namespace DangerousD.GameCore.GameObjects.Entities
|
|||
{
|
||||
public class SilasBall : LivingEntity
|
||||
{
|
||||
private bool IsVisibility=true;
|
||||
public bool IsVisibility=true;
|
||||
public SilasBall(Vector2 position) : base(position)
|
||||
{
|
||||
Height = 60;
|
||||
|
|
|
@ -67,6 +67,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
|||
for (int i = 0; i < balls.Count; i++)
|
||||
{
|
||||
balls[i].SetPosition(new Vector2(Pos.X + i * 40, Pos.Y + 120));
|
||||
balls[i].IsVisibility=true;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ using DangerousD.GameCore.GameObjects.PlayerDeath;
|
|||
using Microsoft.Xna.Framework.Input;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using DangerousD.GameCore.GameObjects.LivingEntities.Monsters;
|
||||
using DangerousD.GameCore.Network;
|
||||
|
||||
namespace DangerousD.GameCore.GameObjects.LivingEntities
|
||||
{
|
||||
|
@ -27,6 +28,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities
|
|||
private bool isAttacked = false;
|
||||
private bool isShooting = false;
|
||||
public GameObject objectAttack;
|
||||
public bool isInvincible;
|
||||
private int bullets;
|
||||
|
||||
public Player(Vector2 position) : base(position)
|
||||
|
@ -58,6 +60,11 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities
|
|||
};
|
||||
}
|
||||
|
||||
public Player(Vector2 position, bool isInvincible) : this(position)
|
||||
{
|
||||
this.isInvincible = isInvincible;
|
||||
}
|
||||
|
||||
public bool IsAlive { get { return isAlive; } }
|
||||
|
||||
protected override GraphicsComponent GraphicsComponent { get; } = new(new List<string> { "playerMoveLeft", "playerMoveRight", "DeathFromZombie", "playerRightStay", "playerStayLeft",
|
||||
|
@ -152,7 +159,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities
|
|||
public override void Update(GameTime gameTime)
|
||||
{
|
||||
GraphicsComponent.SetCameraPosition(Pos);
|
||||
if (!isAttacked)
|
||||
if (!isAttacked || isInvincible)
|
||||
{
|
||||
Move(gameTime);
|
||||
}
|
||||
|
|
|
@ -202,7 +202,7 @@ namespace DangerousD.GameCore
|
|||
case GameState.Lobby:
|
||||
break;
|
||||
case GameState.Game:
|
||||
GameManager.mapManager.LoadLevel("lvl");
|
||||
GameManager.mapManager.LoadLevel("boss");
|
||||
break;
|
||||
case GameState.Death:
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue