https://github.com/t-k-233/synthetic-watermelon-with-joystick
https://github.com/t-k-233/synthetic-watermelon-with-joystick
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/t-k-233/synthetic-watermelon-with-joystick
- Owner: T-K-233
- Created: 2021-02-20T12:25:21.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-20T12:26:12.000Z (over 4 years ago)
- Last Synced: 2025-02-12T14:56:45.751Z (8 months ago)
- Language: JavaScript
- Size: 2.05 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Synthetic Watermelon with Joystick
合成大西瓜街机版
## Usage | 使用方法
0. Make sure Python and pynput is installed. pynput can be installed with `py -m pip install pynput`. | 确保 Python 和 pynput 已经安装. pynput 可以由 pip 安装.
1. Plug in a joystick. | 将手柄连接电脑.
2. Run `watermelon.py`. | 用 Python 运行 `watermelon.py`.
3. Open the Synthetic Watermelon game in browser. A local copy can be opened in the `.\daxigua-master\` folder. | 在浏览器中打开合成大西瓜. 一个游戏拷贝版本附在 `.\daxigua-master\` 文件夹中.
4. X-axis on the joystick is used to control the left / right movement of the cursor, and the first button (index 0) is used to grab / release the fruit. | 手柄的 x 摇杆控制鼠标光标的水平移动,手柄的第一个按钮 (索引值为 0) 控制水果的抓取和释放.
## Credit | 引用 & 致谢
liyupi [daxigua 魔改发布](https://github.com/liyupi/daxigua)
Rabbid76 [python_windows_joystickapi](https://github.com/Rabbid76/python_windows_joystickapi)