@ud-viz/game_shared_template
v4.6.0
Published
Collection of script base on @ud-viz/game_shared
Downloads
100
Readme
@ud-viz/game_shared_template
Overview
@ud-viz/game_shared_template
provides a collection of script base on @ud-viz/game_shared reusable for building interactive and games. It includes functionality for managing maps, handling drag and drop operations for avatars, and managing native commands for object movement and rotation.
Installation
You can install @ud-viz/game_shared_template
via npm:
npm install @ud-viz/game_shared_template
Usage
Example
const { AbstractMap, DragAndDropAvatar, NativeCommandManager } = require('@ud-viz/game_shared_template');
// Example usage of AbstractMap
class MyMap extends AbstractMap {
// Implement custom methods and functionality
}
// Example usage of DragAndDropAvatar
const avatarManager = new DragAndDropAvatar();
// Example usage of NativeCommandManager
const commandManager = new NativeCommandManager();
AbstractMap
: See two classes extended with different focuses: one for frontendMap
(@ud-viz/game_browser_template
), and one for backendMap
(@ud-viz/game_node_template
).DragAndDropAvatar
: You can find an implementation here.NativeCommandManager
: You can find an implementation here.
Documentation
Contributing
Contributions are welcome! Feel free to submit bug reports, feature requests, or pull requests on the GitHub repository. See Contributing.md.
License
This package is licensed under the GNU Lesser General Public License Version 2.1, with copyright attributed to the University of Lyon.
Credits
@ud-viz/game_shared_template
is developed and maintained by VCityTeam. See Contributors.md.