示例#1
0
 public Camera(IFocous focus, Viewport vp, Vector2 pos, float zoom)
 {
     this.focus          = focus;
     this.vp             = vp;
     this.pos            = pos;
     this.zoom           = zoom;
     Game1.Event_Update += update;
 }
示例#2
0
        public void activateStaticEngine(DRC drc, IFocous character, int pase)
        {
            switch (drc)
            {
            case DRC.right:
                character.Position = new Vector2(character.Position.X + (pase / 50), character.Position.Y);
                break;

            case DRC.left:
                character.Position = new Vector2(character.Position.X - (pase / 50), character.Position.Y);
                break;
            }
        }
示例#3
0
 public override void WhoAmI(IFocous me) // just because user keys inherit base keys
 {
 }
示例#4
0
 public abstract void WhoAmI(IFocous me);
示例#5
0
 public override void WhoAmI(IFocous me)
 {
     this.me = me;
 }
示例#6
0
 public void engineupdate(abstractKeys keys, int index, IFocous f)
 {//activates the update function of an engine by his index
     eng[index].engine_update(keys);
 }