删除了多余的print
This commit is contained in:
parent
00d41941dd
commit
c219da2e5b
@ -22,7 +22,7 @@ from Difficult_Rocket.api.types import Options
|
|||||||
|
|
||||||
from libs.MCDR.version import Version
|
from libs.MCDR.version import Version
|
||||||
|
|
||||||
game_version = Version("0.7.1.0") # 游戏版本
|
game_version = Version("0.7.1.1") # 游戏版本
|
||||||
build_version = Version("1.1.0.0") # 编译文件版本(与游戏本体无关)
|
build_version = Version("1.1.0.0") # 编译文件版本(与游戏本体无关)
|
||||||
DR_rust_version = Version("0.2.5.0") # DR 的 Rust 编写部分的版本
|
DR_rust_version = Version("0.2.5.0") # DR 的 Rust 编写部分的版本
|
||||||
__version__ = game_version
|
__version__ = game_version
|
||||||
|
@ -264,9 +264,7 @@ class SR1ShipRender(BaseScreen):
|
|||||||
zoom_d = 1
|
zoom_d = 1
|
||||||
else:
|
else:
|
||||||
zoom_d = ((2 ** scroll_y) - 1) * 0.5 + 1
|
zoom_d = ((2 ** scroll_y) - 1) * 0.5 + 1
|
||||||
print(f"1: {self.camera_rs.zoom=} {self.camera_rs.dx} {self.camera_rs.dy} {scroll_y=}")
|
|
||||||
# 缩放的变换量
|
# 缩放的变换量
|
||||||
print(f'{self.camera_rs.zoom * zoom_d=}')
|
|
||||||
if self.camera_rs.zoom == 10:
|
if self.camera_rs.zoom == 10:
|
||||||
if scroll_y >= 0:
|
if scroll_y >= 0:
|
||||||
self.camera_rs.dx += mouse_dx_d * 0.5
|
self.camera_rs.dx += mouse_dx_d * 0.5
|
||||||
@ -284,19 +282,7 @@ class SR1ShipRender(BaseScreen):
|
|||||||
self.camera_rs.zoom = 10
|
self.camera_rs.zoom = 10
|
||||||
self.camera_rs.dx += mouse_dx_d
|
self.camera_rs.dx += mouse_dx_d
|
||||||
self.camera_rs.dy += mouse_dy_d
|
self.camera_rs.dy += mouse_dy_d
|
||||||
# if self.camera_rs.zoom / (0.5 ** (scroll_y * 0.5)) <= 10:
|
|
||||||
# self.camera_rs.zoom = self.camera_rs.zoom / zoom_d
|
|
||||||
# self.camera_rs.dx -= (mouse_dx - self.camera_rs.dx) * (1 - zoom_d)
|
|
||||||
# self.camera_rs.dy -= (mouse_dy - self.camera_rs.dy) * (1 - zoom_d)
|
|
||||||
# elif self.camera_rs.zoom == 10:
|
|
||||||
# self.camera_rs.dx -= mouse_dx * (0.1 ** scroll_y)
|
|
||||||
# self.camera_rs.dy -= mouse_dy * (0.1 ** scroll_y)
|
|
||||||
# else:
|
|
||||||
# self.camera_rs.zoom = 10
|
|
||||||
# self.camera_rs.dx -= (mouse_dx - self.camera_rs.dx) * zoom_d
|
|
||||||
# self.camera_rs.dy -= (mouse_dy - self.camera_rs.dy) * zoom_d
|
|
||||||
|
|
||||||
print(f"{self.camera_rs.zoom=} {self.camera_rs.dx} {self.camera_rs.dy} {scroll_y=}")
|
|
||||||
self.debug_mouse_line.x2, self.debug_mouse_line.y2 = x, y
|
self.debug_mouse_line.x2, self.debug_mouse_line.y2 = x, y
|
||||||
self.debug_mouse_delta_line.x2 = (mouse_dx - self.camera_rs.dx) * (1 - (0.5 ** scroll_y)) + (
|
self.debug_mouse_delta_line.x2 = (mouse_dx - self.camera_rs.dx) * (1 - (0.5 ** scroll_y)) + (
|
||||||
self.window_pointer.width / 2)
|
self.window_pointer.width / 2)
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
|
|
||||||
## 版本
|
## 版本
|
||||||
|
|
||||||
[![Generic badge](https://img.shields.io/badge/Release-0.7.1.0-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases)
|
[![Generic badge](https://img.shields.io/badge/Release-0.7.1.1-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases)
|
||||||
[![Generic badge](https://img.shields.io/badge/Pre_Release-0.7.1.0-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases)
|
[![Generic badge](https://img.shields.io/badge/Pre_Release-0.7.1.1-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases)
|
||||||
[![Generic badge](https://img.shields.io/badge/Devloping-0.7.2-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases)
|
[![Generic badge](https://img.shields.io/badge/Devloping-0.7.2-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases)
|
||||||
|
|
||||||
## English README please look [here](./docs/README-en.md)
|
## English README please look [here](./docs/README-en.md)
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
|
|
||||||
## Version
|
## Version
|
||||||
|
|
||||||
[![Generic badge](https://img.shields.io/badge/Release-0.7.1.0-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases)
|
[![Generic badge](https://img.shields.io/badge/Release-0.7.1.1-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases)
|
||||||
[![Generic badge](https://img.shields.io/badge/Pre_Release-0.7.1.0-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases)
|
[![Generic badge](https://img.shields.io/badge/Pre_Release-0.7.1.1-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases)
|
||||||
[![Generic badge](https://img.shields.io/badge/Devloping-0.7.2-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases)
|
[![Generic badge](https://img.shields.io/badge/Devloping-0.7.2-blue.svg)](https://github.com/shenjackyuanjie/Difficult-Rocket/releases)
|
||||||
|
|
||||||
## 中文README请移步 [这里](../README.md)
|
## 中文README请移步 [这里](../README.md)
|
||||||
|
@ -10,13 +10,17 @@
|
|||||||
## Readme First!
|
## Readme First!
|
||||||
##### most badge can be clicked and jump
|
##### most badge can be clicked and jump
|
||||||
[![Generic badge](https://img.shields.io/badge/SemVer-2.0.0-blue.svg)](https://Semver.org/)
|
[![Generic badge](https://img.shields.io/badge/SemVer-2.0.0-blue.svg)](https://Semver.org/)
|
||||||
![Generic badge](https://img.shields.io/badge/Version-0.7.1.0-yellow.svg)
|
![Generic badge](https://img.shields.io/badge/Version-0.7.1.1-yellow.svg)
|
||||||
|
|
||||||
- [![Readme-github](https://img.shields.io/badge/Readme-Github-blue.svg?style=flat-square&logo=Github)](https://github.com/shenjackyuanjie/Difficult-Rocket)
|
- [![Readme-github](https://img.shields.io/badge/Readme-Github-blue.svg?style=flat-square&logo=Github)](https://github.com/shenjackyuanjie/Difficult-Rocket)
|
||||||
- [![Readme-gitee](https://img.shields.io/badge/Readme-Gitee-blue.svg?style=flat-square&logo=Gitee)](https://gitee.com/shenjackyuanjie/Difficult-Rocket)
|
- [![Readme-gitee](https://img.shields.io/badge/Readme-Gitee-blue.svg?style=flat-square&logo=Gitee)](https://gitee.com/shenjackyuanjie/Difficult-Rocket)
|
||||||
- [![Readme-gitee](https://img.shields.io/badge/Readme-中文(点我!)-blue.svg?style=flat-square)](../../README.md)
|
- [![Readme-gitee](https://img.shields.io/badge/Readme-中文(点我!)-blue.svg?style=flat-square)](../../README.md)
|
||||||
- Using [SemVer 2.0.0](https://semver.org/) to manage version
|
- Using [SemVer 2.0.0](https://semver.org/) to manage version
|
||||||
|
|
||||||
|
## 20230219 V 0.7.1.1
|
||||||
|
|
||||||
|
### 删除了多余的 print
|
||||||
|
|
||||||
## 20230219 V 0.7.1.0
|
## 20230219 V 0.7.1.0
|
||||||
|
|
||||||
### 命令
|
### 命令
|
||||||
|
@ -6,7 +6,7 @@ build-backend = "pdm.pep517.api"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "difficult-rocket"
|
name = "difficult-rocket"
|
||||||
version = "0.7.1.0"
|
version = "0.7.1.1"
|
||||||
description = "A rocket game"
|
description = "A rocket game"
|
||||||
authors = [
|
authors = [
|
||||||
{name = "shenjackyuanjie", email = "3695888@qq.com"}
|
{name = "shenjackyuanjie", email = "3695888@qq.com"}
|
||||||
|
Loading…
Reference in New Issue
Block a user