This commit is contained in:
沈瑗杰 2021-02-14 10:24:38 +08:00
parent a56c2cb01d
commit 61ef7d3190
40 changed files with 16 additions and 32 deletions

1
.gitignore vendored
View File

@ -26,7 +26,6 @@ eggs/
.eggs/ .eggs/
lib/ lib/
lib64/ lib64/
parts/
sdist/ sdist/
var/ var/
wheels/ wheels/

View File

@ -53,10 +53,11 @@ class RenderThread(mp.Process, pyglet.window.Window):
self.window_config = tools.config('sys_value/window.json5') self.window_config = tools.config('sys_value/window.json5')
# dic # dic
self.ships = {} # all ship(part) self.ships = {} # all ship(part)
self.planet_system = {} # hole planet system self.planet_system = tools.configs('sys_vlaue/planet.json5') # hole planet system
# list # list
# re stuff # re stuff
self.ipv4_re = re.compile(u'^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$') self.ipv4_re = re.compile(
u'^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$')
# window # window
self.window = Window(width=int(self.window_config['width']), self.window = Window(width=int(self.window_config['width']),
height=int(self.window_config['height']), height=int(self.window_config['height']),
@ -93,7 +94,7 @@ class RenderThread(mp.Process, pyglet.window.Window):
""" """
def on_draw(self): def on_draw(self):
pass self.part_draw()
def part_draw(self): def part_draw(self):
# render parts # render parts

View File

@ -11,13 +11,13 @@ import time
import logging import logging
try: try:
import tools
import client
import server
except ModuleNotFoundError:
from bin import tools from bin import tools
from bin import client from bin import client
from bin import server from bin import server
except ModuleNotFoundError:
import tools
import client
import server
class Game: class Game:

View File

@ -22,6 +22,7 @@
[ [
'xxx.png', 'xxx.png',
// texture file name // texture file name
//可以为包含文件夹的 比如:./engine/xxx.png
[ [
'float', 'float',
'float' 'float'
@ -36,32 +37,15 @@
], ],
// 碰撞箱大小 (暂时只支持方形碰撞箱) // 碰撞箱大小 (暂时只支持方形碰撞箱)
//坐标轴也是从左上开始 //坐标轴也是从左上开始
//可以为包含文件夹的 比如:./engine/xxx.png
[ [
'特殊值(懒得写)' '特殊值(懒得写)'
] ]
], ],
*/ */
'test1': [ test1: [
[ ['test1', '一个测试用部件'],
'test1', [1.0, false, 0.1],
'一个测试用部件' ['parts/Beam.png', [0.0, 0.0]],
], [3.0, 2.0]
[
1.0,
false,
0.1
],
[
'parts/Beam.png',
[
0.0,
0.0
]
],
[
3.0,
2.0
]
] ]
} }

BIN
textures/parts/Battery.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
textures/parts/Beam.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 721 B

BIN
textures/parts/CoverTop.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

BIN
textures/parts/Fuselage.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
textures/parts/NoseCone.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

BIN
textures/parts/Pod.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

BIN
textures/parts/Puffy750.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
textures/parts/RcsBlock.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

BIN
textures/parts/SideTank.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
textures/parts/TankTiny.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

BIN
textures/parts/Wheel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
textures/parts/Wing.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB