diff --git a/lib/views/settings/laboratory/game/mini_fantasy/components/orc.dart b/lib/views/settings/laboratory/game/mini_fantasy/components/orc.dart index 46b6441..e2144db 100644 --- a/lib/views/settings/laboratory/game/mini_fantasy/components/orc.dart +++ b/lib/views/settings/laboratory/game/mini_fantasy/components/orc.dart @@ -8,7 +8,7 @@ import '../sprite_sheet/sprite_sheet_orc.dart'; double tileSize = 20.0; class Orc extends SimpleEnemy - with AutomaticRandomMovement, BlockMovementCollision, UseLifeBar { + with RandomMovement, BlockMovementCollision, UseLifeBar { Orc(Vector2 position) : super( position: position, @@ -89,7 +89,7 @@ class Orc extends SimpleEnemy runRandomMovement( dt, speed: speed / 3, - maxDistance: (tileSize * 2).toInt(), + maxDistance: tileSize * 2, ); return false; }, diff --git a/lib/views/settings/laboratory/game/mini_game/components/boss.dart b/lib/views/settings/laboratory/game/mini_game/components/boss.dart index a87a65d..0764495 100644 --- a/lib/views/settings/laboratory/game/mini_game/components/boss.dart +++ b/lib/views/settings/laboratory/game/mini_game/components/boss.dart @@ -9,7 +9,7 @@ import 'orc.dart'; double tileSize = 20.0; class Boss extends SimpleEnemy - with AutomaticRandomMovement, BlockMovementCollision, UseLifeBar { + with RandomMovement, BlockMovementCollision, UseLifeBar { Boss(Vector2 position) : super( position: position, @@ -76,7 +76,7 @@ class Boss extends SimpleEnemy runRandomMovement( dt, speed: speed / 1.5, - maxDistance: (tileSize * 100).toInt(), + maxDistance: tileSize * 100, ); return false; }, diff --git a/lib/views/settings/laboratory/game/mini_game/components/orc.dart b/lib/views/settings/laboratory/game/mini_game/components/orc.dart index ad803f5..2f4250f 100644 --- a/lib/views/settings/laboratory/game/mini_game/components/orc.dart +++ b/lib/views/settings/laboratory/game/mini_game/components/orc.dart @@ -9,7 +9,7 @@ import 'boss.dart'; double tileSize = 20.0; class Orc extends SimpleEnemy - with AutomaticRandomMovement, BlockMovementCollision, UseLifeBar { + with RandomMovement, BlockMovementCollision, UseLifeBar { Orc(Vector2 position) : super( position: position, @@ -89,7 +89,7 @@ class Orc extends SimpleEnemy runRandomMovement( dt, speed: speed, - maxDistance: (tileSize * 100).toInt(), + maxDistance: tileSize * 100, ); return false; }, diff --git a/pubspec.lock b/pubspec.lock index 98270e1..2aeb6ca 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -45,10 +45,10 @@ packages: dependency: "direct main" description: name: bonfire - sha256: "55b1506fd18b62239bfe96686ba15888b7bad500410b8368ebd07f5b16c71f8e" + sha256: a9e663a20bb1073dd987fbde6b98bb1351b819e5e7c894ffe3c021bf010ff021 url: "https://pub.dev" source: hosted - version: "3.8.5" + version: "3.8.7" boolean_selector: dependency: transitive description: @@ -235,20 +235,19 @@ packages: flutter_screen_lock: dependency: "direct main" description: - path: "." - ref: HEAD - resolved-ref: "9df6900d6998ab5f359ed2477197d4a38bc9fc95" - url: "https://github.com/Allenxuxu/flutter_screen_lock" - source: git - version: "9.0.2" + name: flutter_screen_lock + sha256: "5c09314747a70d8e1259a1d787f49f4f29d6eae224cd9b2f045e513e8408cbcc" + url: "https://pub.dev" + source: hosted + version: "9.0.3" flutter_screenutil: dependency: "direct main" description: name: flutter_screenutil - sha256: "8cf100b8e4973dc570b6415a2090b0bfaa8756ad333db46939efc3e774ee100d" + sha256: b372c35a772a1dc84142a3b9c5ee89a390834bd258e5e6a450d9b975b985d1c9 url: "https://pub.dev" source: hosted - version: "5.9.0" + version: "5.9.1" flutter_slidable: dependency: "direct main" description: @@ -910,10 +909,10 @@ packages: dependency: transitive description: name: win32 - sha256: "0eaf06e3446824099858367950a813472af675116bf63f008a4c2a75ae13e9cb" + sha256: a79dbe579cb51ecd6d30b17e0cae4e0ea15e2c0e66f69ad4198f22a6789e94f4 url: "https://pub.dev" source: hosted - version: "5.5.0" + version: "5.5.1" xdg_directories: dependency: transitive description: @@ -931,5 +930,5 @@ packages: source: hosted version: "6.5.0" sdks: - dart: ">=3.3.0 <4.0.0" + dart: ">=3.4.0 <4.0.0" flutter: ">=3.19.0" diff --git a/pubspec.yaml b/pubspec.yaml index cb48e2c..a059913 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,7 +4,7 @@ publish_to: 'none' version: 1.9.10+455 environment: - sdk: ">=3.3.0 <4.0.0" + sdk: ">=3.4.0 <4.0.0" dependencies: flutter: @@ -14,7 +14,7 @@ dependencies: intl: ^0.19.0 # i18n/l10n 处理 path: ^1.9.0 path_provider: ^2.1.3 # 路径 - flutter_screenutil: ^5.9.0 # UI 自适应工具 + flutter_screenutil: ^5.9.1 # UI 自适应工具 provider: ^6.1.2 # 状态管理 sqflite: ^2.3.3+1 # 数据库 shared_preferences: ^2.2.3 # 共享存储 @@ -34,10 +34,9 @@ dependencies: awesome_notifications: ^0.9.3+1 # 本地通知 flutter_timezone: ^1.0.8 # 时区 animations: ^2.0.11 # 动画 - bonfire: 3.8.5 # 游戏引擎相关 + bonfire: 3.8.7 # 游戏引擎相关 flame: 1.17.0 # 游戏引擎相关 - flutter_screen_lock: # ^9.0.2 # 密码锁 - git: https://github.com/Allenxuxu/flutter_screen_lock + flutter_screen_lock: ^9.0.3 # 密码锁 local_auth: ^2.2.0 # 本地认证 local_auth_android: ^1.0.38 # 本地认证 local_auth_darwin: ^1.3.0 # 本地认证