Skip to main content

模仿steam游戏“恶魔轮盘”

Project description

Buckshot Roulette 恶魔轮盘赌

版本

  • 1.0.6

开发环境

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

改动说明

0.1(上个版本)

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

1.0

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

debuging

  • BUG1 降低在高帧率下的高灵敏度问题
  • BUG2 增加获取屏幕尺寸功能

程序说明

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

安装方法

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

python3 -m pip install bulletroulette

或(前者更为保险)

pip3 install bulletroulette

运行方法

启动IDLE(shell输入python)

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

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

问题解决

找不到版本(安装问题)

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.6.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.6-py3-none-any.whl (9.8 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bulletroulette-1.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 cc4d5550464ddbed5b3de56444a68794ed7c22b48c8bb3d5e0943de99b502463
MD5 168dfc497bcff6a964d3bfaa9e261786
BLAKE2b-256 d2ba3b415892a137496740eea2f5e813ac367ef742773eeb21ef4d7fd67c45c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bulletroulette-1.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1f87390d1b393ff74506dc39922d734cada7b9f17a24f726a7fb9cf292f850d5
MD5 fe833c60ae50c3473eed2028db96fffa
BLAKE2b-256 ce379f3ccb8be41c85321c82880f57ea49a8f873ed581288cb0aa2351a5e2f8b

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