-
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.
Added README, fixed bug with component name, added GIF.
- Loading branch information
1 parent
ce16e58
commit 3194c3e
Showing
4 changed files
with
46 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Jump | ||
|
||
Jump is an A-Frame component that allows a player to jump on keypress. | ||
|
||
## Installation | ||
|
||
Include the component file in the head of your HTML document: | ||
|
||
```html | ||
<script type="text/javascript" src="jump.js"></script> | ||
``` | ||
|
||
## Usage | ||
|
||
```html | ||
<a-camera | ||
jump=" | ||
height: 5; | ||
interval: 2000; | ||
timingFunction; | ||
" | ||
> | ||
</a-camera> | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Default | Description | | ||
|--------------------|---------|-------------| | ||
| **height** | 5 | The height your player will jump| | ||
| **interval** | 1000 | The total time of the jump (in milliseconds)| | ||
| **timingFunction** | linear | The timing function used to control the jump.| | ||
|
||
## Example | ||
|
||
![](jump.gif) | ||
|
||
## Contributing | ||
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. | ||
|
||
|
||
## License | ||
[MIT](https://choosealicense.com/licenses/mit/) |
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