mirror of
https://github.com/TheRavenwoodArts/LunaLightXMG.git
synced 2026-07-31 00:05:02 -07:00
Getting a lot of errors. Putting it down for the night.
This commit is contained in:
@@ -38,6 +38,23 @@ namespace LunaLightXMG
|
||||
random = new Random(42);
|
||||
}
|
||||
|
||||
public Enemy(Vector2 initPosition, float initHsp, ContentManager Content)
|
||||
{
|
||||
hsp = initHsp;
|
||||
vsp = 0;
|
||||
hsp_frac = 0;
|
||||
vsp_frac = 0;
|
||||
vspJump = -4f;
|
||||
grounded = false;
|
||||
walled = false;
|
||||
grv = 0.2f;
|
||||
position = initPosition;
|
||||
boundingBox = new BoundingBox(new Rectangle((int)position.X, (int)position.Y, 8, 8));
|
||||
collisionManager = new CollisionManager();
|
||||
random = new Random(42);
|
||||
LoadContent(Content);
|
||||
}
|
||||
|
||||
public void LoadContent(ContentManager content)
|
||||
{
|
||||
texture = content.Load<Texture2D>("enemy");
|
||||
|
||||
Reference in New Issue
Block a user