-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: build system from webpack to rollup
- Loading branch information
1 parent
7509b44
commit 36f0588
Showing
21 changed files
with
64,976 additions
and
64,791 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,29 @@ | ||
# MobileHandler | ||
# MobileHandler Module | ||
|
||
The MobileHandler module provides a user-friendly interface for game developers to integrate touch-based controls for their game characters on mobile devices. It offers features for creating a visual joystick on the screen and facilitates mobile device interaction, including accessing device information and triggering device vibrations. | ||
|
||
## Installation | ||
|
||
### ES Module | ||
|
||
```js | ||
import { MobileHandler } from './mobile-handler.mjs'; | ||
``` | ||
|
||
### IIFE (Immediately Invoked Function Expression) | ||
|
||
```js | ||
<script src="mobile-handler.js"></script>; | ||
// ... | ||
window.MobileHandlerBundle.MobileHandler; | ||
``` | ||
|
||
### CommonJS (CJS) Module | ||
|
||
```js | ||
const { MobileHandler } = require('./mobile-handler.cjs.js'); | ||
``` | ||
|
||
### Global Dependency | ||
|
||
MobileHandler relies on the `VYLO` variable being globally accessible. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.