Implement inventory system with item management and pickup functionality
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using GameCore.Attributes;
|
||||
using GameCore.ECS;
|
||||
using GameCore.ECS.Interfaces;
|
||||
using GameCore.Events;
|
||||
using GameCore.Input;
|
||||
using GameCore.Physics;
|
||||
using Attribute = GameCore.Attributes.Attribute;
|
||||
@@ -26,6 +27,7 @@ public class JumpSystem : ISystem
|
||||
{
|
||||
var jumpHeight = attributes.GetValue(Attribute.JumpHeight);
|
||||
velocity.DesiredVelocity.Y = (float)System.Math.Sqrt(2f * world.Config.GravityStrength * jumpHeight);
|
||||
world.PublishEvent(new PlayerJumpEvent());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user