コード例 #1
0
        public Scene1(Game game)
        {
            TestTimer = new Timer();
            TestTimer.Fire += new NotifyHandler(TestTimer_Fire);

            Actor guy = new Actor(this, game.Content.Load<Texture2D>("player"), new Vector2(10, 0), 1);
            guy.PositionChange += new NotifyHandler(guy_PositionChange);
            EntityManager.AddEntity("Guy", guy);
            Show();
        }
コード例 #2
0
 public static void AddBehavior(Actor actor)
 {
     actor.Behavior = "Bullet";
 }