Compare commits
23 Commits
Plane_Figh
...
main
Author | SHA1 | Date | |
---|---|---|---|
2906abea34 | |||
2b3c138a5b | |||
06204af73e | |||
ce79670ff2 | |||
9171ad584a | |||
bbf3a4eb6a | |||
608675e567 | |||
7730f31440 | |||
25855f159e | |||
dcfde2d431 | |||
fb9ae22547 | |||
8b3042a340 | |||
12c8284767 | |||
b589e17486 | |||
5d28dd21b1 | |||
44600ecbb1 | |||
ff8c32bbff | |||
43a9720e0c | |||
2ea401ff66 | |||
3152d3827e | |||
12323eec28 | |||
a364ed7a78 | |||
9cfd26e75f |
13
.gitignore
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# Ignore "ignore" & "tmp" folder
|
||||||
|
ignore
|
||||||
|
tmp
|
||||||
|
# Package
|
||||||
|
*.deb
|
||||||
|
*.rpm
|
||||||
|
*.zst
|
||||||
|
*.exe
|
||||||
|
*.out
|
||||||
|
# Log File
|
||||||
|
*.log
|
||||||
|
# Rickroll File
|
||||||
|
*.rickroll
|
@ -1,6 +0,0 @@
|
|||||||
# Plane Fighting
|
|
||||||
## 一个跨平台的简易"飞机大战"程序
|
|
||||||
## 基于 Python & PyGame 运行
|
|
||||||
## 图标库来自 IconFont
|
|
||||||
## 相应的版权归作者所有
|
|
||||||
## 本目录中其他所有的文件根据 GPL 3.0 协议开源
|
|
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 99 B |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 9.6 KiB |
Before Width: | Height: | Size: 27 KiB |
@ -1 +0,0 @@
|
|||||||
0
|
|
22
README.md
@ -1,2 +1,20 @@
|
|||||||
# 我的一些分散的代码文件
|
# Tiny Project
|
||||||
# 主要用于通过 GitPod 在线编译
|
## 说明
|
||||||
|
分散的代码文件
|
||||||
|
一个文件夹代表一个小的代码集合
|
||||||
|
不同文件所使用的开源协议不同
|
||||||
|
有些工具虽然很小, 但却十分有用
|
||||||
|
## 列表
|
||||||
|
### 单目录 (root)
|
||||||
|
|名称|路径|介绍|语言|
|
||||||
|
|:---|:---|----|----|
|
||||||
|
|LAN++|./lanpp|一个跨平台的简易局域网文件传输工具|Python|
|
||||||
|
|Plane Fighting|./plane_fighting|一个跨平台的简易"飞机大战"小游戏|Python|
|
||||||
|
|Python HTTPS Server|./python_https_server|一个 HTTPS 网络服务器程序|Python|
|
||||||
|
|Juan|./juan|获取 http://www.zxx.edu.cn 的公开的用户学习数据并制作成图表, 看看人们有多卷|Python|
|
||||||
|
### 单文件 (onefile)
|
||||||
|
|文件名|介绍|语言|
|
||||||
|
|----|----|----|
|
||||||
|
|file_reader.cpp|输出文件内容至终端|C++|
|
||||||
|
|pause.cpp|按任意键继续|C++|
|
||||||
|
|fastmaillib.py|开箱即用的 Python 邮件封装|Python|
|
||||||
|
44
juan/creater.py
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
from playwright.sync_api import Playwright, sync_playwright, expect
|
||||||
|
import bs4, time, datetime
|
||||||
|
|
||||||
|
def addtofile(path, data):
|
||||||
|
with open(path, 'a', encoding='UTF-8') as f:
|
||||||
|
f.write(data)
|
||||||
|
f.close()
|
||||||
|
|
||||||
|
def access(playwright: Playwright) -> None:
|
||||||
|
browser = playwright.chromium.launch(headless=True)
|
||||||
|
context = browser.new_context()
|
||||||
|
# Open new page
|
||||||
|
while True:
|
||||||
|
print("Exploring")
|
||||||
|
page = context.new_page()
|
||||||
|
# Go to https://www.zxx.edu.cn/
|
||||||
|
page.goto("https://www.zxx.edu.cn/")
|
||||||
|
page.wait_for_load_state('networkidle')
|
||||||
|
html = page.content()
|
||||||
|
# Close page
|
||||||
|
page.close()
|
||||||
|
# ---------------------
|
||||||
|
context.close()
|
||||||
|
browser.close()
|
||||||
|
soup = bs4.BeautifulSoup(html, 'html.parser')
|
||||||
|
text = soup.text
|
||||||
|
p_f = text.index("做眼保健操今天已有")
|
||||||
|
p_e = text.index("人与你一起学习")
|
||||||
|
t_f = text.index("你们共浏览了")
|
||||||
|
t_e = text.index("次。主办")
|
||||||
|
person = text[p_f+9:p_e]
|
||||||
|
person = int(person.replace(",",""))
|
||||||
|
times = text[t_f+6:t_e]
|
||||||
|
times = int(times.replace(",",""))
|
||||||
|
print("Person: " + str(person))
|
||||||
|
print("Times: " + str(times))
|
||||||
|
total = [person, times, datetime.datetime.now().strftime('%Y-%m-%d')]
|
||||||
|
addtofile("data.txt",str(total) + "\n")
|
||||||
|
print("Data added completed")
|
||||||
|
time.sleep(300)
|
||||||
|
|
||||||
|
|
||||||
|
with sync_playwright() as playwright:
|
||||||
|
access(playwright)
|
1
juan/data.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
[22821, 105404, '2022-04-20']
|
0
juan/geckodriver.log
Normal file
10
juan/reader.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import numpy as np
|
||||||
|
import matplotlib.pyplot as plt
|
||||||
|
f = open("data.txt", "r")
|
||||||
|
a = 0
|
||||||
|
while a == 0:
|
||||||
|
f.readline
|
||||||
|
x = np.linspace(10., 100., 50)
|
||||||
|
y = x**10 + x**5 + x**2 + 100
|
||||||
|
plt.plot(x, y)
|
||||||
|
plt.show()
|
10
lanpp/README.md
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# LAN++ (lanpp)
|
||||||
|
## 简介
|
||||||
|
一个跨平台的简易局域网文件传输工具
|
||||||
|
## 支持
|
||||||
|
基于 Python 语言编写
|
||||||
|
底层依赖库: pyperclip & pyftpdlib
|
||||||
|
UI 基于 Tkinter, 准备改写成 KivyMD
|
||||||
|
将来可通过 Buildozer 打包为移动应用
|
||||||
|
## 协议
|
||||||
|
本目录中所有的源代码文件根据 GPL 3.0 协议开源
|
21
lanpp/ftpserver.py
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from pyftpdlib.handlers import FTPHandler
|
||||||
|
from pyftpdlib.servers import FTPServer
|
||||||
|
from pyftpdlib.authorizers import DummyAuthorizer
|
||||||
|
import json
|
||||||
|
def jsonget(key_name):
|
||||||
|
with open("setting.json") as f:
|
||||||
|
json_data = f.read()
|
||||||
|
data = json.loads(json_data)
|
||||||
|
f.close()
|
||||||
|
return data[key_name]
|
||||||
|
def start():
|
||||||
|
authorizer = DummyAuthorizer()
|
||||||
|
authorizer.add_user(jsonget("ftpserveruser"), jsonget("ftpserverpass"), jsonget("ftpserverroot"), perm='elradfmwM')
|
||||||
|
handler = FTPHandler
|
||||||
|
handler.authorizer = authorizer
|
||||||
|
server = FTPServer(('localhost', int(jsonget("ftpserverport"))), handler)
|
||||||
|
server.serve_forever()
|
||||||
|
if __name__ == '__main__':
|
||||||
|
start()
|
142
lanpp/main-gui.py
Normal file
@ -0,0 +1,142 @@
|
|||||||
|
import pyperclip
|
||||||
|
import ftpserver
|
||||||
|
import os
|
||||||
|
import json
|
||||||
|
import sys
|
||||||
|
import socket
|
||||||
|
import webserver
|
||||||
|
import webbrowser
|
||||||
|
from tkinter import *
|
||||||
|
from tkinter import messagebox
|
||||||
|
from ttkthemes import *
|
||||||
|
from tkinter.ttk import *
|
||||||
|
from multiprocessing import Process
|
||||||
|
|
||||||
|
def getip():
|
||||||
|
try:
|
||||||
|
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||||
|
s.connect(('192.168.1.1', 0))
|
||||||
|
ip = s.getsockname()[0]
|
||||||
|
except:
|
||||||
|
ip = "localhost"
|
||||||
|
finally:
|
||||||
|
s.close()
|
||||||
|
return ip
|
||||||
|
def jsonget(key_name):
|
||||||
|
with open("setting.json") as f:
|
||||||
|
json_data = f.read()
|
||||||
|
data = json.loads(json_data)
|
||||||
|
f.close()
|
||||||
|
return data[key_name]
|
||||||
|
def webserver_ui():
|
||||||
|
if True :
|
||||||
|
#webserverui_status = 1
|
||||||
|
subwindow = ThemedTk(theme="yaru", toplevel=True, themebg=True)
|
||||||
|
subwindow.title("WebServer | LAN++ Manager")
|
||||||
|
subwindow.geometry("850x500")
|
||||||
|
os.chdir(static_path)
|
||||||
|
task = Process(target=webserver.start)
|
||||||
|
def start():
|
||||||
|
task.start()
|
||||||
|
print("started")
|
||||||
|
def __close__():
|
||||||
|
task.terminate()
|
||||||
|
os.chdir(static_path)
|
||||||
|
print("closed")
|
||||||
|
def close():
|
||||||
|
if task.is_alive() == False:
|
||||||
|
start()
|
||||||
|
__close__()
|
||||||
|
os.chdir(static_path)
|
||||||
|
subwindow.destroy()
|
||||||
|
def copylink():
|
||||||
|
pyperclip.copy("http://" + str(getip()) + ":" + jsonget("webserverport"))
|
||||||
|
ntext = " 点击按钮以控制[浏览器文件管理服务]\n [启动] - 启动服务\n [关闭窗口并退出] - 退出窗口(退出服务)\n [复制访问链接] - 复制链接以便访问服务" + '当前配置:\n 端口:' + jsonget("ftpserverport") + "\n 目录: " + jsonget("webserverroot") + "\n 打开服务后请用浏览器打开此链接以操作文件: [http://" + str(getip()) + ":" + jsonget("webserverport") + "]\n"
|
||||||
|
lbl1 = Label(subwindow, text=ntext)
|
||||||
|
lbl1.grid(column=1, row=1)
|
||||||
|
wtext = " 已知Bug:终止服务后,端口仍会占用一段时间,建议终止服务后一分钟后重新启动服务\n 注意:在不了解此程序文档时请勿打开多个相同服务,如需要,可在Wiki的[特技]一栏中找到方法."
|
||||||
|
lbl2 = Label(subwindow, text=wtext)
|
||||||
|
lbl2.grid(column=1, row=2)
|
||||||
|
start_btn = Button(subwindow, text="启动", command=start)
|
||||||
|
start_btn.grid(column=1, row=3)
|
||||||
|
close_btn = Button(subwindow, text="关闭窗口并退出", command=close)
|
||||||
|
close_btn.grid(column=1, row=4)
|
||||||
|
copy_btn = Button(subwindow, text="复制访问链接", command=copylink)
|
||||||
|
copy_btn.grid(column=1, row=5)
|
||||||
|
subwindow.protocol("WM_DELETE_WINDOW", close)
|
||||||
|
subwindow.mainloop()
|
||||||
|
def ftpserver_ui():
|
||||||
|
if True :
|
||||||
|
#webserverui_status = 1
|
||||||
|
subwindow = ThemedTk(theme="yaru", toplevel=True, themebg=True)
|
||||||
|
subwindow.title("FTPServer | LAN++ Manager")
|
||||||
|
subwindow.geometry("850x500")
|
||||||
|
os.chdir(static_path)
|
||||||
|
task = Process(target=ftpserver.start)
|
||||||
|
def start():
|
||||||
|
task.start()
|
||||||
|
print("started")
|
||||||
|
def __close__():
|
||||||
|
task.terminate()
|
||||||
|
os.chdir(static_path)
|
||||||
|
print("closed")
|
||||||
|
def close():
|
||||||
|
if task.is_alive() == False:
|
||||||
|
start()
|
||||||
|
__close__()
|
||||||
|
os.chdir(static_path)
|
||||||
|
subwindow.destroy()
|
||||||
|
def copylink():
|
||||||
|
pyperclip.copy("ftp://" + jsonget("ftpserveruser") + "@" + str(getip()) + ":" + jsonget("ftpserverport"))
|
||||||
|
ntext = " 点击按钮以控制[FTP文件传输服务]\n [启动] - 启动服务\n [关闭窗口并退出] - 退出窗口(退出服务)\n [复制访问链接] - 复制链接以便访问服务" + '当前配置:\n 端口:' + jsonget("ftpserverport") + "\n 目录: " + jsonget("ftpserverroot") + "\n 用户名:" + jsonget("ftpserveruser") + "\n 密码:" + jsonget("ftpserverpass") + "\n 打开服务后请通过此链接连接FTP服务器: [ftp://" + jsonget("ftpserveruser") + "@" + str(getip()) + ":" + jsonget("ftpserverport") + "]"
|
||||||
|
lbl1 = Label(subwindow, text=ntext)
|
||||||
|
lbl1.grid(column=1, row=1)
|
||||||
|
wtext = " 已知Bug:终止服务后,端口仍会占用一段时间,建议终止服务后一分钟后重新启动服务\n 注意:在不了解此程序文档时请勿打开多个相同服务,如需要,可在Wiki的[特技]一栏中找到方法."
|
||||||
|
lbl2 = Label(subwindow, text=wtext)
|
||||||
|
lbl2.grid(column=1, row=2)
|
||||||
|
start_btn = Button(subwindow, text="启动", command=start)
|
||||||
|
start_btn.grid(column=1, row=3)
|
||||||
|
close_btn = Button(subwindow, text="关闭窗口并退出", command=close)
|
||||||
|
close_btn.grid(column=1, row=4)
|
||||||
|
copy_btn = Button(subwindow, text="复制访问链接", command=copylink)
|
||||||
|
copy_btn.grid(column=1, row=5)
|
||||||
|
subwindow.protocol("WM_DELETE_WINDOW", close)
|
||||||
|
subwindow.mainloop()
|
||||||
|
def setting_ui():
|
||||||
|
pass
|
||||||
|
def runexit():
|
||||||
|
sys.exit()
|
||||||
|
def about_ui():
|
||||||
|
def visit():
|
||||||
|
webbrowser.open("http://github.com/david-ajax/LANPP", new=0)
|
||||||
|
subwindow = ThemedTk(theme="yaru", toplevel=True, themebg=True)
|
||||||
|
subwindow.title("About | LAN++")
|
||||||
|
subwindow.geometry("470x270")
|
||||||
|
ntext = " LAN++ -- A powerful tool for local area network \n Version: 1.0 (Beta) \n Repo: http://github.com/david-ajax/LANpp \n Powered By Wang Zhiyu \n Use GPL 3.0 License"
|
||||||
|
lbl1 = Label(subwindow, text=ntext)
|
||||||
|
lbl1.grid(column=1, row=1)
|
||||||
|
visit_btn = Button(subwindow, text="Visit The Repository", command=visit)
|
||||||
|
visit_btn.grid(column=1, row=2)
|
||||||
|
exit_btn = Button(subwindow, text="Exit", command=subwindow.destroy)
|
||||||
|
exit_btn.grid(column=1, row=3)
|
||||||
|
def main():
|
||||||
|
window = ThemedTk(theme="yaru", toplevel=True, themebg=True)
|
||||||
|
window.title("LAN++ Manager")
|
||||||
|
window.geometry("800x200")
|
||||||
|
webserver = Button(window, text="浏览器文件管理服务", command=webserver_ui)
|
||||||
|
webserver.grid(column=0, row=2)
|
||||||
|
ftpserver = Button(window, text="FTP文件传输服务", command=ftpserver_ui)
|
||||||
|
ftpserver.grid(column=1, row=2)
|
||||||
|
setting = Button(window, text="设置", command=setting_ui)
|
||||||
|
setting.grid(column=2, row=2)
|
||||||
|
about = Button(window, text="关于", command=about_ui)
|
||||||
|
about.grid(column=3, row=2)
|
||||||
|
exit_btn = Button(window, text="退出", command=runexit)
|
||||||
|
exit_btn.grid(column=4, row=2)
|
||||||
|
window.mainloop()
|
||||||
|
if __name__ == '__main__':
|
||||||
|
static_path = os.getcwd()
|
||||||
|
fw=Tk()
|
||||||
|
fw.withdraw()
|
||||||
|
messagebox.showinfo(title='Welcome',message='欢迎使用LAN++ Beta Edition')
|
||||||
|
main()
|
9
lanpp/setting.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"webserverport": "8083",
|
||||||
|
"webserverroot": "/",
|
||||||
|
"ftpserverport": "8082",
|
||||||
|
"ftpserverroot": "/",
|
||||||
|
"ftpserveruser": "default",
|
||||||
|
"ftpserverpass": "000000",
|
||||||
|
"A Prompt For You": "Unless the program is not available,DO NOT EDIT THIS FILE"
|
||||||
|
}
|
326
lanpp/webserver.py
Normal file
9
onefile/README.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# 单文件 (onefile)
|
||||||
|
## 简介
|
||||||
|
单文件小程序
|
||||||
|
## 支持
|
||||||
|
每个文件都是一个不同的程序
|
||||||
|
请分别根据注释运行
|
||||||
|
## 协议
|
||||||
|
详见文件内部注释
|
||||||
|
如无注释, 根据 MIT 协议开源
|
103
onefile/fastmaillib.py
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
# fastmaillib.py
|
||||||
|
# LICENSE: MIT
|
||||||
|
# VERSION: v0.2.1
|
||||||
|
"""
|
||||||
|
说明:
|
||||||
|
更加方便地使用 Python 收邮件
|
||||||
|
部分基于 Liao Xuefeng 的代码, 并进行了封装操作
|
||||||
|
此代码为 Python 3.x 而设计, 但理论上兼容 Python 2.x(2.7)
|
||||||
|
"""
|
||||||
|
"""
|
||||||
|
日志:
|
||||||
|
v0.2.3:
|
||||||
|
修复 Get.get 函数中 num 参数不可用问题
|
||||||
|
"""
|
||||||
|
|
||||||
|
import email, smtplib
|
||||||
|
from email.mime.text import MIMEText
|
||||||
|
from email.parser import Parser
|
||||||
|
import poplib
|
||||||
|
from email.header import decode_header
|
||||||
|
from email.utils import parseaddr
|
||||||
|
|
||||||
|
class Get:
|
||||||
|
def connect(mail, user, password, pop3_host):
|
||||||
|
"""Connect to mail server"""
|
||||||
|
try:
|
||||||
|
obj = poplib.POP3_SSL(pop3_host)
|
||||||
|
obj.user(user)
|
||||||
|
obj.pass_(password)
|
||||||
|
return obj
|
||||||
|
except Exception as e:
|
||||||
|
return e
|
||||||
|
def num(obj):
|
||||||
|
"""Get the number of messages on hand"""
|
||||||
|
try:
|
||||||
|
resp, mails, octets = obj.list()
|
||||||
|
return len(mails)
|
||||||
|
except Exception as e:
|
||||||
|
return e
|
||||||
|
def get(obj, num):
|
||||||
|
"""Get mail's content"""
|
||||||
|
try:
|
||||||
|
resp, mails, octets = obj.list()
|
||||||
|
index = len(mails)
|
||||||
|
resp, lines, octets = obj.retr(num)
|
||||||
|
message_content = b'\r\n'.join(lines).decode('utf-8')
|
||||||
|
message = Parser().parsestr(message_content)
|
||||||
|
info = Get.print_info(message)
|
||||||
|
return info
|
||||||
|
except Exception as e:
|
||||||
|
return e
|
||||||
|
def quit(obj):
|
||||||
|
"""Break connection"""
|
||||||
|
try:
|
||||||
|
obj.quit()
|
||||||
|
return True
|
||||||
|
except Exception as e:
|
||||||
|
return e
|
||||||
|
def print_info(msg, indent=0):
|
||||||
|
"""Convert mail object to content"""
|
||||||
|
total = {}
|
||||||
|
if indent == 0:
|
||||||
|
for header in ['From', 'To', 'Subject']:
|
||||||
|
value = msg.get(header, '')
|
||||||
|
if value:
|
||||||
|
if header == 'Subject':
|
||||||
|
value = Get.decode_str(value)
|
||||||
|
total["subject"] = value
|
||||||
|
else:
|
||||||
|
hdr, addr = parseaddr(value)
|
||||||
|
name = Get.decode_str(hdr)
|
||||||
|
value = u'%s <%s>' % (name, addr)
|
||||||
|
if not("name" in total):
|
||||||
|
total["name"] = name
|
||||||
|
total["addr"] = addr
|
||||||
|
if msg.is_multipart():
|
||||||
|
parts = msg.get_payload()
|
||||||
|
for n, part in enumerate(parts):
|
||||||
|
total["message"] = part
|
||||||
|
# print_info(part, indent + 1)
|
||||||
|
else:
|
||||||
|
content_type = msg.get_content_type()
|
||||||
|
if content_type == 'text/plain' or content_type == 'text/html':
|
||||||
|
content = msg.get_payload(decode=True)
|
||||||
|
charset = guess_charset(msg)
|
||||||
|
if charset:
|
||||||
|
content = content.decode(charset)
|
||||||
|
return total
|
||||||
|
def decode_str(s):
|
||||||
|
"""Decode mail objects"""
|
||||||
|
value, charset = decode_header(s)[0]
|
||||||
|
if charset:
|
||||||
|
value = value.decode(charset)
|
||||||
|
return value
|
||||||
|
def guess_charset(msg):
|
||||||
|
"""Guess charset"""
|
||||||
|
charset = msg.get_charset()
|
||||||
|
if charset is None:
|
||||||
|
content_type = msg.get('Content-Type', '').lower()
|
||||||
|
pos = content_type.find('charset=')
|
||||||
|
if pos >= 0:
|
||||||
|
charset = content_type[pos + 8:].strip()
|
||||||
|
return charset
|
30
onefile/file_reader.cpp
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
// file_reader.cpp
|
||||||
|
// LICENSE: Nothing(do what ever you want!)
|
||||||
|
#include <iostream>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main(int argc, char *argv[]){
|
||||||
|
fstream config;
|
||||||
|
config.open(argv[1], ios::in);
|
||||||
|
if(config){
|
||||||
|
cout << "Reading Data" << endl;
|
||||||
|
vector<string> data;
|
||||||
|
string tmp;
|
||||||
|
while(getline(config,tmp)){
|
||||||
|
data.push_back(tmp);
|
||||||
|
}
|
||||||
|
cout << "Redirect to terminal:" << endl;
|
||||||
|
for(int i = 0;i < data.size();i++){
|
||||||
|
cout << data[i] << endl;
|
||||||
|
}
|
||||||
|
config.close();
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
cout << "File NOT Found" << endl;
|
||||||
|
}
|
||||||
|
cout << "Press any key to Continue...";
|
||||||
|
cin.clear();
|
||||||
|
cin.sync();
|
||||||
|
cin.get();
|
||||||
|
return 0;
|
||||||
|
}
|
12
onefile/pause.cpp
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
// pause.cpp
|
||||||
|
// LICENSE: Nothing(do what ever you want!)
|
||||||
|
#include <bits/stdc++.h>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main(){
|
||||||
|
cout << "Press any key to continue...";
|
||||||
|
cin.clear();
|
||||||
|
cin.sync();
|
||||||
|
cin.get();
|
||||||
|
return 0;
|
||||||
|
}
|
13
plane_fighting/README.md
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# Plane Fighting (plane_fighting)
|
||||||
|
|
||||||
|
## 简介
|
||||||
|
一个跨平台的简易"飞机大战"小游戏
|
||||||
|
## 支持
|
||||||
|
基于 Python & PyGame 运行
|
||||||
|
可通过 Buildozer 打包为移动应用
|
||||||
|
## 协议
|
||||||
|
图标库(./images/)来自 IconFont
|
||||||
|
音效库(./sound/)来自网络
|
||||||
|
字体库(./font)来自 Ubuntu
|
||||||
|
相应的版权归作者所有
|
||||||
|
本目录中其他所有的源代码文件根据 MIT 协议开源
|
10
Plane_Fighting/buildozer.spec → plane_fighting/buildozer.spec
Executable file → Normal file
@ -16,7 +16,7 @@ source.dir = .
|
|||||||
source.include_exts = py,png,ogg,wav,ttf,dat
|
source.include_exts = py,png,ogg,wav,ttf,dat
|
||||||
|
|
||||||
# (list) List of inclusions using pattern matching
|
# (list) List of inclusions using pattern matching
|
||||||
#source.include_patterns = assets/*,images/*.png
|
source.include_patterns = font/*,sound/*,images/*,record.dat
|
||||||
|
|
||||||
# (list) Source files to exclude (let empty to not exclude anything)
|
# (list) Source files to exclude (let empty to not exclude anything)
|
||||||
#source.exclude_exts = spec
|
#source.exclude_exts = spec
|
||||||
@ -29,7 +29,7 @@ source.include_exts = py,png,ogg,wav,ttf,dat
|
|||||||
#source.exclude_patterns = license,images/*/*.jpg
|
#source.exclude_patterns = license,images/*/*.jpg
|
||||||
|
|
||||||
# (str) Application versioning (method 1)
|
# (str) Application versioning (method 1)
|
||||||
version = 0.1
|
version = 0.4.0
|
||||||
|
|
||||||
# (str) Application versioning (method 2)
|
# (str) Application versioning (method 2)
|
||||||
# version.regex = __version__ = ['"](.*)['"]
|
# version.regex = __version__ = ['"](.*)['"]
|
||||||
@ -44,7 +44,7 @@ requirements = python3,pygame
|
|||||||
# requirements.source.kivy = ../../kivy
|
# requirements.source.kivy = ../../kivy
|
||||||
|
|
||||||
# (str) Presplash of the application
|
# (str) Presplash of the application
|
||||||
#presplash.filename = %(source.dir)s/data/presplash.png
|
presplash.filename = %(source.dir)s/images/loading.png
|
||||||
|
|
||||||
# (str) Icon of the application
|
# (str) Icon of the application
|
||||||
icon.filename = %(source.dir)s/images/icon.png
|
icon.filename = %(source.dir)s/images/icon.png
|
||||||
@ -73,7 +73,7 @@ osx.kivy_version = 1.9.1
|
|||||||
#
|
#
|
||||||
|
|
||||||
# (bool) Indicate if the application should be fullscreen or not
|
# (bool) Indicate if the application should be fullscreen or not
|
||||||
fullscreen = 0
|
fullscreen = 1
|
||||||
|
|
||||||
# (string) Presplash background color (for android toolchain)
|
# (string) Presplash background color (for android toolchain)
|
||||||
# Supported formats are: #RRGGBB #AARRGGBB or one of the following names:
|
# Supported formats are: #RRGGBB #AARRGGBB or one of the following names:
|
||||||
@ -134,7 +134,7 @@ fullscreen = 0
|
|||||||
# agreements. This is intended for automation only. If set to False,
|
# agreements. This is intended for automation only. If set to False,
|
||||||
# the default, you will be shown the license when first running
|
# the default, you will be shown the license when first running
|
||||||
# buildozer.
|
# buildozer.
|
||||||
# android.accept_sdk_license = False
|
android.accept_sdk_license = True
|
||||||
|
|
||||||
# (str) Android entry point, default is ok for Kivy-based app
|
# (str) Android entry point, default is ok for Kivy-based app
|
||||||
#android.entrypoint = org.kivy.android.PythonActivity
|
#android.entrypoint = org.kivy.android.PythonActivity
|
7
Plane_Fighting/bullet.py → plane_fighting/bullet.py
Executable file → Normal file
@ -1,10 +1,11 @@
|
|||||||
import pygame
|
import pygame,os
|
||||||
|
|
||||||
|
abspath = os.getcwd() + "/"
|
||||||
class Bullet1(pygame.sprite.Sprite):
|
class Bullet1(pygame.sprite.Sprite):
|
||||||
def __init__(self, position):
|
def __init__(self, position):
|
||||||
pygame.sprite.Sprite.__init__(self)
|
pygame.sprite.Sprite.__init__(self)
|
||||||
|
|
||||||
self.image = pygame.image.load("images/bullet1.png").convert_alpha()
|
self.image = pygame.image.load(abspath + "images/bullet1.png").convert_alpha()
|
||||||
self.rect = self.image.get_rect()
|
self.rect = self.image.get_rect()
|
||||||
self.rect.left, self.rect.top = position
|
self.rect.left, self.rect.top = position
|
||||||
self.speed = 11
|
self.speed = 11
|
||||||
@ -25,7 +26,7 @@ class Bullet2(pygame.sprite.Sprite):
|
|||||||
def __init__(self, position):
|
def __init__(self, position):
|
||||||
pygame.sprite.Sprite.__init__(self)
|
pygame.sprite.Sprite.__init__(self)
|
||||||
|
|
||||||
self.image = pygame.image.load("images/bullet2.png").convert_alpha()
|
self.image = pygame.image.load(abspath + "images/bullet2.png").convert_alpha()
|
||||||
self.rect = self.image.get_rect()
|
self.rect = self.image.get_rect()
|
||||||
self.rect.left, self.rect.top = position
|
self.rect.left, self.rect.top = position
|
||||||
self.speed = 14#14
|
self.speed = 14#14
|
44
Plane_Fighting/enemy.py → plane_fighting/enemy.py
Executable file → Normal file
@ -1,17 +1,17 @@
|
|||||||
import pygame
|
import pygame,os
|
||||||
from random import *
|
from random import *
|
||||||
|
abspath = os.getcwd() + "/"
|
||||||
class SmallEnemy(pygame.sprite.Sprite):
|
class SmallEnemy(pygame.sprite.Sprite):
|
||||||
def __init__(self, bg_size):
|
def __init__(self, bg_size):
|
||||||
pygame.sprite.Sprite.__init__(self)
|
pygame.sprite.Sprite.__init__(self)
|
||||||
|
|
||||||
self.image = pygame.image.load("images/enemy1.png").convert_alpha()
|
self.image = pygame.image.load(abspath + "images/enemy1.png").convert_alpha()
|
||||||
self.destroy_images = []
|
self.destroy_images = []
|
||||||
self.destroy_images.extend([\
|
self.destroy_images.extend([\
|
||||||
pygame.image.load("images/enemy1_down1.png").convert_alpha(), \
|
pygame.image.load(abspath + "images/enemy1_down1.png").convert_alpha(), \
|
||||||
pygame.image.load("images/enemy1_down2.png").convert_alpha(), \
|
pygame.image.load(abspath + "images/enemy1_down2.png").convert_alpha(), \
|
||||||
pygame.image.load("images/enemy1_down3.png").convert_alpha(), \
|
pygame.image.load(abspath + "images/enemy1_down3.png").convert_alpha(), \
|
||||||
pygame.image.load("images/enemy1_down4.png").convert_alpha() \
|
pygame.image.load(abspath + "images/enemy1_down4.png").convert_alpha() \
|
||||||
])
|
])
|
||||||
self.rect = self.image.get_rect()
|
self.rect = self.image.get_rect()
|
||||||
self.width, self.height = bg_size[0], bg_size[1]
|
self.width, self.height = bg_size[0], bg_size[1]
|
||||||
@ -41,14 +41,14 @@ class MidEnemy(pygame.sprite.Sprite):
|
|||||||
def __init__(self, bg_size):
|
def __init__(self, bg_size):
|
||||||
pygame.sprite.Sprite.__init__(self)
|
pygame.sprite.Sprite.__init__(self)
|
||||||
|
|
||||||
self.image = pygame.image.load("images/enemy2.png").convert_alpha()
|
self.image = pygame.image.load(abspath + "images/enemy2.png").convert_alpha()
|
||||||
self.image_hit = pygame.image.load("images/enemy2_hit.png").convert_alpha()
|
self.image_hit = pygame.image.load(abspath + "images/enemy2_hit.png").convert_alpha()
|
||||||
self.destroy_images = []
|
self.destroy_images = []
|
||||||
self.destroy_images.extend([\
|
self.destroy_images.extend([\
|
||||||
pygame.image.load("images/enemy2_down1.png").convert_alpha(), \
|
pygame.image.load(abspath + "images/enemy2_down1.png").convert_alpha(), \
|
||||||
pygame.image.load("images/enemy2_down2.png").convert_alpha(), \
|
pygame.image.load(abspath + "images/enemy2_down2.png").convert_alpha(), \
|
||||||
pygame.image.load("images/enemy2_down3.png").convert_alpha(), \
|
pygame.image.load(abspath + "images/enemy2_down3.png").convert_alpha(), \
|
||||||
pygame.image.load("images/enemy2_down4.png").convert_alpha() \
|
pygame.image.load(abspath + "images/enemy2_down4.png").convert_alpha() \
|
||||||
])
|
])
|
||||||
self.rect = self.image.get_rect()
|
self.rect = self.image.get_rect()
|
||||||
self.width, self.height = bg_size[0], bg_size[1]
|
self.width, self.height = bg_size[0], bg_size[1]
|
||||||
@ -81,17 +81,17 @@ class BigEnemy(pygame.sprite.Sprite):
|
|||||||
def __init__(self, bg_size):
|
def __init__(self, bg_size):
|
||||||
pygame.sprite.Sprite.__init__(self)
|
pygame.sprite.Sprite.__init__(self)
|
||||||
|
|
||||||
self.image1 = pygame.image.load("images/enemy3_n1.png").convert_alpha()
|
self.image1 = pygame.image.load(abspath + "images/enemy3_n1.png").convert_alpha()
|
||||||
self.image2 = pygame.image.load("images/enemy3_n2.png").convert_alpha()
|
self.image2 = pygame.image.load(abspath + "images/enemy3_n2.png").convert_alpha()
|
||||||
self.image_hit = pygame.image.load("images/enemy3_hit.png").convert_alpha()
|
self.image_hit = pygame.image.load(abspath + "images/enemy3_hit.png").convert_alpha()
|
||||||
self.destroy_images = []
|
self.destroy_images = []
|
||||||
self.destroy_images.extend([\
|
self.destroy_images.extend([\
|
||||||
pygame.image.load("images/enemy3_down1.png").convert_alpha(), \
|
pygame.image.load(abspath + "images/enemy3_down1.png").convert_alpha(), \
|
||||||
pygame.image.load("images/enemy3_down2.png").convert_alpha(), \
|
pygame.image.load(abspath + "images/enemy3_down2.png").convert_alpha(), \
|
||||||
pygame.image.load("images/enemy3_down3.png").convert_alpha(), \
|
pygame.image.load(abspath + "images/enemy3_down3.png").convert_alpha(), \
|
||||||
pygame.image.load("images/enemy3_down4.png").convert_alpha(), \
|
pygame.image.load(abspath + "images/enemy3_down4.png").convert_alpha(), \
|
||||||
pygame.image.load("images/enemy3_down5.png").convert_alpha(), \
|
pygame.image.load(abspath + "images/enemy3_down5.png").convert_alpha(), \
|
||||||
pygame.image.load("images/enemy3_down6.png").convert_alpha() \
|
pygame.image.load(abspath + "images/enemy3_down6.png").convert_alpha() \
|
||||||
])
|
])
|
||||||
self.rect = self.image1.get_rect()
|
self.rect = self.image1.get_rect()
|
||||||
self.width, self.height = bg_size[0], bg_size[1]
|
self.width, self.height = bg_size[0], bg_size[1]
|
0
Plane_Fighting/font/font-2.ttf → plane_fighting/font/font-2.ttf
Executable file → Normal file
0
Plane_Fighting/font/font.ttf → plane_fighting/font/font.ttf
Executable file → Normal file
0
Plane_Fighting/images/again.png → plane_fighting/images/again.png
Executable file → Normal file
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
BIN
plane_fighting/images/background.png
Normal file
After Width: | Height: | Size: 68 KiB |
0
Plane_Fighting/images/bomb.png → plane_fighting/images/bomb.png
Executable file → Normal file
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
0
Plane_Fighting/images/bomb_supply.png → plane_fighting/images/bomb_supply.png
Executable file → Normal file
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
BIN
plane_fighting/images/bullet1.png
Normal file
After Width: | Height: | Size: 129 B |
0
Plane_Fighting/images/bullet2.png → plane_fighting/images/bullet2.png
Executable file → Normal file
Before Width: | Height: | Size: 99 B After Width: | Height: | Size: 99 B |
0
Plane_Fighting/images/bullet_supply.png → plane_fighting/images/bullet_supply.png
Executable file → Normal file
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
0
Plane_Fighting/images/enemy1.png → plane_fighting/images/enemy1.png
Executable file → Normal file
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
0
Plane_Fighting/images/enemy1_down1.png → plane_fighting/images/enemy1_down1.png
Executable file → Normal file
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
0
Plane_Fighting/images/enemy1_down2.png → plane_fighting/images/enemy1_down2.png
Executable file → Normal file
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
0
Plane_Fighting/images/enemy1_down3.png → plane_fighting/images/enemy1_down3.png
Executable file → Normal file
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
0
Plane_Fighting/images/enemy1_down4.png → plane_fighting/images/enemy1_down4.png
Executable file → Normal file
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
0
Plane_Fighting/images/enemy2.png → plane_fighting/images/enemy2.png
Executable file → Normal file
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
0
Plane_Fighting/images/enemy2_down1.png → plane_fighting/images/enemy2_down1.png
Executable file → Normal file
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
0
Plane_Fighting/images/enemy2_down2.png → plane_fighting/images/enemy2_down2.png
Executable file → Normal file
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
0
Plane_Fighting/images/enemy2_down3.png → plane_fighting/images/enemy2_down3.png
Executable file → Normal file
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
0
Plane_Fighting/images/enemy2_down4.png → plane_fighting/images/enemy2_down4.png
Executable file → Normal file
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
0
Plane_Fighting/images/enemy2_hit.png → plane_fighting/images/enemy2_hit.png
Executable file → Normal file
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
0
Plane_Fighting/images/enemy3_down1.png → plane_fighting/images/enemy3_down1.png
Executable file → Normal file
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
0
Plane_Fighting/images/enemy3_down2.png → plane_fighting/images/enemy3_down2.png
Executable file → Normal file
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
0
Plane_Fighting/images/enemy3_down3.png → plane_fighting/images/enemy3_down3.png
Executable file → Normal file
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
0
Plane_Fighting/images/enemy3_down4.png → plane_fighting/images/enemy3_down4.png
Executable file → Normal file
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
0
Plane_Fighting/images/enemy3_down5.png → plane_fighting/images/enemy3_down5.png
Executable file → Normal file
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
0
Plane_Fighting/images/enemy3_down6.png → plane_fighting/images/enemy3_down6.png
Executable file → Normal file
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
0
Plane_Fighting/images/enemy3_hit.png → plane_fighting/images/enemy3_hit.png
Executable file → Normal file
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
0
Plane_Fighting/images/enemy3_n1.png → plane_fighting/images/enemy3_n1.png
Executable file → Normal file
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
0
Plane_Fighting/images/enemy3_n2.png → plane_fighting/images/enemy3_n2.png
Executable file → Normal file
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
0
Plane_Fighting/images/gameover.png → plane_fighting/images/gameover.png
Executable file → Normal file
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
0
Plane_Fighting/images/icon.png → plane_fighting/images/icon.png
Executable file → Normal file
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
0
Plane_Fighting/images/life.png → plane_fighting/images/life.png
Executable file → Normal file
Before Width: | Height: | Size: 118 B After Width: | Height: | Size: 118 B |
BIN
plane_fighting/images/loading.png
Normal file
After Width: | Height: | Size: 20 KiB |
0
Plane_Fighting/images/me1.png → plane_fighting/images/me1.png
Executable file → Normal file
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
0
Plane_Fighting/images/me2.png → plane_fighting/images/me2.png
Executable file → Normal file
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
0
Plane_Fighting/images/me_destroy_1.png → plane_fighting/images/me_destroy_1.png
Executable file → Normal file
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
0
Plane_Fighting/images/me_destroy_2.png → plane_fighting/images/me_destroy_2.png
Executable file → Normal file
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
0
Plane_Fighting/images/me_destroy_3.png → plane_fighting/images/me_destroy_3.png
Executable file → Normal file
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
0
Plane_Fighting/images/me_destroy_4.png → plane_fighting/images/me_destroy_4.png
Executable file → Normal file
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
0
Plane_Fighting/images/pause_nor.png → plane_fighting/images/pause_nor.png
Executable file → Normal file
Before Width: | Height: | Size: 868 B After Width: | Height: | Size: 868 B |
0
Plane_Fighting/images/pause_pressed.png → plane_fighting/images/pause_pressed.png
Executable file → Normal file
Before Width: | Height: | Size: 868 B After Width: | Height: | Size: 868 B |
0
Plane_Fighting/images/resume_nor.png → plane_fighting/images/resume_nor.png
Executable file → Normal file
Before Width: | Height: | Size: 790 B After Width: | Height: | Size: 790 B |
0
Plane_Fighting/images/resume_pressed.png → plane_fighting/images/resume_pressed.png
Executable file → Normal file
Before Width: | Height: | Size: 790 B After Width: | Height: | Size: 790 B |
BIN
plane_fighting/images/touch/bomb.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
plane_fighting/images/touch/d.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
plane_fighting/images/touch/l.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
plane_fighting/images/touch/r.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
plane_fighting/images/touch/u.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
169
Plane_Fighting/main.py → plane_fighting/main.py
Executable file → Normal file
@ -7,53 +7,72 @@ import enemy
|
|||||||
import bullet
|
import bullet
|
||||||
import supply
|
import supply
|
||||||
import time
|
import time
|
||||||
|
import os
|
||||||
|
import platform
|
||||||
|
|
||||||
|
abspath = os.getcwd() + "/"
|
||||||
from pygame.locals import *
|
from pygame.locals import *
|
||||||
from random import *
|
from random import *
|
||||||
jj = 0
|
|
||||||
pygame.init()
|
pygame.init()
|
||||||
pygame.mixer.init()
|
pygame.mixer.init()
|
||||||
|
|
||||||
bg_size = width, height = 480, 700
|
global width, height
|
||||||
|
if platform.system().lower() == "windows":
|
||||||
|
bg_size = width, height = 600, 900
|
||||||
screen = pygame.display.set_mode(bg_size)
|
screen = pygame.display.set_mode(bg_size)
|
||||||
|
elif platform.system().lower() == "linux":
|
||||||
|
if os.path.exists("/storage/emulated"): # Android
|
||||||
|
screen = pygame.display.set_mode((0, 0), pygame.FULLSCREEN)
|
||||||
|
width, height = pygame.display.get_surface().get_size()
|
||||||
|
else:
|
||||||
|
bg_size = width, height = 600, 900
|
||||||
|
screen = pygame.display.set_mode(bg_size)
|
||||||
|
elif platform.system().lower() == "darwin":
|
||||||
|
# TODO: 判断 iOS 与 macOS
|
||||||
|
bg_size = width, height = 800, 900
|
||||||
|
screen = pygame.display.set_mode(bg_size)
|
||||||
|
else:
|
||||||
|
bg_size = width, height = 800, 900
|
||||||
|
screen = pygame.display.set_mode(bg_size)
|
||||||
|
bg_size = (width, height)
|
||||||
pygame.display.set_caption("Plane Fighting")
|
pygame.display.set_caption("Plane Fighting")
|
||||||
key_pressed = pygame.key.get_pressed()
|
key_pressed = pygame.key.get_pressed()
|
||||||
background=pygame.image.load("images/loading.png") #图片位置
|
background = pygame.image.load(abspath + "images/loading.png") # 图片位置
|
||||||
screen.blit(background,(0,0)) #对齐的坐标
|
screen.blit(background, (width // 2 - 240,height // 2 - 350)) # 对齐的坐标
|
||||||
pygame.display.update() # 显示内容
|
pygame.display.update() # 显示内容
|
||||||
time.sleep(1)
|
pygame.mixer.music.load(abspath + "sound/game_music.ogg")
|
||||||
background = pygame.image.load("images/background.png").convert()
|
pygame.mixer.music.set_volume(0.1)
|
||||||
|
# time.sleep(7.5)
|
||||||
|
background = pygame.image.load(abspath + "images/background.png").convert()
|
||||||
BLACK = (0, 0, 0)
|
BLACK = (0, 0, 0)
|
||||||
WHITE = (255, 255, 255)
|
WHITE = (255, 255, 255)
|
||||||
GREEN = (0, 255, 0)
|
GREEN = (0, 255, 0)
|
||||||
RED = (255, 0, 0)
|
RED = (255, 0, 0)
|
||||||
|
|
||||||
# 载入游戏音乐
|
# 载入游戏音乐
|
||||||
pygame.mixer.music.load("sound/game_music.ogg")
|
bullet_sound = pygame.mixer.Sound(abspath + "sound/bullet.wav")
|
||||||
pygame.mixer.music.set_volume(0.1)
|
|
||||||
bullet_sound = pygame.mixer.Sound("sound/bullet.wav")
|
|
||||||
bullet_sound.set_volume(0.2)
|
bullet_sound.set_volume(0.2)
|
||||||
bomb_sound = pygame.mixer.Sound("sound/use_bomb.wav")
|
bomb_sound = pygame.mixer.Sound(abspath + "sound/use_bomb.wav")
|
||||||
bomb_sound.set_volume(0.2)
|
bomb_sound.set_volume(0.2)
|
||||||
supply_sound = pygame.mixer.Sound("sound/supply.wav")
|
supply_sound = pygame.mixer.Sound(abspath + "sound/supply.wav")
|
||||||
supply_sound.set_volume(0.2)
|
supply_sound.set_volume(0.2)
|
||||||
get_bomb_sound = pygame.mixer.Sound("sound/get_bomb.wav")
|
get_bomb_sound = pygame.mixer.Sound(abspath + "sound/get_bomb.wav")
|
||||||
get_bomb_sound.set_volume(0.2)
|
get_bomb_sound.set_volume(0.2)
|
||||||
get_bullet_sound = pygame.mixer.Sound("sound/get_bullet.wav")
|
get_bullet_sound = pygame.mixer.Sound(abspath + "sound/get_bullet.wav")
|
||||||
get_bullet_sound.set_volume(0.2)
|
get_bullet_sound.set_volume(0.2)
|
||||||
upgrade_sound = pygame.mixer.Sound("sound/upgrade.wav")
|
upgrade_sound = pygame.mixer.Sound(abspath + "sound/upgrade.wav")
|
||||||
upgrade_sound.set_volume(0.2)
|
upgrade_sound.set_volume(0.2)
|
||||||
enemy3_fly_sound = pygame.mixer.Sound("sound/enemy3_flying.wav")
|
enemy3_fly_sound = pygame.mixer.Sound(abspath + "sound/enemy3_flying.wav")
|
||||||
enemy3_fly_sound.set_volume(0.2)
|
enemy3_fly_sound.set_volume(0.2)
|
||||||
enemy1_down_sound = pygame.mixer.Sound("sound/enemy1_down.wav")
|
enemy1_down_sound = pygame.mixer.Sound(abspath + "sound/enemy1_down.wav")
|
||||||
enemy1_down_sound.set_volume(0.2)
|
enemy1_down_sound.set_volume(0.2)
|
||||||
enemy2_down_sound = pygame.mixer.Sound("sound/enemy2_down.wav")
|
enemy2_down_sound = pygame.mixer.Sound(abspath + "sound/enemy2_down.wav")
|
||||||
enemy2_down_sound.set_volume(0.2)
|
enemy2_down_sound.set_volume(0.2)
|
||||||
enemy3_down_sound = pygame.mixer.Sound("sound/enemy3_down.wav")
|
enemy3_down_sound = pygame.mixer.Sound(abspath + "sound/enemy3_down.wav")
|
||||||
enemy3_down_sound.set_volume(0.5)
|
enemy3_down_sound.set_volume(0.5)
|
||||||
me_down_sound = pygame.mixer.Sound("sound/me_down.wav")
|
me_down_sound = pygame.mixer.Sound(abspath + "sound/me_down.wav")
|
||||||
|
time.sleep(1)
|
||||||
|
|
||||||
|
|
||||||
def add_small_enemies(group1, group2, num):
|
def add_small_enemies(group1, group2, num):
|
||||||
for i in range(num):
|
for i in range(num):
|
||||||
@ -61,29 +80,31 @@ def add_small_enemies(group1, group2, num):
|
|||||||
group1.add(e1)
|
group1.add(e1)
|
||||||
group2.add(e1)
|
group2.add(e1)
|
||||||
|
|
||||||
|
|
||||||
def add_mid_enemies(group1, group2, num):
|
def add_mid_enemies(group1, group2, num):
|
||||||
for i in range(num):
|
for i in range(num):
|
||||||
e2 = enemy.MidEnemy(bg_size)
|
e2 = enemy.MidEnemy(bg_size)
|
||||||
group1.add(e2)
|
group1.add(e2)
|
||||||
group2.add(e2)
|
group2.add(e2)
|
||||||
|
|
||||||
|
|
||||||
def add_big_enemies(group1, group2, num):
|
def add_big_enemies(group1, group2, num):
|
||||||
for i in range(num):
|
for i in range(num):
|
||||||
e3 = enemy.BigEnemy(bg_size)
|
e3 = enemy.BigEnemy(bg_size)
|
||||||
group1.add(e3)
|
group1.add(e3)
|
||||||
group2.add(e3)
|
group2.add(e3)
|
||||||
|
|
||||||
|
|
||||||
def inc_speed(target, inc):
|
def inc_speed(target, inc):
|
||||||
for each in target:
|
for each in target:
|
||||||
each.speed += inc
|
each.speed += inc
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
pygame.mixer.music.play(-1)
|
||||||
# Me
|
# Me
|
||||||
me = myplane.MyPlane(bg_size)
|
me = myplane.MyPlane(bg_size)
|
||||||
|
|
||||||
enemies = pygame.sprite.Group()
|
enemies = pygame.sprite.Group()
|
||||||
pygame.mixer.music.play(-1)
|
|
||||||
|
|
||||||
|
|
||||||
# Enemy Level 1
|
# Enemy Level 1
|
||||||
small_enemies = pygame.sprite.Group()
|
small_enemies = pygame.sprite.Group()
|
||||||
@ -122,25 +143,46 @@ def main():
|
|||||||
|
|
||||||
# 统计得分
|
# 统计得分
|
||||||
score = 0
|
score = 0
|
||||||
score_font = pygame.font.Font("font/font.ttf", 36)
|
score_font = pygame.font.Font(abspath + "font/font.ttf", 36)
|
||||||
|
|
||||||
|
# 移动设备触摸支持
|
||||||
|
touch_support = True
|
||||||
|
touch_up_image = pygame.image.load(abspath + "images/touch/u.png").convert_alpha()
|
||||||
|
touch_left_image = pygame.image.load(abspath + "images/touch/l.png").convert_alpha()
|
||||||
|
touch_right_image = pygame.image.load(abspath + "images/touch/r.png").convert_alpha()
|
||||||
|
touch_down_image = pygame.image.load(abspath + "images/touch/d.png").convert_alpha()
|
||||||
|
touch_bomb_image = pygame.image.load(abspath + "images/touch/bomb.png").convert_alpha()
|
||||||
|
touch_left_rect = touch_left_image.get_rect()
|
||||||
|
touch_right_rect = touch_right_image.get_rect()
|
||||||
|
touch_down_rect = touch_down_image.get_rect()
|
||||||
|
touch_bomb_rect = touch_bomb_image.get_rect()
|
||||||
|
touch_up_rect = touch_up_image.get_rect()
|
||||||
|
touch_up_rect.left, touch_up_rect.top = width - width // 4 + touch_up_rect.width, height - height // 4 + touch_up_rect.height - 64
|
||||||
|
touch_left_rect.left, touch_left_rect.top = width - width // 4 + touch_up_rect.width - 64, height - height // 4 + touch_up_rect.height
|
||||||
|
touch_right_rect.left, touch_right_rect.top = width - width // 4 + touch_up_rect.width + 64, height - height // 4 + touch_up_rect.height
|
||||||
|
touch_down_rect.left, touch_down_rect.top = width - width // 4 + touch_up_rect.width, height - height // 4 + touch_up_rect.height + 64
|
||||||
|
touch_bomb_rect.left, touch_bomb_rect.top = width // 4 - touch_up_rect.width - 64, height - height // 4 + touch_up_rect.height
|
||||||
|
|
||||||
# 标志是否暂停游戏
|
# 标志是否暂停游戏
|
||||||
paused = False
|
paused = False
|
||||||
pause_nor_image = pygame.image.load("images/pause_nor.png").convert_alpha()
|
pause_nor_image = pygame.image.load(abspath + "images/pause_nor.png").convert_alpha()
|
||||||
pause_pressed_image = pygame.image.load("images/pause_pressed.png").convert_alpha()
|
pause_pressed_image = pygame.image.load(abspath + "images/pause_pressed.png").convert_alpha()
|
||||||
resume_nor_image = pygame.image.load("images/resume_nor.png").convert_alpha()
|
resume_nor_image = pygame.image.load(abspath + "images/resume_nor.png").convert_alpha()
|
||||||
resume_pressed_image = pygame.image.load("images/resume_pressed.png").convert_alpha()
|
resume_pressed_image = pygame.image.load(abspath + "images/resume_pressed.png").convert_alpha()
|
||||||
paused_rect = pause_nor_image.get_rect()
|
paused_rect = pause_nor_image.get_rect()
|
||||||
paused_rect.left, paused_rect.top = width - paused_rect.width - 10, 10
|
paused_rect.left, paused_rect.top = width - paused_rect.width - 20, 20
|
||||||
paused_image = pause_nor_image
|
paused_image = pause_nor_image
|
||||||
|
|
||||||
# 设置难度级别
|
# 设置难度级别
|
||||||
level = 1
|
level = 1
|
||||||
|
|
||||||
|
# 初始化炸弹时间锁
|
||||||
|
last_bomb = time.time()
|
||||||
|
|
||||||
# 全屏炸弹
|
# 全屏炸弹
|
||||||
bomb_image = pygame.image.load("images/bomb.png").convert_alpha()
|
bomb_image = pygame.image.load(abspath + "images/bomb.png").convert_alpha()
|
||||||
bomb_rect = bomb_image.get_rect()
|
bomb_rect = bomb_image.get_rect()
|
||||||
bomb_font = pygame.font.Font("font/font.ttf", 48)
|
bomb_font = pygame.font.Font(abspath + "font/font.ttf", 64)
|
||||||
bomb_num = 3
|
bomb_num = 3
|
||||||
|
|
||||||
# 每30秒发放一个补给包
|
# 每30秒发放一个补给包
|
||||||
@ -158,22 +200,20 @@ def main():
|
|||||||
# 解除我方无敌状态定时器
|
# 解除我方无敌状态定时器
|
||||||
INVINCIBLE_TIME = USEREVENT + 3
|
INVINCIBLE_TIME = USEREVENT + 3
|
||||||
|
|
||||||
|
|
||||||
# 生命数量
|
# 生命数量
|
||||||
life_num = 3
|
life_num = 3
|
||||||
life_image = pygame.image.load("images/life.png").convert_alpha()
|
life_image = pygame.image.load(abspath + "images/life.png").convert_alpha()
|
||||||
life_rect = life_image.get_rect()
|
life_rect = life_image.get_rect()
|
||||||
|
|
||||||
# 用于阻止重复打开记录文件
|
# 用于阻止重复打开记录文件
|
||||||
recorded = False
|
recorded = False
|
||||||
|
|
||||||
# 游戏结束画面
|
# 游戏结束画面
|
||||||
gameover_font = pygame.font.Font("font/font.ttf", 48)
|
gameover_font = pygame.font.Font(abspath + "font/font.ttf", 48)
|
||||||
again_image = pygame.image.load("images/again.png").convert_alpha()
|
again_image = pygame.image.load(abspath + "images/again.png").convert_alpha()
|
||||||
again_rect = again_image.get_rect()
|
again_rect = again_image.get_rect()
|
||||||
gameover_image = pygame.image.load("images/gameover.png").convert_alpha()
|
gameover_image = pygame.image.load(abspath + "images/gameover.png").convert_alpha()
|
||||||
gameover_rect = gameover_image.get_rect()
|
gameover_rect = gameover_image.get_rect()
|
||||||
|
|
||||||
# 用于切换图片
|
# 用于切换图片
|
||||||
switch_image = True
|
switch_image = True
|
||||||
|
|
||||||
@ -214,12 +254,13 @@ def main():
|
|||||||
|
|
||||||
elif event.type == KEYDOWN:
|
elif event.type == KEYDOWN:
|
||||||
if event.key == K_SPACE:
|
if event.key == K_SPACE:
|
||||||
if bomb_num:
|
if bomb_num and last_bomb - time.time() <= -1:
|
||||||
bomb_num -= 1
|
bomb_num -= 1
|
||||||
bomb_sound.play()
|
bomb_sound.play()
|
||||||
for each in enemies:
|
for each in enemies:
|
||||||
if each.rect.bottom > 0:
|
if each.rect.bottom > 0:
|
||||||
each.active = False
|
each.active = False
|
||||||
|
last_bomb = time.time()
|
||||||
|
|
||||||
elif event.type == SUPPLY_TIME:
|
elif event.type == SUPPLY_TIME:
|
||||||
supply_sound.play()
|
supply_sound.play()
|
||||||
@ -236,7 +277,6 @@ def main():
|
|||||||
me.invincible = False
|
me.invincible = False
|
||||||
pygame.time.set_timer(INVINCIBLE_TIME, 0)
|
pygame.time.set_timer(INVINCIBLE_TIME, 0)
|
||||||
|
|
||||||
|
|
||||||
# 根据用户的得分增加难度
|
# 根据用户的得分增加难度
|
||||||
if level == 1 and score > 50000:
|
if level == 1 and score > 50000:
|
||||||
level = 2
|
level = 2
|
||||||
@ -277,7 +317,6 @@ def main():
|
|||||||
inc_speed(small_enemies, 1)
|
inc_speed(small_enemies, 1)
|
||||||
inc_speed(mid_enemies, 1)
|
inc_speed(mid_enemies, 1)
|
||||||
|
|
||||||
|
|
||||||
screen.blit(background, (0, 0))
|
screen.blit(background, (0, 0))
|
||||||
|
|
||||||
if life_num and not paused:
|
if life_num and not paused:
|
||||||
@ -292,8 +331,8 @@ def main():
|
|||||||
me.moveLeft()
|
me.moveLeft()
|
||||||
elif key_pressed[K_d] or key_pressed[K_RIGHT]:
|
elif key_pressed[K_d] or key_pressed[K_RIGHT]:
|
||||||
me.moveRight()
|
me.moveRight()
|
||||||
elif key_pressed[K_F1]:#100核弹
|
elif key_pressed[K_F1]: # +100核弹
|
||||||
bomb_num = 100
|
bomb_num += 100
|
||||||
elif key_pressed[K_F2]: # 不使用双子弹
|
elif key_pressed[K_F2]: # 不使用双子弹
|
||||||
is_double_bullet = True
|
is_double_bullet = True
|
||||||
elif key_pressed[K_F3]: # 使用双子弹
|
elif key_pressed[K_F3]: # 使用双子弹
|
||||||
@ -310,9 +349,6 @@ def main():
|
|||||||
level = 4
|
level = 4
|
||||||
score = 1000000
|
score = 1000000
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# 绘制全屏炸弹补给并检测是否获得
|
# 绘制全屏炸弹补给并检测是否获得
|
||||||
if bomb_supply.active:
|
if bomb_supply.active:
|
||||||
bomb_supply.move()
|
bomb_supply.move()
|
||||||
@ -346,7 +382,6 @@ def main():
|
|||||||
bullets[bullet1_index].reset(me.rect.midtop)
|
bullets[bullet1_index].reset(me.rect.midtop)
|
||||||
bullet1_index = (bullet1_index + 1) % BULLET1_NUM
|
bullet1_index = (bullet1_index + 1) % BULLET1_NUM
|
||||||
|
|
||||||
|
|
||||||
# 检测子弹是否击中敌机
|
# 检测子弹是否击中敌机
|
||||||
for b in bullets:
|
for b in bullets:
|
||||||
if b.active:
|
if b.active:
|
||||||
@ -494,7 +529,7 @@ def main():
|
|||||||
pygame.time.set_timer(INVINCIBLE_TIME, 3 * 1000)
|
pygame.time.set_timer(INVINCIBLE_TIME, 3 * 1000)
|
||||||
|
|
||||||
# 绘制全屏炸弹数量
|
# 绘制全屏炸弹数量
|
||||||
bomb_text = bomb_font.render("× %d" % bomb_num, True, WHITE)
|
bomb_text = bomb_font.render("%d" % bomb_num, True, WHITE)
|
||||||
text_rect = bomb_text.get_rect()
|
text_rect = bomb_text.get_rect()
|
||||||
screen.blit(bomb_image, (10, height - 10 - bomb_rect.height))
|
screen.blit(bomb_image, (10, height - 10 - bomb_rect.height))
|
||||||
screen.blit(bomb_text, (20 + bomb_rect.width, height - 5 - text_rect.height))
|
screen.blit(bomb_text, (20 + bomb_rect.width, height - 5 - text_rect.height))
|
||||||
@ -565,31 +600,47 @@ def main():
|
|||||||
# 获取鼠标坐标
|
# 获取鼠标坐标
|
||||||
pos = pygame.mouse.get_pos()
|
pos = pygame.mouse.get_pos()
|
||||||
# 如果用户点击“重新开始”
|
# 如果用户点击“重新开始”
|
||||||
if again_rect.left < pos[0] < again_rect.right and \
|
if again_rect.left < pos[0] < again_rect.right and again_rect.top < pos[1] < again_rect.bottom:
|
||||||
again_rect.top < pos[1] < again_rect.bottom:
|
|
||||||
# 调用main函数,重新开始游戏
|
|
||||||
main()
|
main()
|
||||||
# 如果用户点击“结束游戏”
|
# 如果用户点击“结束游戏”
|
||||||
elif gameover_rect.left < pos[0] < gameover_rect.right and \
|
if gameover_rect.left < pos[0] < gameover_rect.right and gameover_rect.top < pos[1] < gameover_rect.bottom:
|
||||||
gameover_rect.top < pos[1] < gameover_rect.bottom:
|
|
||||||
# 退出游戏
|
|
||||||
pygame.quit()
|
pygame.quit()
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
if pygame.mouse.get_pressed()[0]:
|
||||||
# 绘制暂停按钮
|
pos = pygame.mouse.get_pos()
|
||||||
|
if touch_up_rect.left - 128 < pos[0] < touch_up_rect.right + 128 and touch_up_rect.top - 128 < pos[1] < touch_up_rect.bottom + 70:
|
||||||
|
me.moveUp()
|
||||||
|
if touch_left_rect.left - 128 < pos[0] < touch_left_rect.right + 70 and touch_left_rect.top - 128 < pos[1] < touch_left_rect.bottom + 128:
|
||||||
|
me.moveLeft()
|
||||||
|
if touch_right_rect.left - 70 < pos[0] < touch_right_rect.right + 128 and touch_right_rect.top - 128 < pos[1] < touch_right_rect.bottom + 128:
|
||||||
|
me.moveRight()
|
||||||
|
if touch_down_rect.left - 128 < pos[0] < touch_down_rect.right + 128 and touch_down_rect.top - 70 < pos[1] < touch_down_rect.bottom + 128:
|
||||||
|
me.moveDown()
|
||||||
|
if touch_bomb_rect.left - 128 < pos[0] < touch_bomb_rect.right + 128 and touch_bomb_rect.top - 128 < pos[1] < touch_bomb_rect.bottom + 128:
|
||||||
|
if bomb_num and last_bomb - time.time() <= -1:
|
||||||
|
bomb_num -= 1
|
||||||
|
bomb_sound.play()
|
||||||
|
for each in enemies:
|
||||||
|
if each.rect.bottom > 0:
|
||||||
|
each.active = False
|
||||||
|
last_bomb = time.time()
|
||||||
|
# 绘制按钮
|
||||||
screen.blit(paused_image, paused_rect)
|
screen.blit(paused_image, paused_rect)
|
||||||
|
screen.blit(touch_up_image, touch_up_rect)
|
||||||
|
screen.blit(touch_left_image, touch_left_rect)
|
||||||
|
screen.blit(touch_right_image, touch_right_rect)
|
||||||
|
screen.blit(touch_down_image, touch_down_rect)
|
||||||
|
screen.blit(touch_bomb_image, touch_bomb_rect)
|
||||||
# 切换图片
|
# 切换图片
|
||||||
if not (delay % 5):
|
if not (delay % 5):
|
||||||
switch_image = not switch_image
|
switch_image = not switch_image
|
||||||
|
|
||||||
delay -= 1
|
delay -= 1
|
||||||
if not delay:
|
if not delay:
|
||||||
delay = 100
|
delay = 100
|
||||||
|
|
||||||
pygame.display.flip()
|
pygame.display.flip()
|
||||||
clock.tick(60)
|
clock.tick(60)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
try:
|
try:
|
||||||
main()
|
main()
|
16
Plane_Fighting/myplane.py → plane_fighting/myplane.py
Executable file → Normal file
@ -1,17 +1,17 @@
|
|||||||
import pygame
|
import pygame,os
|
||||||
|
abspath = os.getcwd() + "/"
|
||||||
class MyPlane(pygame.sprite.Sprite):
|
class MyPlane(pygame.sprite.Sprite):
|
||||||
def __init__(self, bg_size):
|
def __init__(self, bg_size):
|
||||||
pygame.sprite.Sprite.__init__(self)
|
pygame.sprite.Sprite.__init__(self)
|
||||||
|
|
||||||
self.image1 = pygame.image.load("images/me1.png").convert_alpha()
|
self.image1 = pygame.image.load(abspath + "images/me1.png").convert_alpha()
|
||||||
self.image2 = pygame.image.load("images/me2.png").convert_alpha()
|
self.image2 = pygame.image.load(abspath + "images/me2.png").convert_alpha()
|
||||||
self.destroy_images = []
|
self.destroy_images = []
|
||||||
self.destroy_images.extend([\
|
self.destroy_images.extend([\
|
||||||
pygame.image.load("images/me_destroy_1.png").convert_alpha(), \
|
pygame.image.load(abspath + "images/me_destroy_1.png").convert_alpha(), \
|
||||||
pygame.image.load("images/me_destroy_2.png").convert_alpha(), \
|
pygame.image.load(abspath + "images/me_destroy_2.png").convert_alpha(), \
|
||||||
pygame.image.load("images/me_destroy_3.png").convert_alpha(), \
|
pygame.image.load(abspath + "images/me_destroy_3.png").convert_alpha(), \
|
||||||
pygame.image.load("images/me_destroy_4.png").convert_alpha() \
|
pygame.image.load(abspath + "images/me_destroy_4.png").convert_alpha() \
|
||||||
])
|
])
|
||||||
self.rect = self.image1.get_rect()
|
self.rect = self.image1.get_rect()
|
||||||
self.width, self.height = bg_size[0], bg_size[1]
|
self.width, self.height = bg_size[0], bg_size[1]
|
BIN
plane_fighting/old_images/again.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
plane_fighting/old_images/background.png
Normal file
After Width: | Height: | Size: 526 KiB |
BIN
plane_fighting/old_images/bomb.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
BIN
plane_fighting/old_images/bomb_supply.png
Normal file
After Width: | Height: | Size: 9.7 KiB |
BIN
plane_fighting/old_images/bullet1.png
Normal file
After Width: | Height: | Size: 132 B |
BIN
plane_fighting/old_images/bullet2.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
plane_fighting/old_images/bullet_supply.png
Normal file
After Width: | Height: | Size: 9.5 KiB |
BIN
plane_fighting/old_images/enemy1.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
plane_fighting/old_images/enemy1_down1.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
plane_fighting/old_images/enemy1_down2.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
plane_fighting/old_images/enemy1_down3.png
Normal file
After Width: | Height: | Size: 7.2 KiB |
BIN
plane_fighting/old_images/enemy1_down4.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
plane_fighting/old_images/enemy2.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
plane_fighting/old_images/enemy2_down1.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
plane_fighting/old_images/enemy2_down2.png
Normal file
After Width: | Height: | Size: 155 B |
BIN
plane_fighting/old_images/enemy2_down3.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
plane_fighting/old_images/enemy2_down4.png
Normal file
After Width: | Height: | Size: 5.4 KiB |