An open API service indexing awesome lists of open source software.

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

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)