Renamed to elm-messenger/messenger-core. That is where the repository lives now. It has not been published as a package under the new name.
Versions published as linsyking/messenger-core still install under that name. 34 versions of 52 come from the new location (see their notes). 7 versions could not be recovered and cannot be installed.
Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: Software Heritage has not archived the repo; no fork with tag 13.0.0 found (17 same-name repos checked); no cached copy. Use another version.
Some Basic Data Types for the game
User Event
This is the User Event for the game.
Users can get outside information through these events.
Tick is triggered every timeInterval.
KeyDown, KeyUp records the keyboard events.
check all the keycodes here.
MouseDown, MouseUp records the button code and position when mouse up and down.
Mouse code 0 represents the left mouse button, 1 represents middle mouse button and 2 represents
right mouse button.
We have provide some key and mouse codes in messenger-extra.
MouseWheel records the wheel event for mouse, positive value means sroll down while
negative value means scroll up. It can be also used for touchpad.
Prompt name result gives the result user entered in the prompt window.
GlobalData
GlobalData is the data that doesn't change during the game.
It won't be reset if you change the scene.
It is mainly used for display and reading/writing some localstorage data.
globalStartFrame records the past frames number since the game startedglobalStartTime records the past time since the game started, in millisecondssceneStartFrame records the past frames number since this scene startedsceneStartTime records the past time since this scene started, in millisecondsuserdata records the data that users set to saveextraHTML is used to render extra HTML tags. Be careful to use thiswindowVisibility records whether users stay in this tab/windowpressedKeys records the keycodes that are be pressed nowpressedMouseButtons records the mouse buttons that are pressed nowvolume records the volume of the gamecurrentScene records the current scene namemousePos records the mouse position, in virtual coordinateInternal GlobalData
Basically users do not need to get or modify them.
browserViewPort records the browser size.sprites records all the sprites(images).Get the number of loaded resources.
Environment
Environment is provided to users almost all the time.
It stores GlobalData and CommonData (Similar to GlobalData but just for one scene), so you can get and modify them through the Env.
Remove common data from environment.
Useful when dealing with portable components by yourself.
Most of the time it will not be used since it has been built into prepared update functions.
Add the common data to a Environment without common data.
This type is for user to use when initializing the messenger.
Empty InternalData
Turn UserViewGlobalData into GlobalData
Turn GlobalData into UserViewGlobalData
World Event
This is the World Event for the game.
The events that messenger will receive from outside
Basically users don't need to deal with the world events, they work with user events instead.