feat(m6): store hardening with r8, release pipeline, symbols and store assets
This commit is contained in:
@@ -12,6 +12,9 @@ const double kWorldWidth = 2048;
|
||||
const double kWorldHeight = 1152;
|
||||
const int kSamplePx = 2;
|
||||
|
||||
/// Must match `sim::state::MAX_HP`.
|
||||
const int kTankMaxHp = 150;
|
||||
|
||||
/// Immutable HUD snapshot, only replaced when something actually changed.
|
||||
@immutable
|
||||
class HudState {
|
||||
@@ -380,7 +383,7 @@ class IronArcGame extends FlameGame {
|
||||
);
|
||||
|
||||
// Health bar.
|
||||
final hp = _match.tankHp(player).clamp(0, 100) / 100.0;
|
||||
final hp = _match.tankHp(player).clamp(0, kTankMaxHp) / kTankMaxHp;
|
||||
final barRect = RRect.fromRectAndRadius(
|
||||
Rect.fromLTWH(x - 30, y - 46, 60, 8),
|
||||
const Radius.circular(4),
|
||||
|
||||
Reference in New Issue
Block a user