You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
JSGL - Stable version update 1.0.7
From now the JSGL library will not undergo major changes. (i.e. renaming a function, etc.)
New
OnMouseHoverStart
OnMouseHoverEnd
OnMouseDown
OnMouseUp
event function in ClickableGameObject.Renderer.fill(color | draw settings | image)
.Changes
Game.Update()
is invoked every frame. To change this setdrawAlways=true
in GameSettingsGameObject.OnStart(event)
->GameObject.Start(event)
GameObject.OnDestroy(event)
->GameObject.Destroy(event)
Fixes
Presentation of news
GameObject Update
From
To
TickEvent Update
Game.timeScale
. Represents scale of time.deltaTime
is scaled byGame.timeScale
.unscaledDeltaTime
is deltaTime withoutGame.timeScale
multiplication.unscaledTime
. This value represents time from game start in seconds.Vector2 ReWork
Lerp(Vector2, Vector2, decimal midpoint)
Max(Vector2, Vector2)
Min(Vector2, Vector2)
Vector2.zero
=(0, 0)
Vector2.one
=(1, 1)
Vector2.up
=(0, 1)
Vector2.down
=(0, -1)
Vector2.right
=(1, 0)
Vector2.left
=(-1, 0)
set(Vector2)
|set(x, y)
add(Vector2)
|add(x, y)
subtract(Vector2)
|subtract(x, y)
multiply(Vector2)
|multiply(scalar)
divide(Vector2)
|divide(scalar)
distance(Vector2)
|distance(x, y)
floor()
Transform ReWork
angles
. Gets/sets rotation in radians.eulerAngles
. Gets/sets rotation in degrees.positionCenter
.forward
. Gets Vector2 value in direction.backward
. Gets Vector2 value opposite to direction.ifOnEdgeBounce(grid)
set(Vector2)
|set(x, y)
setX(Vector2)
|setX(x)
setY(Vector2)
|setY(y)
translate(Vector2)
|translate(x, y)
translateX(Vector2)
|translateX(x)
translateY(Vector2)
|translateY(x)
Better Game Starting
ClickableGameObject Update
ignoreRaycast
set totrue
if you want to ignore mouse events.What's Changed
Full Changelog: v1.0.6...v1.0.7
This discussion was created from the release JSGL v1.0.7 - Stable version update.
Beta Was this translation helpful? Give feedback.
All reactions