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 14.0.2 found (17 same-name repos checked); no cached copy. Use another version.
User Configuration for the messenger.
userdata is a custom type which can store any data in the game.
users can save their own global data and implement local storage here.
scenemsg is another custom type which represents the message type users wants
to send to a scene when switching scenes.
initScene represents the scene users get startinitSceneMsg represents the message to initialize the start sceneglobalDataCodec is for local storage, users can encode the any data in global data
and user data to storage them, and decode them when reopen the game.
This globalData is a subset of the real global data, removing all internal data structuresvirtualSize represents how users want their game be virtual sized. In other words,
users make their game in the virtual size, and the game will be resized due to the browser window size
but keeping the aspect ratiodebug option determines whether enable some simple debugging tools or not
remember to disable it when releasing gamebackground determines the background of the game
transparent background and colored background is already preparedtimeInterval See TimeIntervalports stores the ports that users must provide.The ports that the user must provide to the messenger.
Learn more about ports here
A colored background.
A transparent background. You should use this for release.
Resources
allTexture stores all the texture assets users will use in the game. The path is based on the project folder.
format: Dict name pathallSpriteSheets stores all the sprite sheets users set for this game. users should both
name the sprite sheets and every single sprite. Using it by format: "sheet_name.sprite_name"
Sprite sheets are useful when managing the art recourses or making frame-by-frame animationsallAudio stores all the audio assets users will use in the game. format: Dict name pathThe number of sprites in the game.
Time interval between every two frames.
Fixedrepresents the fixed time interval between every two frames. The value is the time interval in milliseconds.Animationwill use the browser'srequestAnimationFrameto update the game. The frame rate will be dependent on your device. This will make the animation looks smoother.