mirror of
https://github.com/TheRavenwoodArts/LunaLightXMG.git
synced 2026-07-31 00:05:02 -07:00
Cannot get keyboard input to function still.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user