Commit 9c6af811 authored by Sapln's avatar Sapln
Browse files

ébauche pour sprites différents de CP

parent def33f75
......@@ -54,6 +54,8 @@
<Content Include="Data\Levels\World1\tiles_16x16.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Data\Sprites\Checkpoint\checkpointOff.png" />
<Content Include="Data\Sprites\Checkpoint\checkpointOn.png" />
<Content Include="Data\Sprites\Worlds\Teleporters\portal_in_1.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
......
......@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Text;
using Urho;
using Urho.Urho2D;
using ZZZZZZ.Utils;
namespace ZZZZZZ.Physics.CollisionBoxs
{
......@@ -11,6 +12,7 @@ namespace ZZZZZZ.Physics.CollisionBoxs
public Vector2 Position { get; private set; }
public bool Status { get; private set; }
public GravityDirection SpawnGravity { get; private set; }
public Sprite2D OnSprite { get; private set; }
public Checkpoint Init(Vector2 position)
{
SpawnGravity = GravityDirection.Bas;
......@@ -20,6 +22,8 @@ namespace ZZZZZZ.Physics.CollisionBoxs
box.Node.SetPosition2D(position + new Vector2(8, 8) / 100);
Position = box.Node.Position2D;
Status = false;
//OnSprite = Application.ResourceCache.GetSprite2D(Assets.Sprites.Checkpoint.CheckpointOn);
return this;
}
public void On()
......
......@@ -66,6 +66,11 @@
public const string CharacterRemote_2 = "Sprites/Characters/character_remote_2.png";
}
public static class Checkpoint
{
public const string CheckpointOn = "Sprites/Checkpoint/checkpointOn.png";
}
public static class Worlds
{
public static class Teleporter
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment