Skip to content

Commit

Permalink
nanana
Browse files Browse the repository at this point in the history
  • Loading branch information
shenjackyuanjie committed Jan 25, 2025
1 parent 1c6c1e1 commit 62cbe02
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
1 change: 0 additions & 1 deletion DR.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ def main() -> int:
text = cache_steam.getvalue()
print(text)
else:
crash.record_thread = False
print(crash.all_thread)
print(crash.all_process)
# join all thread
Expand Down
2 changes: 1 addition & 1 deletion Difficult_Rocket/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def draw_update(self, tick: float):
def on_draw(self, *dt):
while command := self.game.console.get_command():
self.on_command(line.CommandText(command))
pyglet.gl.glClearColor(0.1, 0, 0, 0.0)
pyglet.gl.glClearColor(1, 1, 1, 0.0)
self.clear()
self.draw_update(float(self.SPF))
self.draw_batch()
Expand Down
9 changes: 7 additions & 2 deletions Difficult_Rocket/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
gitee: @shenjackyuanjie
"""

from __future__ import annotations

import sys
import time
import logging
Expand Down Expand Up @@ -65,8 +67,11 @@ def start(self):
def stop(self):
self.running = False

def get_command(self) -> str:
return self.caches.pop(0)
def get_command(self) -> str | None:
if self.caches:
return self.caches.pop(0)
else:
return None


class Game(Options):
Expand Down
4 changes: 2 additions & 2 deletions configs/main.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ fonts_folder = "libs/fonts"

[window]
style = "None"
width = 1261
height = 935
width = 1094
height = 1099
visible = true
gui_scale = 1
caption = "Difficult Rocket v{DR_version}|DR_rs v{DR_Rust_get_version}"
Expand Down
1 change: 1 addition & 0 deletions mods/five_point/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations

from typing import Dict

Expand Down

0 comments on commit 62cbe02

Please sign in to comment.