minetest_wadsprint/README.md

61 lines
2.2 KiB
Markdown
Raw Permalink Normal View History

2018-01-02 07:11:28 -08:00
# Wadsprint [![Version](/util/version.png)] [minetest_wadsprint]
2016-03-26 11:41:29 -07:00
2022-03-26 23:17:21 -07:00
Minetest mod for sprinting/running with W, A and D buttons. A+D => A+D+W => W.
2016-03-26 11:41:29 -07:00
![Wadsprint](/screenshots/wadsprint_screenshots.png?raw=true "Wadsprint mod screenshots")
2017-04-24 10:55:18 -07:00
**How to use**
2016-03-26 11:46:11 -07:00
1. Press A and D simultaneously to trigger the `ready_to_sprint` state.
2016-03-26 11:41:29 -07:00
2. Then press W to start sprinting.
3. Release A and D (keep W pressed) and continue sprinting until the stamina runs out.
4. Drink a coffee to faster regenerate the stamina.
2016-03-26 11:41:29 -07:00
2017-04-24 10:55:18 -07:00
**How to download**
https://github.com/aa6/minetest_wadsprint/archive/master.zip
2017-04-24 10:55:18 -07:00
**How to install**
2016-03-26 11:46:42 -07:00
2016-03-26 11:41:29 -07:00
http://wiki.minetest.com/wiki/Installing_mods
2017-04-24 10:55:18 -07:00
**How to configure**
2016-03-26 11:46:42 -07:00
2016-03-26 11:41:29 -07:00
Edit `config.lua` at the mod directory.
2017-10-29 00:09:12 -07:00
Copy `config.lua` to `worlds/<worldname>/mod_minetest_wadsprint_config.lua` to create a per-world config.
2016-03-26 11:41:29 -07:00
2017-04-24 10:55:18 -07:00
**Dependencies**
2016-06-08 12:05:44 -07:00
2019-08-24 05:08:46 -07:00
All mod dependencies are optional.
2016-06-08 12:05:44 -07:00
2016-06-08 12:07:29 -07:00
- [hud?](https://github.com/BlockMen/hud_hunger)
2019-08-24 05:08:46 -07:00
- [hudbars?](http://repo.or.cz/minetest_hudbars.git)
- [player_monoids?](https://github.com/minetest-mods/player_monoids)
- [farming?](https://notabug.org/tenplus1/farming)
2016-06-08 12:05:44 -07:00
2017-04-24 10:55:18 -07:00
**Dependents**
2016-06-08 12:05:44 -07:00
2016-06-08 12:08:13 -07:00
- [minetest_wadsprint_dyspnea](https://github.com/aa6/minetest_wadsprint_dyspnea)
2016-06-08 12:05:44 -07:00
2017-04-24 10:55:18 -07:00
**Development**
2017-01-13 02:13:27 -08:00
2020-07-11 00:38:44 -07:00
- Run `git clone https://github.com/aa6/minetest_wadsprint.git; cd minetest_wadsprint` to clone the repository.
- Run `bash util/git_hook_pre_commit.bash install` after repository cloning. `./VERSION` and `./util/version.png` then will be updated automatically on every commit. To increment minor version append " 2" to `./VERSION` file contents.
- Use `print(dump( ... ))` to print tables to console when debugging.
- Use `error(123)` to stop execution when debugging.
- Remember that array numeration in Lua starts not from `0` but from `1`: `arr = { 123 }; -- arr[0] == nil; arr[1] == 123`.
- Use manual http://dev.minetest.net/Category:Methods
2017-01-13 02:13:27 -08:00
2017-04-24 08:28:37 -07:00
**Changelog**
https://github.com/aa6/minetest_wadsprint/commits/master
**Links**
2017-04-24 10:55:18 -07:00
[Minetest forums topic](https://forum.minetest.net/viewtopic.php?f=11&t=14296)
2017-04-24 10:58:21 -07:00
**Credits**
2016-03-26 11:46:42 -07:00
Thanks to [GunshipPenguin](https://github.com/GunshipPenguin) and his [sprint mod](https://github.com/GunshipPenguin/sprint) for showing a good example of how sprint mod for minetest can be done.