feat: refactoring && walls
This commit is contained in:
9
Components/Player/CameraComponent.cs
Normal file
9
Components/Player/CameraComponent.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Raylib_cs;
|
||||
using Scellecs.Morpeh;
|
||||
|
||||
namespace BakeryGame.Components.Player;
|
||||
|
||||
public struct CameraComponent : IComponent
|
||||
{
|
||||
public Camera3D Camera;
|
||||
}
|
||||
8
Components/Player/HealthComponent.cs
Normal file
8
Components/Player/HealthComponent.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using Scellecs.Morpeh;
|
||||
|
||||
namespace BakeryGame.Components.Player;
|
||||
|
||||
public struct HealthComponent : IComponent
|
||||
{
|
||||
public int HealthPoints;
|
||||
}
|
||||
10
Components/Player/MovementComponent.cs
Normal file
10
Components/Player/MovementComponent.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using BakeryGame.Models;
|
||||
using Scellecs.Morpeh;
|
||||
|
||||
namespace BakeryGame.Components.Player;
|
||||
|
||||
public struct MovementComponent : IComponent
|
||||
{
|
||||
public Direction Direction;
|
||||
public float Speed;
|
||||
}
|
||||
9
Components/Player/PlayerComponent.cs
Normal file
9
Components/Player/PlayerComponent.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using System.Numerics;
|
||||
using Scellecs.Morpeh;
|
||||
|
||||
namespace BakeryGame.Components.Player;
|
||||
|
||||
public struct PlayerComponent : IComponent
|
||||
{
|
||||
public Vector3 Size;
|
||||
}
|
||||
Reference in New Issue
Block a user