Ejemplo n.º 1
0
        public static void ModifyMap1()
        {
            StaticCollider KillZone = new StaticCollider(new Vector2(10000, 10), new Vector2(280, -500), false);

            KillZone.CollisionStarted += OnTouchKillZone;

            StaticCollider NextMapTrigger = new StaticCollider(new Vector2(64, 64), new Vector2(1983, 1), false);

            NextMapTrigger.CollisionStarted += OnFinishLevel;

            DumbEnemy de = new DumbEnemy(new Vector2(653, -127), new Vector2(64, 64));

            de.Texture           = TextureHandler.GetImageByName("enemy1-r");
            de.canMove           = true;
            de.IsVisible         = true;
            de.CollisionStarted += OnEnemyTouch;
            map.AddActor(de);
        }
Ejemplo n.º 2
0
 public void AddActorToGame(ActorBase actorBase)
 {
     map.AddActor(actorBase);
 }