Skip to main content

模仿steam游戏“恶魔轮盘”,目前没有提供开发接口(只能单纯玩)

Project description

Buckshot Roulette 恶魔轮盘赌

版本

  • 1.0

开发环境

  • linux ubuntu 22.04(主要开发环境,负责运行代码等等)
  • apple mac 14.0(主要是使用mac上自带的“预览”来测量图片并使用PIL.Image进行切割、缩放等操作) 其实ubuntu在网上也有测像素的工具,但我懒得找了...... 正好家里有台mac,就选择用mac完成。

改动说明

0.1(上个版本)

  • 使用类初步实现了游戏
  • 可玩性不高

1.0

  • 增加道具
  • 增加两个回合
  • 增加图形界面(pygame)

debuging

  • BUG1 降低在高帧率下的高灵敏度问题
  • BUG2 增加获取屏幕尺寸功能
  • BUG3 兼容windows系统
  • BUG4 IDLE无法自动关闭

程序说明

  • 你可以看到在每个.py文件开头简短的说明

安装方法

在shell(Terminal(Mac/Linux)或cmd(Windows))

python3 -m pip install bulletroulette

或(前者更为保险)

pip3 install bulletroulette

运行方法

启动IDLE(shell输入python)

>>> from bulletroulette.run import run >>> run()

(终止时需在shell上按下^C ^D)

目录结构(在/bulletroulette下)

/ init.py
run.py
data.py
roles.py
sprites.py
assets/ A.png
B.png C.png
.
.
.
X.png
Y.png
Z.png
bgmsc.ogg
blank.wav
.
.
.
(素材若干)

游戏规则

在运行程序后,程序会让您指定游戏模式,建议选择窗口(如果是开发人员请忽略此建议)。

窗口模式

  1. 在选择窗口模式后,会让您设置帧率(建议设置为25以下,见BUG1)。
  2. 设置好帧率后会弹出一个窗口,让您输入名称(鼠标)
  3. 设置好名称后正式进入游戏,游戏分为三轮,每论结束后会弹出 <您的名字> WIN!(第三轮结束后需手动终止(shell按下^C ^D),见BUG4),每一轮有若干发子弹,显示一次子弹为一小轮
  4. 每一轮会先显示子弹(红色为实弹,灰色为空弹),显示后子弹顺序会被打乱
  5. 每一小轮都是玩家先手,用鼠标选择枪后可点击DEALER射击对面,点击自己名字射击自己(左边为您和对面的血量)
  6. 如果您选择射击对面,不管是空弹还是实弹,下一回合都是对面开枪。如果您选择射击自己,如果是实弹下一回合就该对面开枪,如果是空弹,下一回合还是您射击。(如果是实弹会听到“砰!”,如果是空弹会听到“咔...”)

道歉

  • 不好意思,此版本没有提供开发接口,README也写的不多,请见凉!
  • 不好意思,由于之前upload比较匆忙,没来得及改README上的协议,assets目录下还有个临时存放的二维码没有删,请见凉。

问题解决

找不到版本(安装问题)

ERROR: Could not find a version that satisfies the requirement bulletroulette (from versions: none)
ERROR: No matching distribution found for bulletroulette

原因:Python版本小于3.8
解决办法:重装一个Python3.8以上的版本

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bulletroulette-1.0.4.tar.gz (9.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bulletroulette-1.0.4-py3-none-any.whl (9.8 MB view details)

Uploaded Python 3

File details

Details for the file bulletroulette-1.0.4.tar.gz.

File metadata

  • Download URL: bulletroulette-1.0.4.tar.gz
  • Upload date:
  • Size: 9.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for bulletroulette-1.0.4.tar.gz
Algorithm Hash digest
SHA256 51d4d40022a3fda8bffa57d60819cfa0e0abf09672de9aae04f7a8616c8ff308
MD5 2cf6541c329265382f99bdb056c8d144
BLAKE2b-256 21c55c18ba017ea902daa695391fbe7ac42e23ad3e0da3360393d0b786d4e3a0

See more details on using hashes here.

File details

Details for the file bulletroulette-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: bulletroulette-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for bulletroulette-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 06930181bec0bed6c2b983d46320150e02a32995c98451f794e45beb24414d33
MD5 2c239ae8bfed03892444969ca1008602
BLAKE2b-256 105026bfbe3e76e50ed114af8eede625d7fa629aadacf5478c6356ab409b6c1c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page