Getting a lot of errors. Putting it down for the night.

This commit is contained in:
hellka7
2025-03-30 19:14:51 -07:00
parent 6022f12cb1
commit d6842844d1
3 changed files with 326 additions and 201 deletions
+17
View File
@@ -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");