1.0.3 • Published 1 year ago

ageis v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

AgiesJS!

ASA

Agies is WIP GameEngine based on js there will be update time to time (So Much bugs)

Install Agies

npm install ageis

Documentation

Canvas

 let view = _M.viewTopx(100);
let cnvs = _M.brush([view.w, view.h]);

_M.node().qs('#game').append(
  cnvs.canvas
);

Camera

window.camera = {
  status: true,
  x: 0,
  y: 0,
  size: 200,
};

Physics

let collisionMath = {
  rect: (a, b) => {
    a.w = a.w || 0;            /* | */ a.h = a.h || 0;
    a.x2 = a.x + a.w || a.x; /* | */ a.y2 = (a.y + a.h) || a.y;

    b.w = b.w || 0;            /* | */ b.h = b.h || 0;
    b.x2 = b.x + b.w || b.x;
    b.y2 = b.y + b.h || b.y;
    
    return a.x < b.x2 && a.x2 > b.x &&
           a.y < b.y2 && a.y2 > b.y;
  }
};

Support Me

https://ko-fi.com/surges

Have Any Question Join the Discord

https://discord.gg/DPvpNV3Hfy

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago