Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

JSGL 1.0.6 - Simplify Update #9

Moderrek started this conversation in General
Discussion options

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


This discussion was created from the release JSGL 1.0.6 - Simplify Update.
You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /