/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
public Enemy(Texture2D texture, Vector2 position, Vector2 velocity, Vector2 grav, Vector2 screen, Game1 game) { health = 100; touchDamage = 10; myTexture = texture; myPosition = position; myVelocity = velocity; myScreenSize = screen; gravity = grav; myGame = game; moveTimer = 100; }
public MainChar(Texture2D texture, Texture2D daggerImg, Texture2D boltImg1, Vector2 position, Vector2 velocity, Vector2 acceleration, Vector2 setGrav, Vector2 setFric, Vector2 screen, float setLR, Game1 game) { myTexture = texture; myPosition = position; myAcceleration = acceleration; gravity = setGrav; friction = setFric; myScreenSize = screen; LRspeed = setLR; faceRight = true; myGame = game; daggerImage = daggerImg; dagTimer = 0; SetUpInput(); daggerLevel = 1; this.boltImg1 = boltImg1; }