dr game 0.3.6
This commit is contained in:
parent
fc88493a98
commit
39afbb5f63
@ -169,6 +169,18 @@ pub struct Connection {
|
||||
pub child_part: IdType,
|
||||
}
|
||||
|
||||
pub type RawDockConnectionData = (IdType, IdType, IdType);
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
pub struct DockConnection {
|
||||
#[serde(rename = "@dockPart")]
|
||||
pub dock_part: IdType,
|
||||
#[serde(rename = "@parentPart")]
|
||||
pub parent_part: IdType,
|
||||
#[serde(rename = "@childPart")]
|
||||
pub child_part: IdType,
|
||||
}
|
||||
|
||||
impl Connection {
|
||||
/// 真有地方需要
|
||||
pub fn as_raw_data(&self) -> RawConnectionData {
|
||||
|
@ -76,7 +76,7 @@ DR_mod_runtime = _DR_mod_runtime()
|
||||
class DR_mod(ModInfo): # NOQA
|
||||
mod_id = "difficult_rocket_mod"
|
||||
name = "Difficult Rocket mod"
|
||||
version = Version("0.3.5")
|
||||
version = Version("0.3.6")
|
||||
|
||||
writer = "shenjackyuanjie"
|
||||
link = "shenjack.top"
|
||||
|
@ -299,12 +299,13 @@ class SR1ShipRender(BaseScreen):
|
||||
还是重写一下渲染逻辑
|
||||
把渲染单个部件的逻辑提取出来放到这里
|
||||
"""
|
||||
randomer = random.Random(part_data.id)
|
||||
texture = self.textures.get_texture(part_type.sprite)
|
||||
part_sprite = Sprite(
|
||||
img=texture,
|
||||
x=part_data.x * 60,
|
||||
y=part_data.y * 60,
|
||||
z=random.random(),
|
||||
z=randomer.random(),
|
||||
batch=batch,
|
||||
group=part_group,
|
||||
)
|
||||
@ -312,9 +313,9 @@ class SR1ShipRender(BaseScreen):
|
||||
part_sprite.scale_x = -1 if part_data.flip_x else 1
|
||||
part_sprite.scale_y = -1 if part_data.flip_y else 1
|
||||
line_colors = (
|
||||
random.randrange(0, 255),
|
||||
random.randrange(0, 255),
|
||||
random.randrange(0, 255),
|
||||
randomer.randrange(0, 255),
|
||||
randomer.randrange(0, 255),
|
||||
randomer.randrange(0, 255),
|
||||
200,
|
||||
)
|
||||
width = 4
|
||||
|
1032
ships/0401008
1032
ships/0401008
File diff suppressed because one or more lines are too long
815
ships/0401011
815
ships/0401011
File diff suppressed because one or more lines are too long
806
ships/0401011A
806
ships/0401011A
File diff suppressed because one or more lines are too long
1082
ships/0401012
1082
ships/0401012
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
145
ships/0405001
145
ships/0405001
File diff suppressed because one or more lines are too long
1296
ships/055F
1296
ships/055F
File diff suppressed because one or more lines are too long
2027
ships/055I
2027
ships/055I
File diff suppressed because one or more lines are too long
1167
ships/401008
1167
ships/401008
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
74
ships/wthxS.xml
Normal file
74
ships/wthxS.xml
Normal file
@ -0,0 +1,74 @@
|
||||
<Ship version="1" liftedOff="0" touchingGround="0">
|
||||
<DisconnectedParts />
|
||||
<Parts>
|
||||
<Part partType="pod-1" id="1" x="0.000000" y="-5.750000" angle="0.000000" angleV="0.000000" editorAngle="0">
|
||||
<Pod throttle="0.000000" name="">
|
||||
<Staging currentStage="0">
|
||||
<Step>
|
||||
<Activate Id="1160707" moved="1" />
|
||||
</Step>
|
||||
<Step>
|
||||
<Activate Id="1160697" moved="1" />
|
||||
<Activate Id="1160699" moved="1" />
|
||||
</Step>
|
||||
<Step>
|
||||
<Activate Id="1160686" moved="1" />
|
||||
</Step>
|
||||
<Step>
|
||||
<Activate Id="1160683" moved="1" />
|
||||
</Step>
|
||||
</Staging>
|
||||
</Pod>
|
||||
</Part>
|
||||
<Part partType="strut-1" id="1160701" x="0.000000" y="-4.500000" angle="0.000000" angleV="0.000000" editorAngle="0" activated="0" exploded="0" flippedX="0" flippedY="0" />
|
||||
<Part partType="detacher-1" id="1160683" x="0.000000" y="-3.750000" angle="0.000000" angleV="0.000000" editorAngle="0" activated="0" exploded="0" flippedX="0" flippedY="0" />
|
||||
<Part partType="dock-1" id="1160684" x="0.000000" y="-3.750000" angle="0.000000" angleV="0.000000" editorAngle="0" activated="0" exploded="0" flippedX="0" flippedY="0" />
|
||||
<Part partType="strut-1" id="1160685" x="0.000000" y="-1.500000" angle="0.000000" angleV="0.000000" editorAngle="0" activated="0" exploded="0" flippedX="0" flippedY="0" />
|
||||
<Part partType="detacher-1" id="1160686" x="0.000000" y="-2.500000" angle="0.000000" angleV="0.000000" editorAngle="0" activated="0" exploded="0" flippedX="0" flippedY="0" />
|
||||
<Part partType="port-1" id="1160687" x="0.000000" y="-2.750000" angle="1.570796" angleV="0.000000" editorAngle="1" activated="0" exploded="0" flippedX="0" flippedY="0" />
|
||||
<Part partType="dock-1" id="1160694" x="0.000000" y="-3.250000" angle="0.000000" angleV="0.000000" editorAngle="0" activated="0" exploded="0" flippedX="0" flippedY="0" />
|
||||
<Part partType="fueltank-0" id="1160696" x="2.000000" y="-2.500000" angle="0.000000" angleV="0.000000" editorAngle="0">
|
||||
<Tank fuel="750.000000" />
|
||||
</Part>
|
||||
<Part partType="engine-0" id="1160697" x="2.000000" y="-3.500000" angle="0.000000" angleV="0.000000" editorAngle="0" activated="0" exploded="0" flippedX="0" flippedY="0">
|
||||
<Engine fuel="0.000000" />
|
||||
</Part>
|
||||
<Part partType="fueltank-0" id="1160698" x="-2.000000" y="-2.500000" angle="0.000000" angleV="0.000000" editorAngle="0">
|
||||
<Tank fuel="750.000000" />
|
||||
</Part>
|
||||
<Part partType="engine-0" id="1160699" x="-2.000000" y="-3.500000" angle="0.000000" angleV="0.000000" editorAngle="0" activated="0" exploded="0" flippedX="0" flippedY="0">
|
||||
<Engine fuel="0.000000" />
|
||||
</Part>
|
||||
<Part partType="strut-1" id="1160702" x="1.500000" y="-9.000000" angle="4.712389" angleV="0.000000" editorAngle="3" activated="0" exploded="0" flippedX="0" flippedY="0" />
|
||||
<Part partType="strut-1" id="1160704" x="0.000000" y="-13.500000" angle="0.000000" angleV="0.000000" editorAngle="0" activated="0" exploded="0" flippedX="0" flippedY="0" />
|
||||
<Part partType="strut-1" id="1160705" x="-2.500000" y="-9.000000" angle="4.712389" angleV="0.000000" editorAngle="3" activated="0" exploded="0" flippedX="0" flippedY="0" />
|
||||
<Part partType="strut-1" id="1160706" x="2.500000" y="-9.000000" angle="4.712389" angleV="0.000000" editorAngle="3" activated="0" exploded="0" flippedX="0" flippedY="0" />
|
||||
<Part partType="strut-1" id="1160703" x="-1.500000" y="-9.000000" angle="4.712389" angleV="0.000000" editorAngle="3" activated="0" exploded="0" flippedX="0" flippedY="0" />
|
||||
<Part partType="detacher-1" id="1160707" x="0.000000" y="-6.750000" angle="0.000000" angleV="0.000000" editorAngle="0" activated="0" exploded="0" flippedX="0" flippedY="0" />
|
||||
<Part partType="pod-1" id="1160708" x="0.000000" y="-7.750000" angle="0.000000" angleV="0.000000" editorAngle="0">
|
||||
<Pod throttle="0.000000" name="">
|
||||
<Staging currentStage="0" />
|
||||
</Pod>
|
||||
</Part>
|
||||
</Parts>
|
||||
<Connections>
|
||||
<Connection parentAttachPoint="1" childAttachPoint="2" parentPart="1" childPart="1160701" />
|
||||
<Connection parentAttachPoint="1" childAttachPoint="2" parentPart="1160701" childPart="1160683" />
|
||||
<Connection parentAttachPoint="1" childAttachPoint="1" parentPart="1160683" childPart="1160684" />
|
||||
<DockConnection dockPart="1160684" parentPart="1160684" childPart="1160685" />
|
||||
<Connection parentAttachPoint="1" childAttachPoint="1" parentPart="1160685" childPart="1160686" />
|
||||
<Connection parentAttachPoint="2" childAttachPoint="1" parentPart="1160686" childPart="1160687" />
|
||||
<Connection parentAttachPoint="1" childAttachPoint="1" parentPart="1160685" childPart="1160694" />
|
||||
<Connection parentAttachPoint="2" childAttachPoint="1" parentPart="1160685" childPart="1160696" />
|
||||
<Connection parentAttachPoint="2" childAttachPoint="1" parentPart="1160696" childPart="1160697" />
|
||||
<Connection parentAttachPoint="2" childAttachPoint="1" parentPart="1160685" childPart="1160698" />
|
||||
<Connection parentAttachPoint="2" childAttachPoint="1" parentPart="1160698" childPart="1160699" />
|
||||
<Connection parentAttachPoint="2" childAttachPoint="3" parentPart="1160701" childPart="1160702" />
|
||||
<Connection parentAttachPoint="4" childAttachPoint="1" parentPart="1160702" childPart="1160704" />
|
||||
<Connection parentAttachPoint="1" childAttachPoint="4" parentPart="1160704" childPart="1160705" />
|
||||
<Connection parentAttachPoint="1" childAttachPoint="4" parentPart="1160704" childPart="1160706" />
|
||||
<Connection parentAttachPoint="2" childAttachPoint="3" parentPart="1160701" childPart="1160703" />
|
||||
<Connection parentAttachPoint="2" childAttachPoint="1" parentPart="1" childPart="1160707" />
|
||||
<Connection parentAttachPoint="2" childAttachPoint="1" parentPart="1160707" childPart="1160708" />
|
||||
</Connections>
|
||||
</Ship>
|
Loading…
Reference in New Issue
Block a user