-
-
Notifications
You must be signed in to change notification settings - Fork 0
-
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 Dev 1.0.4 #5
- Fix bounce by @Moderrek in Fix bounce #6
- JSGL 1.0.6 - Simplify Update by @Moderrek in JSGL 1.0.6 - Simplify Update #8
Full Changelog: v1.0.4...v1.0.6
This discussion was created from the release JSGL 1.0.6 - Simplify Update.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment