.. include:: common.txt
Named Colors
============
.. raw:: html
<style>
.aliceblue {background-color: #f0f8ff; color: #f0f8ff;}
.antiquewhite {background-color: #faebd7; color: #faebd7;}
.antiquewhite1 {background-color: #ffefdb; color: #ffefdb;}
.antiquewhite2 {background-color: #eedfcc; color: #eedfcc;}
.antiquewhite3 {background-color: #cdc0b0; color: #cdc0b0;}
.antiquewhite4 {background-color: #8b8378; color: #8b8378;}
.aqua {background-color: #00ffff; color: #00ffff;}
.aquamarine {background-color: #7fffd4; color: #7fffd4;}
.aquamarine1 {background-color: #7fffd4; color: #7fffd4;}
.aquamarine2 {background-color: #76eec6; color: #76eec6;}
.aquamarine3 {background-color: #66cdaa; color: #66cdaa;}
.aquamarine4 {background-color: #458b74; color: #458b74;}
.azure {background-color: #f0ffff; color: #f0ffff;}
.azure1 {background-color: #f0ffff; color: #f0ffff;}
.azure3 {background-color: #c1cdcd; color: #c1cdcd;}
.azure2 {background-color: #e0eeee; color: #e0eeee;}
.azure4 {background-color: #838b8b; color: #838b8b;}
.beige {background-color: #f5f5dc; color: #f5f5dc;}
.bisque {background-color: #ffe4c4; color: #ffe4c4;}
.bisque1 {background-color: #ffe4c4; color: #ffe4c4;}
.bisque2 {background-color: #eed5b7; color: #eed5b7;}
.bisque3 {background-color: #cdb79e; color: #cdb79e;}
.bisque4 {background-color: #8b7d6b; color: #8b7d6b;}
.black {background-color: #000000; color: #000000;}
.blanchedalmond {background-color: #ffebcd; color: #ffebcd;}
.blue {background-color: #0000ff; color: #0000ff;}
.blue1 {background-color: #0000ff; color: #0000ff;}
.blue2 {background-color: #0000ee; color: #0000ee;}
.blue3 {background-color: #0000cd; color: #0000cd;}
.blue4 {background-color: #00008b; color: #00008b;}
.blueviolet {background-color: #8a2be2; color: #8a2be2;}
.brown {background-color: #a52a2a; color: #a52a2a;}
.brown1 {background-color: #ff4040; color: #ff4040;}
.brown2 {background-color: #ee3b3b; color: #ee3b3b;}
.brown3 {background-color: #cd3333; color: #cd3333;}
.brown4 {background-color: #8b2323; color: #8b2323;}
.burlywood {background-color: #deb887; color: #deb887;}
.burlywood1 {background-color: #ffd39b; color: #ffd39b;}
.burlywood2 {background-color: #eec591; color: #eec591;}
.burlywood3 {background-color: #cdaa7d; color: #cdaa7d;}
.burlywood4 {background-color: #8b7355; color: #8b7355;}
.cadetblue {background-color: #5f9ea0; color: #5f9ea0;}
.cadetblue1 {background-color: #98f5ff; color: #98f5ff;}
.cadetblue2 {background-color: #8ee5ee; color: #8ee5ee;}
.cadetblue3 {background-color: #7ac5cd; color: #7ac5cd;}
.cadetblue4 {background-color: #53868b; color: #53868b;}
.chartreuse {background-color: #7fff00; color: #7fff00;}
.chartreuse1 {background-color: #7fff00; color: #7fff00;}
.chartreuse2 {background-color: #76ee00; color: #76ee00;}
.chartreuse3 {background-color: #66cd00; color: #66cd00;}
.chartreuse4 {background-color: #458b00; color: #458b00;}
.chocolate {background-color: #d2691e; color: #d2691e;}
.chocolate1 {background-color: #ff7f24; color: #ff7f24;}
.chocolate2 {background-color: #ee7621; color: #ee7621;}
.chocolate3 {background-color: #cd661d; color: #cd661d;}
.chocolate4 {background-color: #8b4513; color: #8b4513;}
.coral {background-color: #ff7f50; color: #ff7f50;}
.coral1 {background-color: #ff7256; color: #ff7256;}
.coral2 {background-color: #ee6a50; color: #ee6a50;}
.coral3 {background-color: #cd5b45; color: #cd5b45;}
.coral4 {background-color: #8b3e2f; color: #8b3e2f;}
.cornflowerblue {background-color: #6495ed; color: #6495ed;}
.cornsilk {background-color: #fff8dc; color: #fff8dc;}
.cornsilk1 {background-color: #fff8dc; color: #fff8dc;}
.cornsilk2 {background-color: #eee8cd; color: #eee8cd;}
.cornsilk3 {background-color: #cdc8b1; color: #cdc8b1;}
.cornsilk4 {background-color: #8b8878; color: #8b8878;}
.crimson {background-color: #dc143c; color: #dc143c;}
.cyan {background-color: #00ffff; color: #00ffff;}
.cyan1 {background-color: #00ffff; color: #00ffff;}
.cyan2 {background-color: #00eeee; color: #00eeee;}
.cyan3 {background-color: #00cdcd; color: #00cdcd;}
.cyan4 {background-color: #008b8b; color: #008b8b;}
.darkblue {background-color: #00008b; color: #00008b;}
.darkcyan {background-color: #008b8b; color: #008b8b;}
.darkgoldenrod {background-color: #b8860b; color: #b8860b;}
.darkgoldenrod1 {background-color: #ffb90f; color: #ffb90f;}
.darkgoldenrod2 {background-color: #eead0e; color: #eead0e;}
.darkgoldenrod3 {background-color: #cd950c; color: #cd950c;}
.darkgoldenrod4 {background-color: #8b6508; color: #8b6508;}
.darkgray {background-color: #a9a9a9; color: #a9a9a9;}
.darkgreen {background-color: #006400; color: #006400;}
.darkgrey {background-color: #a9a9a9; color: #a9a9a9;}
.darkkhaki {background-color: #bdb76b; color: #bdb76b;}
.darkmagenta {background-color: #8b008b; color: #8b008b;}
.darkolivegreen {background-color: #556b2f; color: #556b2f;}
.darkolivegreen1 {background-color: #caff70; color: #caff70;}
.darkolivegreen2 {background-color: #bcee68; color: #bcee68;}
.darkolivegreen3 {background-color: #a2cd5a; color: #a2cd5a;}
.darkolivegreen4 {background-color: #6e8b3d; color: #6e8b3d;}
.darkorange {background-color: #ff8c00; color: #ff8c00;}
.darkorange1 {background-color: #ff7f00; color: #ff7f00;}
.darkorange2 {background-color: #ee7600; color: #ee7600;}
.darkorange3 {background-color: #cd6600; color: #cd6600;}
.darkorange4 {background-color: #8b4500; color: #8b4500;}
.darkorchid {background-color: #9932cc; color: #9932cc;}
.darkorchid1 {background-color: #bf3eff; color: #bf3eff;}
.darkorchid2 {background-color: #b23aee; color: #b23aee;}
.darkorchid3 {background-color: #9a32cd; color: #9a32cd;}
.darkorchid4 {background-color: #68228b; color: #68228b;}
.darkred {background-color: #8b0000; color: #8b0000;}
.darksalmon {background-color: #e9967a; color: #e9967a;}
.darkseagreen {background-color: #8fbc8f; color: #8fbc8f;}
.darkseagreen1 {background-color: #c1ffc1; color: #c1ffc1;}
.darkseagreen2 {background-color: #b4eeb4; color: #b4eeb4;}
.darkseagreen3 {background-color: #9bcd9b; color: #9bcd9b;}
.darkseagreen4 {background-color: #698b69; color: #698b69;}
.darkslateblue {background-color: #483d8b; color: #483d8b;}
.darkslategray {background-color: #2f4f4f; color: #2f4f4f;}
.darkslategray1 {background-color: #97ffff; color: #97ffff;}
.darkslategray2 {background-color: #8deeee; color: #8deeee;}
.darkslategray3 {background-color: #79cdcd; color: #79cdcd;}
.darkslategray4 {background-color: #528b8b; color: #528b8b;}
.darkslategrey {background-color: #2f4f4f; color: #2f4f4f;}
.darkturquoise {background-color: #00ced1; color: #00ced1;}
.darkviolet {background-color: #9400d3; color: #9400d3;}
.deeppink {background-color: #ff1493; color: #ff1493;}
.deeppink1 {background-color: #ff1493; color: #ff1493;}
.deeppink2 {background-color: #ee1289; color: #ee1289;}
.deeppink3 {background-color: #cd1076; color: #cd1076;}
.deeppink4 {background-color: #8b0a50; color: #8b0a50;}
.deepskyblue {background-color: #00bfff; color: #00bfff;}
.deepskyblue1 {background-color: #00bfff; color: #00bfff;}
.deepskyblue2 {background-color: #00b2ee; color: #00b2ee;}
.deepskyblue3 {background-color: #009acd; color: #009acd;}
.deepskyblue4 {background-color: #00688b; color: #00688b;}
.dimgray {background-color: #696969; color: #696969;}
.dimgrey {background-color: #696969; color: #696969;}
.dodgerblue {background-color: #1e90ff; color: #1e90ff;}
.dodgerblue1 {background-color: #1e90ff; color: #1e90ff;}
.dodgerblue2 {background-color: #1c86ee
pygame游戏制作坦克大战python
需积分: 0 16 浏览量
更新于2023-06-15
收藏 25.82MB RAR 举报
《坦克大战》是由 Namco 游戏公司开发的一款平面射击游戏,于 1985 年发售。游戏以 坦克战斗及保卫基地为主题,属于策略型联机类。同时也是 FC 平台上少有的内建关卡编辑 器的几个游戏之一,玩家可自己创建独特的关卡,并通过获取一些道具使坦克和基地得到强 化。它看似简单但变化无穷,令人上瘾。
本节将介绍使用“Python+Pygame”开发一个简单 坦克大战游戏的方法,并详细介绍其具体的实现流程。
主要功能
开始游戏=》
选择单人or双人
结束游戏
坦克类(包含我方坦克,敌方坦克)
移动
射击
子弹类
移动
爆炸类
4.1.子弹打到敌法坦克时,显示爆炸
5. 障碍物类
6.音效类
6.1.播放bgm
本游戏主要分为两个对象,分别是我方坦克和敌方坦克。用户可以通过控制我方的坦克 来摧毁敌方的坦克保护自己的“家”,把所有的敌方坦克消灭完达到胜利。敌方的坦克在初始的时候是默认 5 个的(这可以自己设置),当然,如果我方坦克被敌方坦克的子弹打中, 游戏结束。
第欧根尼的酒桶
- 粉丝: 2175
- 资源: 5
最新资源
- 快速定制中国传统节日头像(源码)
- hcia 复习内容的实验
- 准Z源光伏并网系统MATLAB仿真模型,采用了三次谐波注入法SPWM调制,具有更高的电压利用效率 并网部分采用了电压外环电流内环 电池部分采用了扰动观察法,PO Z源并网和逆变器研究方向的同学可
- 海面目标检测跟踪数据集.zip
- 欧美风格, 节日主题模板
- 西门子1200和三菱FXU通讯程序
- 11种概率分布的拟合与ks检验,可用于概率分析,可靠度计算等领域 案例中提供11种概率分布,具体包括:gev、logistic、gaussian、tLocationScale、Rayleigh、Log
- 机械手自动排列控制PLC与触摸屏程序设计
- uDDS源程序publisher
- 中国风格, 节日 主题, PPT模板