JSGL v1.0.6 - Simplify Update
JSGL - Simplify Update 1.0.6
New
- Added SimpleShape and SimpleSprite
- Added DefaultGame class
- Added 6 examples to GitHub repository
Fixes
- Fixed not working destroying game object by reference.
DefaultGame
Old solution
JSGL.ExampleHTML.Render({ backgroundColor: 'black'});
const grid = new JSGL.Vector2(10, 10);
const game = new JSGL.Game({
canvas: document.getElementById("gameCanvas"),
grid: grid,
});
game.RescaleCanvasToParentElement(1);
New solution
const game = JSGL.DefaultGame.Create({ grid: new JSGL.Vector2(10, 10)}, { backgroundColor: 'black' }, 1);
SimpleShape & Sprite
Check "/examples/" directory for examples.
What's Changed
- Dev 1.0.4 by @Moderrek in #5
- Fix bounce by @Moderrek in #6
- JSGL 1.0.6 - Simplify Update by @Moderrek in #8
Full Changelog: v1.0.4...v1.0.6