AddBossArena
This commit is contained in:
parent
a0de50ba70
commit
77c6ec9bca
4 changed files with 134 additions and 5 deletions
130
DangerousD/Content/LastLvl.tmx
Normal file
130
DangerousD/Content/LastLvl.tmx
Normal file
|
@ -0,0 +1,130 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<map version="1.10" tiledversion="1.10.2" orientation="orthogonal" renderorder="left-up" width="30" height="20" tilewidth="16" tileheight="16" infinite="1" nextlayerid="7" nextobjectid="5">
|
||||||
|
<tileset firstgid="1" source="map.tsx"/>
|
||||||
|
<layer id="2" name="Platform" class="StopTile" width="30" height="20">
|
||||||
|
<data encoding="csv">
|
||||||
|
<chunk x="-32" y="0" width="16" height="16">
|
||||||
|
410,410,410,410,410,410,410,410,410,410,410,410,410,410,410,410,
|
||||||
|
410,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
410,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
410,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
410,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
410,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
410,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
410,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
410,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
410,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
410,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
410,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
410,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
410,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
410,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
410,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||||
|
</chunk>
|
||||||
|
<chunk x="-16" y="0" width="16" height="16">
|
||||||
|
410,410,410,410,410,410,410,410,410,410,410,410,410,410,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,410,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,410,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,410,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,410,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,410,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,410,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,410,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,410,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,410,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,410,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,410,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,410,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,410,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,410,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,410,0,0
|
||||||
|
</chunk>
|
||||||
|
<chunk x="-32" y="16" width="16" height="16">
|
||||||
|
410,410,410,410,410,410,410,410,410,410,410,410,410,410,410,410,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,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="16" width="16" height="16">
|
||||||
|
410,410,410,410,410,410,410,410,410,410,410,410,410,410,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,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>
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
<layer id="3" name="BackGround" class="Tile" width="30" height="20">
|
||||||
|
<data encoding="csv">
|
||||||
|
<chunk x="-32" y="0" width="16" height="16">
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,376,375,369,370,388,389,726,390,369,370,376,389,376,388,726,
|
||||||
|
0,376,389,369,370,390,726,388,388,369,370,390,726,388,389,389,
|
||||||
|
0,388,726,369,370,390,377,375,377,369,370,431,389,389,431,431,
|
||||||
|
0,389,431,369,370,377,377,389,388,369,370,431,389,375,375,431,
|
||||||
|
0,377,377,369,370,390,376,389,431,369,370,375,375,726,388,390,
|
||||||
|
0,388,431,369,370,388,390,376,726,369,370,375,377,376,388,377,
|
||||||
|
0,388,375,369,370,376,375,377,388,369,370,376,375,389,388,431,
|
||||||
|
0,390,726,369,370,377,431,431,388,369,370,389,390,390,376,377,
|
||||||
|
0,377,376,369,370,389,377,431,376,369,370,389,431,726,431,388,
|
||||||
|
0,377,431,369,370,375,390,390,377,369,370,375,377,389,388,376,
|
||||||
|
0,390,390,369,370,431,376,389,390,369,370,390,431,376,389,390,
|
||||||
|
0,431,377,369,370,376,390,388,388,369,370,377,375,390,389,377,
|
||||||
|
0,390,726,369,370,375,377,726,390,369,370,389,376,388,388,375,
|
||||||
|
0,390,389,382,383,388,377,388,390,382,383,431,726,390,388,431,
|
||||||
|
0,389,377,395,396,389,431,377,431,395,396,375,388,726,376,389
|
||||||
|
</chunk>
|
||||||
|
<chunk x="-16" y="0" width="16" height="16">
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
389,388,375,369,370,388,377,389,389,369,370,390,375,0,0,0,
|
||||||
|
390,388,726,369,370,375,726,376,726,369,370,388,375,0,0,0,
|
||||||
|
388,389,431,369,370,726,377,726,431,369,370,377,375,0,0,0,
|
||||||
|
388,376,431,369,370,377,375,726,726,369,370,431,376,0,0,0,
|
||||||
|
376,389,388,369,370,377,390,431,389,369,370,376,431,0,0,0,
|
||||||
|
389,388,389,369,370,376,726,390,377,369,370,389,377,0,0,0,
|
||||||
|
431,377,389,369,370,431,726,726,389,369,370,431,390,0,0,0,
|
||||||
|
390,389,377,369,370,390,390,376,431,369,370,390,376,0,0,0,
|
||||||
|
388,388,377,369,370,388,431,390,388,369,370,389,377,0,0,0,
|
||||||
|
388,389,390,369,370,726,377,377,388,369,370,390,390,0,0,0,
|
||||||
|
388,376,390,369,370,377,377,389,726,369,370,375,726,0,0,0,
|
||||||
|
431,726,390,369,370,375,431,377,726,369,370,389,389,0,0,0,
|
||||||
|
390,388,726,369,370,389,375,390,388,369,370,377,726,0,0,0,
|
||||||
|
375,375,375,382,383,376,390,726,388,382,383,431,726,0,0,0,
|
||||||
|
389,389,390,395,396,390,390,726,390,395,396,431,390,0,0,0
|
||||||
|
</chunk>
|
||||||
|
</data>
|
||||||
|
</layer>
|
||||||
|
<objectgroup id="5" name="SilasMaster" class="LivingEntities.Monsters.SilasMaster">
|
||||||
|
<object id="1" x="-279.333" y="121.333">
|
||||||
|
<point/>
|
||||||
|
</object>
|
||||||
|
</objectgroup>
|
||||||
|
<objectgroup id="6" name="player" class="LivingEntities.Player">
|
||||||
|
<object id="3" x="-329.333" y="111.333">
|
||||||
|
<point/>
|
||||||
|
</object>
|
||||||
|
</objectgroup>
|
||||||
|
</map>
|
|
@ -62,9 +62,7 @@ namespace DangerousD.GameCore
|
||||||
if (AppManager.Instance.InputManager.CollisionsCheat)
|
if (AppManager.Instance.InputManager.CollisionsCheat)
|
||||||
{
|
{
|
||||||
spriteBatch.Draw(debugTexture,
|
spriteBatch.Draw(debugTexture,
|
||||||
new Rectangle(Rectangle.X - GraphicsComponent.CameraPosition.X,
|
new Rectangle((Rectangle.X - GraphicsComponent.CameraPosition.X) * GraphicsComponent.scaling, (Rectangle.Y - GraphicsComponent.CameraPosition.Y) * GraphicsComponent.scaling, Rectangle.Width * GraphicsComponent.scaling, Rectangle.Height * GraphicsComponent.scaling),Color.White);
|
||||||
Rectangle.Y - GraphicsComponent.CameraPosition.Y, Rectangle.Width, Rectangle.Height),
|
|
||||||
Color.White);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ using Microsoft.Xna.Framework.Graphics;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Security.Cryptography.X509Certificates;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace DangerousD.GameCore.Graphics
|
namespace DangerousD.GameCore.Graphics
|
||||||
|
@ -17,7 +18,7 @@ namespace DangerousD.GameCore.Graphics
|
||||||
private List<Texture2D> textures;
|
private List<Texture2D> textures;
|
||||||
private List<string> texturesNames;
|
private List<string> texturesNames;
|
||||||
private AnimationContainer currentAnimation;
|
private AnimationContainer currentAnimation;
|
||||||
static private int scaling = 4;
|
static public int scaling = 4;
|
||||||
public AnimationContainer CurrentAnimation
|
public AnimationContainer CurrentAnimation
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
|
@ -205,7 +205,7 @@ namespace DangerousD.GameCore
|
||||||
case GameState.Lobby:
|
case GameState.Lobby:
|
||||||
break;
|
break;
|
||||||
case GameState.Game:
|
case GameState.Game:
|
||||||
GameManager.mapManager.LoadLevel("lvl");
|
GameManager.mapManager.LoadLevel("LastLvl");
|
||||||
GameManager.FindBorders();
|
GameManager.FindBorders();
|
||||||
break;
|
break;
|
||||||
case GameState.Death:
|
case GameState.Death:
|
||||||
|
|
Loading…
Add table
Reference in a new issue