Game Engine by KI8YK8
Features
- Create canvas based game engine inspired from Kaplay.js
-
Implements vector functions like, unit vector, distance, cross and dot
products, arithmetics, angle, rotate, etc.
- Tags from each object to implement collision
- Features like tween and interpolate functions for animations
- Supports keyboard events like keypress, keydown, and keyup
-
Collision detection with functions like onCollide, onCollideStart,
onCollideEnd, and onCollideUpdate.
-
Color component with support of RGB and Hex color format and
inter-conversion support.
-
Custom random number generator using linear congurential RNG with
features like seed value, random number between max and min, choose
from an array, shuffle, etc.
-
Anchoring origin ofelement to different positions center, top,
topleft, left, right, etc.
- Support for velocity and acceleration.
- Supports transformation features like scale, and rotate.
-
Supports creating rectangle with and without rounded corners, and
texts with different font and size support.