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; }
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; } }
public override void WhoAmI(IFocous me) // just because user keys inherit base keys { }
public abstract void WhoAmI(IFocous me);
public override void WhoAmI(IFocous me) { this.me = me; }
public void engineupdate(abstractKeys keys, int index, IFocous f) {//activates the update function of an engine by his index eng[index].engine_update(keys); }