Skip to content

JSGL v1.0.6 - Simplify Update

Compare
Choose a tag to compare
@Moderrek Moderrek released this 29 Mar 17:49
· 19 commits to release since this release
ca70d27

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

Full Changelog: v1.0.4...v1.0.6