reee
1
.gitignore
vendored
@ -26,7 +26,6 @@ eggs/
|
||||
.eggs/
|
||||
lib/
|
||||
lib64/
|
||||
parts/
|
||||
sdist/
|
||||
var/
|
||||
wheels/
|
||||
|
@ -53,10 +53,11 @@ class RenderThread(mp.Process, pyglet.window.Window):
|
||||
self.window_config = tools.config('sys_value/window.json5')
|
||||
# dic
|
||||
self.ships = {} # all ship(part)
|
||||
self.planet_system = {} # hole planet system
|
||||
self.planet_system = tools.configs('sys_vlaue/planet.json5') # hole planet system
|
||||
# list
|
||||
# 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
|
||||
self.window = Window(width=int(self.window_config['width']),
|
||||
height=int(self.window_config['height']),
|
||||
@ -93,7 +94,7 @@ class RenderThread(mp.Process, pyglet.window.Window):
|
||||
"""
|
||||
|
||||
def on_draw(self):
|
||||
pass
|
||||
self.part_draw()
|
||||
|
||||
def part_draw(self):
|
||||
# render parts
|
||||
|
@ -11,13 +11,13 @@ import time
|
||||
import logging
|
||||
|
||||
try:
|
||||
import tools
|
||||
import client
|
||||
import server
|
||||
except ModuleNotFoundError:
|
||||
from bin import tools
|
||||
from bin import client
|
||||
from bin import server
|
||||
except ModuleNotFoundError:
|
||||
import tools
|
||||
import client
|
||||
import server
|
||||
|
||||
|
||||
class Game:
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
/*
|
||||
/*
|
||||
'part id': [
|
||||
[
|
||||
'part name',
|
||||
@ -22,6 +22,7 @@
|
||||
[
|
||||
'xxx.png',
|
||||
// texture file name
|
||||
//可以为包含文件夹的 比如:./engine/xxx.png
|
||||
[
|
||||
'float',
|
||||
'float'
|
||||
@ -36,32 +37,15 @@
|
||||
],
|
||||
// 碰撞箱大小 (暂时只支持方形碰撞箱)
|
||||
//坐标轴也是从左上开始
|
||||
//可以为包含文件夹的 比如:./engine/xxx.png
|
||||
[
|
||||
'特殊值(懒得写)'
|
||||
]
|
||||
],
|
||||
*/
|
||||
'test1': [
|
||||
[
|
||||
'test1',
|
||||
'一个测试用部件'
|
||||
],
|
||||
[
|
||||
1.0,
|
||||
false,
|
||||
0.1
|
||||
],
|
||||
[
|
||||
'parts/Beam.png',
|
||||
[
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
],
|
||||
[
|
||||
3.0,
|
||||
2.0
|
||||
]
|
||||
test1: [
|
||||
['test1', '一个测试用部件'],
|
||||
[1.0, false, 0.1],
|
||||
['parts/Beam.png', [0.0, 0.0]],
|
||||
[3.0, 2.0]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
BIN
textures/parts/Battery.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
textures/parts/Beam.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
textures/parts/CoverBottom.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
textures/parts/CoverStretch.png
Normal file
After Width: | Height: | Size: 721 B |
BIN
textures/parts/CoverTop.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
textures/parts/DetacherRadial.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
textures/parts/DetacherVertical.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
textures/parts/DockingConnector.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
textures/parts/DockingPort.png
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
textures/parts/EngineIon.png
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
textures/parts/EngineLarge.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
textures/parts/EngineMedium.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
textures/parts/EngineSmall.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
textures/parts/EngineTiny.png
Normal file
After Width: | Height: | Size: 6.6 KiB |
BIN
textures/parts/Fuselage.png
Normal file
After Width: | Height: | Size: 7.9 KiB |
BIN
textures/parts/LanderLegJoint.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
textures/parts/LanderLegLower.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
textures/parts/LanderLegPreview.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
textures/parts/LanderLegUpper.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
textures/parts/NoseCone.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
textures/parts/Parachute.png
Normal file
After Width: | Height: | Size: 62 KiB |
BIN
textures/parts/ParachuteCanister.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
textures/parts/ParachuteCanisterSide.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
textures/parts/Pod.png
Normal file
After Width: | Height: | Size: 9.7 KiB |
BIN
textures/parts/Puffy750.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
textures/parts/RcsBlock.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
textures/parts/SideTank.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
textures/parts/SolarPanel.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
textures/parts/SolarPanelBase.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
textures/parts/SolidRocketBooster.png
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
textures/parts/TankLarge.png
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
textures/parts/TankMedium.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
textures/parts/TankSmall.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
textures/parts/TankTiny.png
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
textures/parts/Wheel.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
textures/parts/Wing.png
Normal file
After Width: | Height: | Size: 13 KiB |