Cannot get keyboard input to function still.

This commit is contained in:
hellka7
2025-04-13 17:11:34 -07:00
parent d6842844d1
commit 409d602362
5 changed files with 112 additions and 80 deletions
+8 -1
View File
@@ -7,6 +7,12 @@ namespace LunaLightXMG
{
public class Enemy
{
public Level Level
{
get { return level; }
}
Level level;
private float hsp; // Horizontal speed
private float hspPrev;
private float vsp; // Vertical speed
@@ -38,8 +44,9 @@ namespace LunaLightXMG
random = new Random(42);
}
public Enemy(Vector2 initPosition, float initHsp, ContentManager Content)
public Enemy(Level level, Vector2 initPosition, float initHsp, ContentManager Content)
{
this.level = level;
hsp = initHsp;
vsp = 0;
hsp_frac = 0;