Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Maxime POULAIN
ZZZZZZ
Commits
9c6af811
Commit
9c6af811
authored
Mar 02, 2022
by
Sapln
Browse files
ébauche pour sprites différents de CP
parent
def33f75
Changes
3
Hide whitespace changes
Inline
Side-by-side
Code/ZZZZZZ/ZZZZZZ.Desktop/ZZZZZZ.Desktop.csproj
View file @
9c6af811
...
...
@@ -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>
...
...
Code/ZZZZZZ/ZZZZZZ/Physics/CollisionBoxs/Checkpoint.cs
View file @
9c6af811
...
...
@@ -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
()
...
...
Code/ZZZZZZ/ZZZZZZ/Utils/Assets.cs
View file @
9c6af811
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment