fds-vue-core 8.12.2 → 8.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/IconRescue/IconRescueIcon.vue.d.ts +3 -1
- package/dist/components/IconRescue/iconGame.d.ts +55 -5
- package/dist/components/IconRescue/iconTargets.d.ts +1 -12
- package/dist/components/IconRescue/types.d.ts +2 -2
- package/dist/composables/useCancellationRuleText.d.ts +4 -0
- package/dist/fds-vue-core.cjs.js +127 -42
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.css +1 -1
- package/dist/fds-vue-core.es.js +124 -43
- package/dist/fds-vue-core.es.js.map +1 -1
- package/dist/helpers/cancellationRule.d.ts +22 -0
- package/dist/index.d.ts +4 -1
- package/dist/plugin/useFdsI18n.d.ts +2 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/components/IconRescue/IconRescue.stories.ts +175 -22
- package/src/components/IconRescue/IconRescueIcon.vue +623 -176
- package/src/components/IconRescue/iconGame.ts +67 -18
- package/src/components/IconRescue/iconTargets.ts +1 -20
- package/src/components/IconRescue/types.ts +2 -2
- package/src/composables/useCancellationRuleText.ts +14 -0
- package/src/helpers/cancellationRule.spec.ts +70 -0
- package/src/helpers/cancellationRule.ts +77 -0
- package/src/index.ts +13 -0
- package/src/lang/en.json +32 -20
- package/src/lang/sv.json +32 -20
- package/src/plugin/useFdsI18n.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { computed, onBeforeUnmount, ref, shallowRef, watch } from 'vue'
|
|
2
|
+
import { computed, onBeforeUnmount, type Ref, ref, shallowRef, watch } from 'vue'
|
|
3
3
|
import icons, { type IconMap } from '../../assets/icons'
|
|
4
4
|
import {
|
|
5
5
|
type DamageType,
|
|
@@ -11,14 +11,7 @@ import {
|
|
|
11
11
|
type SynergyId,
|
|
12
12
|
type WeaponId,
|
|
13
13
|
} from './iconGame'
|
|
14
|
-
import {
|
|
15
|
-
dropExperienceGem,
|
|
16
|
-
enemyIconTargets,
|
|
17
|
-
type ExperienceGem,
|
|
18
|
-
experienceGems,
|
|
19
|
-
type IconTarget,
|
|
20
|
-
playerIconTargets,
|
|
21
|
-
} from './iconTargets'
|
|
14
|
+
import { enemyIconTargets, type IconTarget, playerIconTargets } from './iconTargets'
|
|
22
15
|
import type { IconRescueIconProps } from './types'
|
|
23
16
|
|
|
24
17
|
const props = withDefaults(defineProps<IconRescueIconProps>(), {
|
|
@@ -46,10 +39,9 @@ const emit = defineEmits<{
|
|
|
46
39
|
(e: 'experience', amount: number): void
|
|
47
40
|
(e: 'summon', point: { x: number; y: number }): void
|
|
48
41
|
(e: 'crate', reward: 'laserBeam' | 'homingLaser' | 'weaponUpgrade'): void
|
|
42
|
+
(e: 'health', current: number): void
|
|
49
43
|
}>()
|
|
50
44
|
|
|
51
|
-
const headshotText = 'Headshoooot!'
|
|
52
|
-
|
|
53
45
|
function normalizeSvg(svg: string): string {
|
|
54
46
|
// Replace explicit width/height with 100% to allow container sizing
|
|
55
47
|
return svg.replace(/width="(.*?)"/g, 'width="100%"').replace(/height="(.*?)"/g, 'height="100%"')
|
|
@@ -78,6 +70,7 @@ interface IconShot {
|
|
|
78
70
|
id: number
|
|
79
71
|
kind: 'laser' | 'charged' | 'shock'
|
|
80
72
|
points: string
|
|
73
|
+
lengthShare: number
|
|
81
74
|
}
|
|
82
75
|
|
|
83
76
|
const animatedRootRef = ref<HTMLElement | null>(null)
|
|
@@ -114,9 +107,9 @@ function createShotPoints(
|
|
|
114
107
|
return points.join(' ')
|
|
115
108
|
}
|
|
116
109
|
|
|
117
|
-
function addShot(kind: IconShot['kind'], points: string) {
|
|
110
|
+
function addShot(kind: IconShot['kind'], points: string, lengthShare = 1) {
|
|
118
111
|
const id = nextShotId++
|
|
119
|
-
shots.value.push({ id, kind, points })
|
|
112
|
+
shots.value.push({ id, kind, points, lengthShare })
|
|
120
113
|
setTimeout(() => {
|
|
121
114
|
shots.value = shots.value.filter((shot) => shot.id !== id)
|
|
122
115
|
}, 700)
|
|
@@ -230,9 +223,9 @@ const weaponBarrels = [
|
|
|
230
223
|
{ spreadAngle: 0, sideOffset: 8 },
|
|
231
224
|
],
|
|
232
225
|
[
|
|
233
|
-
{ spreadAngle:
|
|
226
|
+
{ spreadAngle: 0, sideOffset: -12 },
|
|
234
227
|
{ spreadAngle: 0, sideOffset: 0 },
|
|
235
|
-
{ spreadAngle: 0
|
|
228
|
+
{ spreadAngle: 0, sideOffset: 12 },
|
|
236
229
|
],
|
|
237
230
|
]
|
|
238
231
|
const barrelLevel = ref(0)
|
|
@@ -247,20 +240,39 @@ function getLaserDamage(isCharged: boolean) {
|
|
|
247
240
|
|
|
248
241
|
function fireBeam(centerX: number, centerY: number, iconRadius: number, angle: number, isCharged: boolean) {
|
|
249
242
|
const screenLength = Math.max(window.innerWidth, window.innerHeight)
|
|
250
|
-
addShot(isCharged ? 'charged' : 'laser', createShotPoints(centerX, centerY, iconRadius, angle, screenLength, 0))
|
|
251
|
-
|
|
252
243
|
const startX = centerX + Math.cos(angle) * iconRadius
|
|
253
244
|
const startY = centerY + Math.sin(angle) * iconRadius
|
|
254
245
|
const laserDamage = getLaserDamage(isCharged)
|
|
246
|
+
const hitTolerance = isCharged ? 24 : 6
|
|
247
|
+
|
|
248
|
+
const targetsOnLine = getLivingEnemies()
|
|
249
|
+
.filter((target) => isOnShotLine(target, startX, startY, angle, hitTolerance))
|
|
250
|
+
.map((target) => {
|
|
251
|
+
const bounds = target.getBounds()
|
|
252
|
+
const distance = bounds ? getDistance({ x: startX, y: startY }, getCenter(bounds)) : 0
|
|
253
|
+
return { target, distance }
|
|
254
|
+
})
|
|
255
|
+
.sort((first, second) => first.distance - second.distance)
|
|
256
|
+
const hitTargets: typeof targetsOnLine = []
|
|
257
|
+
let isStopped = false
|
|
258
|
+
for (const entry of targetsOnLine) {
|
|
259
|
+
hitTargets.push(entry)
|
|
260
|
+
if (!isCharged && Math.random() >= props.stats.pierceChance) {
|
|
261
|
+
isStopped = true
|
|
262
|
+
break
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
const beamLength = isStopped ? (hitTargets.at(-1)?.distance ?? screenLength) : screenLength
|
|
266
|
+
addShot(
|
|
267
|
+
isCharged ? 'charged' : 'laser',
|
|
268
|
+
createShotPoints(centerX, centerY, iconRadius, angle, beamLength, 0),
|
|
269
|
+
beamLength / screenLength,
|
|
270
|
+
)
|
|
255
271
|
|
|
256
|
-
for (const target of
|
|
257
|
-
const
|
|
258
|
-
if (!targetBounds) continue
|
|
259
|
-
const targetCenter = getCenter(targetBounds)
|
|
260
|
-
const arrivalTime =
|
|
261
|
-
(Math.hypot(targetCenter.x - startX, targetCenter.y - startY) / screenLength) * laserFlightDuration
|
|
272
|
+
for (const { target, distance } of hitTargets) {
|
|
273
|
+
const arrivalTime = (distance / screenLength) * laserFlightDuration
|
|
262
274
|
setTimeout(() => {
|
|
263
|
-
if (!isOnShotLine(target, startX, startY, angle,
|
|
275
|
+
if (!isOnShotLine(target, startX, startY, angle, hitTolerance)) return
|
|
264
276
|
const hitBounds = target.getBounds()
|
|
265
277
|
dealDamage(target, laserDamage, 'laser')
|
|
266
278
|
if (hasSynergy('plasmaLaser') && hitBounds) {
|
|
@@ -268,45 +280,53 @@ function fireBeam(centerX: number, centerY: number, iconRadius: number, angle: n
|
|
|
268
280
|
}
|
|
269
281
|
}, arrivalTime)
|
|
270
282
|
}
|
|
283
|
+
}
|
|
271
284
|
|
|
272
|
-
|
|
285
|
+
interface Pickup extends Point {
|
|
286
|
+
spawnTime: number
|
|
287
|
+
isExpiring: boolean
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
const pickupLifetime = 15000
|
|
291
|
+
const pickupWarningTime = 5000
|
|
292
|
+
|
|
293
|
+
function expirePickup(pickup: Ref<Pickup | null>, now: number) {
|
|
294
|
+
if (!pickup.value) return
|
|
295
|
+
const age = now - pickup.value.spawnTime
|
|
296
|
+
if (age >= pickupLifetime) pickup.value = null
|
|
297
|
+
else if (age >= pickupLifetime - pickupWarningTime && !pickup.value.isExpiring) {
|
|
298
|
+
pickup.value = { ...pickup.value, isExpiring: true }
|
|
299
|
+
}
|
|
273
300
|
}
|
|
274
301
|
|
|
275
302
|
const heartSize = 36
|
|
276
|
-
const heart = ref<
|
|
303
|
+
const heart = ref<Pickup | null>(null)
|
|
277
304
|
let heartInterval: ReturnType<typeof setInterval> | undefined
|
|
278
|
-
let heartTimeout: ReturnType<typeof setTimeout> | undefined
|
|
279
305
|
|
|
280
306
|
function showHeart() {
|
|
281
|
-
|
|
307
|
+
const isAtFullHealth = healthPoints.value >= props.stats.maxHealth
|
|
308
|
+
if (heart.value || isAtFullHealth || isDestroyed.value || props.paused || Math.random() < 0.5) return
|
|
282
309
|
heart.value = {
|
|
283
310
|
x: Math.random() * Math.max(window.innerWidth - heartSize, 0),
|
|
284
311
|
y: Math.random() * Math.max(window.innerHeight - heartSize, 0),
|
|
312
|
+
spawnTime: getGameTime(),
|
|
313
|
+
isExpiring: false,
|
|
285
314
|
}
|
|
286
|
-
clearTimeout(heartTimeout)
|
|
287
|
-
heartTimeout = setTimeout(() => {
|
|
288
|
-
heart.value = null
|
|
289
|
-
}, 8000)
|
|
290
315
|
}
|
|
291
316
|
|
|
292
|
-
function
|
|
293
|
-
|
|
294
|
-
const
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
clearTimeout(heartTimeout)
|
|
306
|
-
heal(1)
|
|
307
|
-
},
|
|
308
|
-
(distanceAlongShot / screenLength) * laserFlightDuration,
|
|
309
|
-
)
|
|
317
|
+
function pickUpHeart(playerBounds: DOMRect) {
|
|
318
|
+
if (!heart.value) return
|
|
319
|
+
const heartCenter = { x: heart.value.x + heartSize / 2, y: heart.value.y + heartSize / 2 }
|
|
320
|
+
if (getDistance(getCenter(playerBounds), heartCenter) > (playerBounds.width + heartSize) / 2) return
|
|
321
|
+
heart.value = null
|
|
322
|
+
heal(1)
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
const crosshairRef = ref<SVGSVGElement | null>(null)
|
|
326
|
+
const isAiming = computed(() => props.laser && !props.paused && !isDestroyed.value)
|
|
327
|
+
|
|
328
|
+
function moveCrosshair(event: PointerEvent) {
|
|
329
|
+
if (crosshairRef.value) crosshairRef.value.style.transform = `translate3d(${event.clientX}px, ${event.clientY}px, 0)`
|
|
310
330
|
}
|
|
311
331
|
|
|
312
332
|
function fireLaser(aimX: number, aimY: number, isCharged: boolean) {
|
|
@@ -654,6 +674,14 @@ function updateAutomaticWeapons(now: number, center: Point) {
|
|
|
654
674
|
const chargeState = ref<'idle' | 'charging' | 'charged'>('idle')
|
|
655
675
|
let chargeStartTime: number | undefined
|
|
656
676
|
let chargeTimeout: ReturnType<typeof setTimeout> | undefined
|
|
677
|
+
let laserReadyTime = 0
|
|
678
|
+
|
|
679
|
+
function getLaserFireCooldown() {
|
|
680
|
+
const { fireCooldown, fireCooldownPerLevel } = gameBalance.laser
|
|
681
|
+
return (
|
|
682
|
+
(fireCooldown - fireCooldownPerLevel * (Math.max(getWeaponLevel('laser'), 1) - 1)) * props.stats.cooldownMultiplier
|
|
683
|
+
)
|
|
684
|
+
}
|
|
657
685
|
|
|
658
686
|
function startCharge(event: PointerEvent) {
|
|
659
687
|
if (event.button !== 0 || isDestroyed.value || props.paused) return
|
|
@@ -675,7 +703,10 @@ function releaseCharge(event: PointerEvent) {
|
|
|
675
703
|
if (chargeStartTime === undefined) return
|
|
676
704
|
const isCharged = performance.now() - chargeStartTime >= chargedShotTime
|
|
677
705
|
cancelCharge()
|
|
678
|
-
|
|
706
|
+
const now = getGameTime()
|
|
707
|
+
if (props.paused || now < laserReadyTime) return
|
|
708
|
+
laserReadyTime = now + getLaserFireCooldown()
|
|
709
|
+
fireLaser(event.clientX, event.clientY, isCharged)
|
|
679
710
|
}
|
|
680
711
|
|
|
681
712
|
function stopShooting() {
|
|
@@ -702,7 +733,7 @@ function takeDamage(damage: number): boolean {
|
|
|
702
733
|
return false
|
|
703
734
|
}
|
|
704
735
|
const bounds = getOwnBounds()
|
|
705
|
-
if (bounds) showExplosion(getCenter(bounds)
|
|
736
|
+
if (bounds) showExplosion(getCenter(bounds))
|
|
706
737
|
isExploding.value = true
|
|
707
738
|
return true
|
|
708
739
|
}
|
|
@@ -714,6 +745,10 @@ function heal(amount: number) {
|
|
|
714
745
|
|
|
715
746
|
defineExpose({ heal })
|
|
716
747
|
|
|
748
|
+
watch(healthPoints, (current) => {
|
|
749
|
+
if (props.laser) emit('health', current)
|
|
750
|
+
})
|
|
751
|
+
|
|
717
752
|
function getOwnBounds(): DOMRect | undefined {
|
|
718
753
|
if (props.laser) return getPlayerBounds()
|
|
719
754
|
if (props.flying) return getEnemyBounds()
|
|
@@ -730,6 +765,11 @@ function getEnemyExperience(): number {
|
|
|
730
765
|
function getEnemyPoints(): number {
|
|
731
766
|
if (props.boss) return 2000
|
|
732
767
|
if (props.enemyKind === 'sniper') return 250
|
|
768
|
+
if (props.enemyKind === 'teleporter' || props.enemyKind === 'bomber') return 300
|
|
769
|
+
if (props.enemyKind === 'shielded' || props.enemyKind === 'healer') return 350
|
|
770
|
+
if (props.enemyKind === 'hive') return 400
|
|
771
|
+
if (props.enemyKind === 'dasher') return 250
|
|
772
|
+
if (props.enemyKind === 'shotgun') return 250
|
|
733
773
|
if (props.enemyKind === 'splitter') return 200
|
|
734
774
|
if (props.enemyKind === 'kamikaze') return 150
|
|
735
775
|
if (props.enemyKind === 'swarm') return 50
|
|
@@ -799,14 +839,15 @@ const enemyTarget: IconTarget = {
|
|
|
799
839
|
isHittable: () => !isExploding.value && !isDestroyed.value,
|
|
800
840
|
hit: (damage, damageType, isCritical = false) => {
|
|
801
841
|
if (!enemyTarget.isHittable()) return 0
|
|
842
|
+
if (isShieldUp.value) return 0
|
|
802
843
|
showDamageNumber(damage, damageType, isCritical)
|
|
803
844
|
if (!takeDamage(damage)) return 0
|
|
804
845
|
const bounds = getEnemyBounds()
|
|
805
846
|
if (bounds) {
|
|
806
847
|
const center = getCenter(bounds)
|
|
807
848
|
if (props.enemyKind === 'splitter') emit('split', center)
|
|
808
|
-
dropExperienceGem(center, getEnemyExperience(), gameBalance.maxGemsOnScreen)
|
|
809
849
|
}
|
|
850
|
+
emit('experience', getEnemyExperience())
|
|
810
851
|
isExploding.value = false
|
|
811
852
|
isDestroyed.value = true
|
|
812
853
|
explosionTimeout = setTimeout(() => emit('destroyed'), 700)
|
|
@@ -815,12 +856,79 @@ const enemyTarget: IconTarget = {
|
|
|
815
856
|
crash: () => {
|
|
816
857
|
const diesOnCrash = props.enemyKind === 'kamikaze' || props.enemyKind === 'swarm'
|
|
817
858
|
return {
|
|
818
|
-
damageToPlayer: props.enemyKind === 'kamikaze' ? 2 : 1,
|
|
859
|
+
damageToPlayer: props.enemyKind === 'kamikaze' || props.enemyKind === 'dasher' ? 2 : 1,
|
|
819
860
|
points: enemyTarget.hit(diesOnCrash ? healthPoints.value : 1, 'crash'),
|
|
820
861
|
}
|
|
821
862
|
},
|
|
822
863
|
applyStatus,
|
|
823
864
|
hasStatus,
|
|
865
|
+
heal: (share) => {
|
|
866
|
+
if (!enemyTarget.isHittable() || props.boss) return
|
|
867
|
+
healthPoints.value = Math.min(healthPoints.value + maxHealthPoints.value * share, maxHealthPoints.value)
|
|
868
|
+
showHealGlow()
|
|
869
|
+
},
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
const isShieldUp = ref(false)
|
|
873
|
+
const isHealGlowing = ref(false)
|
|
874
|
+
let healGlowTimeout: ReturnType<typeof setTimeout> | undefined
|
|
875
|
+
let nextShieldChangeTime: number | undefined
|
|
876
|
+
let nextDashTime: number | undefined
|
|
877
|
+
let nextHealTime: number | undefined
|
|
878
|
+
let nextHiveSummonTime: number | undefined
|
|
879
|
+
|
|
880
|
+
function showHealGlow() {
|
|
881
|
+
isHealGlowing.value = true
|
|
882
|
+
clearTimeout(healGlowTimeout)
|
|
883
|
+
healGlowTimeout = setTimeout(() => {
|
|
884
|
+
isHealGlowing.value = false
|
|
885
|
+
}, 500)
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
function isReady(readyTime: number | undefined, now: number) {
|
|
889
|
+
return readyTime !== undefined && now >= readyTime
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
function updateShield(now: number) {
|
|
893
|
+
const { shieldTime, openTime } = gameBalance.shielded
|
|
894
|
+
if (nextShieldChangeTime === undefined) nextShieldChangeTime = now + openTime
|
|
895
|
+
if (!isReady(nextShieldChangeTime, now)) return
|
|
896
|
+
isShieldUp.value = !isShieldUp.value
|
|
897
|
+
nextShieldChangeTime = now + (isShieldUp.value ? shieldTime : openTime)
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
function startDashWhenReady(now: number) {
|
|
901
|
+
const { cooldown, warningTime } = gameBalance.dasher
|
|
902
|
+
if (nextDashTime === undefined) nextDashTime = now + cooldown * Math.random()
|
|
903
|
+
if (!isReady(nextDashTime, now) || bossChargeState !== 'idle') return
|
|
904
|
+
bossChargeState = 'warning'
|
|
905
|
+
bossChargeEndTime = now + warningTime
|
|
906
|
+
nextDashTime = now + cooldown + Math.random() * 1000
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
function healNearbyEnemies(now: number) {
|
|
910
|
+
const { interval, range, healShare } = gameBalance.healer
|
|
911
|
+
if (nextHealTime === undefined) nextHealTime = now + interval
|
|
912
|
+
if (!isReady(nextHealTime, now)) return
|
|
913
|
+
nextHealTime = now + interval
|
|
914
|
+
const bounds = getEnemyBounds()
|
|
915
|
+
if (!bounds) return
|
|
916
|
+
const center = getCenter(bounds)
|
|
917
|
+
showHealGlow()
|
|
918
|
+
for (const enemy of enemyIconTargets) {
|
|
919
|
+
const enemyBounds = enemy.getBounds()
|
|
920
|
+
if (enemy === enemyTarget || !enemyBounds || getDistance(center, getCenter(enemyBounds)) > range) continue
|
|
921
|
+
enemy.heal?.(healShare)
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
function summonFromHive(now: number) {
|
|
926
|
+
const { summonInterval } = gameBalance.hive
|
|
927
|
+
if (nextHiveSummonTime === undefined) nextHiveSummonTime = now + summonInterval / 2
|
|
928
|
+
if (!isReady(nextHiveSummonTime, now)) return
|
|
929
|
+
nextHiveSummonTime = now + summonInterval
|
|
930
|
+
const bounds = getEnemyBounds()
|
|
931
|
+
if (bounds) emit('summon', getCenter(bounds))
|
|
824
932
|
}
|
|
825
933
|
|
|
826
934
|
const isInvulnerable = ref(false)
|
|
@@ -856,19 +964,18 @@ interface Explosion {
|
|
|
856
964
|
x: number
|
|
857
965
|
y: number
|
|
858
966
|
particles: Point[]
|
|
859
|
-
isHeadshot: boolean
|
|
860
967
|
}
|
|
861
968
|
|
|
862
969
|
const explosion = ref<Explosion | null>(null)
|
|
863
970
|
let explosionAnimationTimeout: ReturnType<typeof setTimeout> | undefined
|
|
864
971
|
|
|
865
|
-
function showExplosion(center: Point
|
|
972
|
+
function showExplosion(center: Point) {
|
|
866
973
|
const particles = Array.from({ length: 16 }, () => {
|
|
867
974
|
const angle = Math.random() * Math.PI * 2
|
|
868
975
|
const distance = 50 + Math.random() * 90
|
|
869
976
|
return { x: Math.cos(angle) * distance, y: Math.sin(angle) * distance }
|
|
870
977
|
})
|
|
871
|
-
explosion.value = { ...center, particles
|
|
978
|
+
explosion.value = { ...center, particles }
|
|
872
979
|
clearTimeout(explosionAnimationTimeout)
|
|
873
980
|
explosionAnimationTimeout = setTimeout(() => {
|
|
874
981
|
explosion.value = null
|
|
@@ -973,43 +1080,6 @@ function applyPlayerPosition() {
|
|
|
973
1080
|
if (element) element.style.transform = `translate3d(${playerOffset.x}px, ${playerOffset.y}px, 0)`
|
|
974
1081
|
}
|
|
975
1082
|
|
|
976
|
-
function updateGems(seconds: number, playerCenter: Point, playerRadius: number) {
|
|
977
|
-
if (!experienceGems.value.length) return
|
|
978
|
-
const isWaveCleared = getLivingEnemies().length === 0
|
|
979
|
-
let hasChanged = false
|
|
980
|
-
let collectedExperience = 0
|
|
981
|
-
const remainingGems: ExperienceGem[] = []
|
|
982
|
-
|
|
983
|
-
for (const gem of experienceGems.value) {
|
|
984
|
-
const distance = getDistance(gem, playerCenter)
|
|
985
|
-
if (distance < playerRadius + 6) {
|
|
986
|
-
collectedExperience += gem.value
|
|
987
|
-
hasChanged = true
|
|
988
|
-
continue
|
|
989
|
-
}
|
|
990
|
-
if (!gem.isMagnetized && !isWaveCleared && distance > props.stats.pickupRadius) {
|
|
991
|
-
remainingGems.push(gem)
|
|
992
|
-
continue
|
|
993
|
-
}
|
|
994
|
-
const step = Math.min(gameBalance.gemMagnetPixelsPerSecond * seconds, distance)
|
|
995
|
-
remainingGems.push({
|
|
996
|
-
...gem,
|
|
997
|
-
isMagnetized: true,
|
|
998
|
-
x: gem.x + ((playerCenter.x - gem.x) / distance) * step,
|
|
999
|
-
y: gem.y + ((playerCenter.y - gem.y) / distance) * step,
|
|
1000
|
-
})
|
|
1001
|
-
hasChanged = true
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
if (hasChanged) experienceGems.value = remainingGems
|
|
1005
|
-
if (collectedExperience > 0) emit('experience', collectedExperience)
|
|
1006
|
-
}
|
|
1007
|
-
|
|
1008
|
-
function getGemPoints(gem: ExperienceGem) {
|
|
1009
|
-
const size = gem.value >= 10 ? 9 : gem.value >= 4 ? 7 : 5
|
|
1010
|
-
return `${gem.x},${gem.y - size} ${gem.x + size * 0.7},${gem.y} ${gem.x},${gem.y + size} ${gem.x - size * 0.7},${gem.y}`
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
1083
|
function findCrashedEnemy(playerBounds: DOMRect): IconTarget | undefined {
|
|
1014
1084
|
const playerCenter = getCenter(playerBounds)
|
|
1015
1085
|
for (const enemy of enemyIconTargets) {
|
|
@@ -1041,12 +1111,14 @@ function movePlayer() {
|
|
|
1041
1111
|
if (playerBounds) {
|
|
1042
1112
|
const playerCenter = getCenter(playerBounds)
|
|
1043
1113
|
pickUpCrate(playerBounds)
|
|
1114
|
+
pickUpHeart(playerBounds)
|
|
1115
|
+
expirePickup(crate, now)
|
|
1116
|
+
expirePickup(heart, now)
|
|
1044
1117
|
updateAutomaticWeapons(now, playerCenter)
|
|
1045
1118
|
updateFireballs(now, playerCenter)
|
|
1046
1119
|
updateRockets(now, seconds)
|
|
1047
1120
|
updateHomingLasers(now, seconds)
|
|
1048
1121
|
updateIceChunks(now)
|
|
1049
|
-
updateGems(seconds, playerCenter, playerBounds.width / 2)
|
|
1050
1122
|
const crashedEnemy = playerTarget.isHittable() ? findCrashedEnemy(playerBounds) : undefined
|
|
1051
1123
|
if (crashedEnemy?.crash) {
|
|
1052
1124
|
const crashResult = crashedEnemy.crash()
|
|
@@ -1060,7 +1132,7 @@ function movePlayer() {
|
|
|
1060
1132
|
}
|
|
1061
1133
|
|
|
1062
1134
|
const crateSize = 40
|
|
1063
|
-
const crate = ref<
|
|
1135
|
+
const crate = ref<Pickup | null>(null)
|
|
1064
1136
|
let crateInterval: ReturnType<typeof setInterval> | undefined
|
|
1065
1137
|
|
|
1066
1138
|
function dropCrate() {
|
|
@@ -1068,6 +1140,8 @@ function dropCrate() {
|
|
|
1068
1140
|
crate.value = {
|
|
1069
1141
|
x: Math.random() * Math.max(window.innerWidth - crateSize, 0),
|
|
1070
1142
|
y: Math.random() * Math.max(window.innerHeight - crateSize, 0),
|
|
1143
|
+
spawnTime: getGameTime(),
|
|
1144
|
+
isExpiring: false,
|
|
1071
1145
|
}
|
|
1072
1146
|
}
|
|
1073
1147
|
|
|
@@ -1094,6 +1168,7 @@ function pickUpCrate(playerBounds: DOMRect) {
|
|
|
1094
1168
|
|
|
1095
1169
|
function stopPlaying() {
|
|
1096
1170
|
window.removeEventListener('pointerdown', startCharge)
|
|
1171
|
+
window.removeEventListener('pointermove', moveCrosshair)
|
|
1097
1172
|
window.removeEventListener('pointerup', releaseCharge)
|
|
1098
1173
|
window.removeEventListener('keydown', handleKeyDown, true)
|
|
1099
1174
|
window.removeEventListener('keyup', handleKeyUp, true)
|
|
@@ -1111,7 +1186,6 @@ function stopPlaying() {
|
|
|
1111
1186
|
crateInterval = undefined
|
|
1112
1187
|
crate.value = null
|
|
1113
1188
|
clearInterval(heartInterval)
|
|
1114
|
-
clearTimeout(heartTimeout)
|
|
1115
1189
|
heartInterval = undefined
|
|
1116
1190
|
heart.value = null
|
|
1117
1191
|
rockets.value = []
|
|
@@ -1127,7 +1201,6 @@ watch(
|
|
|
1127
1201
|
stopPlaying()
|
|
1128
1202
|
if (!laser || !element) return
|
|
1129
1203
|
healthPoints.value = props.stats.maxHealth
|
|
1130
|
-
experienceGems.value = []
|
|
1131
1204
|
isDestroyed.value = false
|
|
1132
1205
|
playerOffset = { x: 0, y: 0 }
|
|
1133
1206
|
applyPlayerPosition()
|
|
@@ -1135,10 +1208,12 @@ watch(
|
|
|
1135
1208
|
barrelLevel.value = 0
|
|
1136
1209
|
homingLaserCount.value = 0
|
|
1137
1210
|
dashReadyTime = 0
|
|
1211
|
+
laserReadyTime = 0
|
|
1138
1212
|
crateInterval = setInterval(dropCrate, 45000)
|
|
1139
1213
|
heartInterval = setInterval(showHeart, 15000)
|
|
1140
1214
|
playerIconTargets.add(playerTarget)
|
|
1141
1215
|
window.addEventListener('pointerdown', startCharge)
|
|
1216
|
+
window.addEventListener('pointermove', moveCrosshair)
|
|
1142
1217
|
window.addEventListener('pointerup', releaseCharge)
|
|
1143
1218
|
window.addEventListener('keydown', handleKeyDown, true)
|
|
1144
1219
|
window.addEventListener('keyup', handleKeyUp, true)
|
|
@@ -1160,7 +1235,7 @@ interface EnemyProjectile {
|
|
|
1160
1235
|
flightDuration: number
|
|
1161
1236
|
radius: number
|
|
1162
1237
|
damage: number
|
|
1163
|
-
variant: 'enemy' | 'boss' | 'sniper'
|
|
1238
|
+
variant: 'enemy' | 'boss' | 'sniper' | 'mine'
|
|
1164
1239
|
}
|
|
1165
1240
|
|
|
1166
1241
|
interface SniperAimLine {
|
|
@@ -1196,13 +1271,17 @@ function applyFlyingPosition() {
|
|
|
1196
1271
|
function getBaseHealth() {
|
|
1197
1272
|
if (props.boss) return bossMaxHealth
|
|
1198
1273
|
if (isTough.value) return 3
|
|
1274
|
+
if (props.enemyKind === 'bomber' || props.enemyKind === 'shielded' || props.enemyKind === 'healer') return 2
|
|
1275
|
+
if (props.enemyKind === 'hive') return 3
|
|
1199
1276
|
return props.enemyKind === 'splitter' ? 2 : 1
|
|
1200
1277
|
}
|
|
1201
1278
|
|
|
1202
1279
|
function getSpeedFactor() {
|
|
1203
1280
|
if (props.boss) return 0.4
|
|
1204
1281
|
if (isTough.value) return 0.6
|
|
1205
|
-
if (props.enemyKind === 'sniper') return 0.7
|
|
1282
|
+
if (props.enemyKind === 'sniper' || props.enemyKind === 'bomber') return 0.7
|
|
1283
|
+
if (props.enemyKind === 'hive') return 0.5
|
|
1284
|
+
if (props.enemyKind === 'healer') return 0.8
|
|
1206
1285
|
return 1
|
|
1207
1286
|
}
|
|
1208
1287
|
|
|
@@ -1235,6 +1314,14 @@ function getSpawnCenter(iconSize: number) {
|
|
|
1235
1314
|
y: playerCenter.y + Math.sin(angle) * safeSpawnDistance,
|
|
1236
1315
|
}
|
|
1237
1316
|
}
|
|
1317
|
+
return getRandomPointAwayFromPlayer(iconSize)
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
function getRandomPointAwayFromPlayer(iconSize: number) {
|
|
1321
|
+
const playerBounds = findPlayer()?.getBounds()
|
|
1322
|
+
const playerCenter = playerBounds ? getCenter(playerBounds) : undefined
|
|
1323
|
+
const isTooClose = (point: { x: number; y: number }) =>
|
|
1324
|
+
!!playerCenter && Math.hypot(point.x - playerCenter.x, point.y - playerCenter.y) < safeSpawnDistance
|
|
1238
1325
|
let point = { x: 0, y: 0 }
|
|
1239
1326
|
for (let attempt = 0; attempt < 20; attempt++) {
|
|
1240
1327
|
point = {
|
|
@@ -1264,13 +1351,40 @@ function fireProjectile(angle: number, pixelsPerSecond: number, variant: EnemyPr
|
|
|
1264
1351
|
velocityY: Math.sin(angle) * pixelsPerSecond,
|
|
1265
1352
|
startTime: getGameTime(),
|
|
1266
1353
|
flightDuration: (Math.hypot(window.innerWidth, window.innerHeight) / pixelsPerSecond) * 1000,
|
|
1267
|
-
radius: variant === 'boss' ? 9 :
|
|
1268
|
-
damage: variant === 'boss' ? 2 : 1,
|
|
1354
|
+
radius: variant === 'boss' ? 9 : 5,
|
|
1355
|
+
damage: variant === 'boss' ? 2 : variant === 'sniper' ? gameBalance.sniperShot.damage : 1,
|
|
1269
1356
|
variant,
|
|
1270
1357
|
},
|
|
1271
1358
|
]
|
|
1272
1359
|
}
|
|
1273
1360
|
|
|
1361
|
+
function dropMine(point: Point) {
|
|
1362
|
+
enemyProjectiles.value = [
|
|
1363
|
+
...enemyProjectiles.value,
|
|
1364
|
+
{
|
|
1365
|
+
id: nextShotId++,
|
|
1366
|
+
startX: point.x,
|
|
1367
|
+
startY: point.y,
|
|
1368
|
+
velocityX: 0,
|
|
1369
|
+
velocityY: 0,
|
|
1370
|
+
startTime: getGameTime(),
|
|
1371
|
+
flightDuration: gameBalance.mines.lifetime,
|
|
1372
|
+
radius: gameBalance.mines.radius,
|
|
1373
|
+
damage: 1,
|
|
1374
|
+
variant: 'mine',
|
|
1375
|
+
},
|
|
1376
|
+
]
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
function getAngleToPlayer(): number | undefined {
|
|
1380
|
+
const bounds = getEnemyBounds()
|
|
1381
|
+
const playerBounds = findPlayer()?.getBounds()
|
|
1382
|
+
if (!bounds || !playerBounds) return undefined
|
|
1383
|
+
const center = getCenter(bounds)
|
|
1384
|
+
const playerCenter = getCenter(playerBounds)
|
|
1385
|
+
return Math.atan2(playerCenter.y - center.y, playerCenter.x - center.x)
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1274
1388
|
function getProjectileStyle(projectile: { velocityX: number; velocityY: number; flightDuration: number }) {
|
|
1275
1389
|
const seconds = projectile.flightDuration / 1000
|
|
1276
1390
|
return {
|
|
@@ -1288,7 +1402,7 @@ function fireAtPlayer() {
|
|
|
1288
1402
|
const center = getCenter(bounds)
|
|
1289
1403
|
const playerCenter = getCenter(playerBounds)
|
|
1290
1404
|
const angle = Math.atan2(playerCenter.y - center.y, playerCenter.x - center.x)
|
|
1291
|
-
const spreadAngles = props.boss ? [-0.4, -0.2, 0, 0.2, 0.4] : [0]
|
|
1405
|
+
const spreadAngles = props.boss ? [-0.4, -0.2, 0, 0.2, 0.4] : props.enemyKind === 'shotgun' ? [-0.25, 0, 0.25] : [0]
|
|
1292
1406
|
|
|
1293
1407
|
for (const spreadAngle of spreadAngles) {
|
|
1294
1408
|
fireProjectile(angle + spreadAngle, props.boss ? 320 : 220, props.boss ? 'boss' : 'enemy')
|
|
@@ -1323,7 +1437,7 @@ function updateSniper(now: number) {
|
|
|
1323
1437
|
sniperStateEndTime = now + 350
|
|
1324
1438
|
}
|
|
1325
1439
|
} else if (now >= sniperStateEndTime) {
|
|
1326
|
-
fireProjectile(sniperAimAngle,
|
|
1440
|
+
fireProjectile(sniperAimAngle, gameBalance.sniperShot.pixelsPerSecond, 'sniper')
|
|
1327
1441
|
sniperState = 'moving'
|
|
1328
1442
|
sniperAimLine.value = null
|
|
1329
1443
|
nextEnemyShotTime = now + 3000 + Math.random() * 2000
|
|
@@ -1381,6 +1495,46 @@ function scheduleNextEnemyShot(now: number) {
|
|
|
1381
1495
|
}
|
|
1382
1496
|
|
|
1383
1497
|
let bossAttackReadyTime: number | undefined
|
|
1498
|
+
let scheduledVolleys: { time: number; fire: () => void }[] = []
|
|
1499
|
+
let nextTeleportTime: number | undefined
|
|
1500
|
+
let nextMineTime: number | undefined
|
|
1501
|
+
|
|
1502
|
+
function scheduleVolleys(now: number, count: number, fire: (volleyIndex: number) => void) {
|
|
1503
|
+
for (let index = 0; index < count; index++) {
|
|
1504
|
+
scheduledVolleys.push({ time: now + index * gameBalance.bossAttacks.volleyInterval, fire: () => fire(index) })
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
function fireScheduledVolleys(now: number) {
|
|
1509
|
+
if (!scheduledVolleys.length) return
|
|
1510
|
+
const dueVolleys = scheduledVolleys.filter((volley) => now >= volley.time)
|
|
1511
|
+
if (!dueVolleys.length) return
|
|
1512
|
+
scheduledVolleys = scheduledVolleys.filter((volley) => now < volley.time)
|
|
1513
|
+
for (const volley of dueVolleys) volley.fire()
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
function teleport(now: number) {
|
|
1517
|
+
if (nextTeleportTime === undefined || now < nextTeleportTime) {
|
|
1518
|
+
nextTeleportTime ??= now + gameBalance.teleporter.minimumWait
|
|
1519
|
+
return
|
|
1520
|
+
}
|
|
1521
|
+
const { minimumWait, randomWait, shotDelay } = gameBalance.teleporter
|
|
1522
|
+
const center = getRandomPointAwayFromPlayer(enemySize)
|
|
1523
|
+
flyingPosition = { x: center.x - enemySize / 2, y: center.y - enemySize / 2 }
|
|
1524
|
+
applyFlyingPosition()
|
|
1525
|
+
nextTeleportTime = now + minimumWait + Math.random() * randomWait
|
|
1526
|
+
nextEnemyShotTime = now + shotDelay
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
function dropMinesWhenReady(now: number) {
|
|
1530
|
+
if (nextMineTime === undefined || now < nextMineTime) {
|
|
1531
|
+
nextMineTime ??= now + gameBalance.mines.dropInterval
|
|
1532
|
+
return
|
|
1533
|
+
}
|
|
1534
|
+
const bounds = getEnemyBounds()
|
|
1535
|
+
if (bounds) dropMine(getCenter(bounds))
|
|
1536
|
+
nextMineTime = now + gameBalance.mines.dropInterval
|
|
1537
|
+
}
|
|
1384
1538
|
let spiralEndTime = 0
|
|
1385
1539
|
let nextSpiralShotTime = 0
|
|
1386
1540
|
let spiralAngle = 0
|
|
@@ -1393,8 +1547,10 @@ const isEnraged = computed(
|
|
|
1393
1547
|
() => props.boss && healthPoints.value <= maxHealthPoints.value * gameBalance.bossAttacks.rageHealthShare,
|
|
1394
1548
|
)
|
|
1395
1549
|
|
|
1396
|
-
function updateBossCharge(
|
|
1397
|
-
|
|
1550
|
+
function updateBossCharge(
|
|
1551
|
+
now: number,
|
|
1552
|
+
balance: { chargeDuration: number; chargePixelsPerSecond: number } = gameBalance.bossAttacks,
|
|
1553
|
+
) {
|
|
1398
1554
|
if (bossChargeState === 'warning') {
|
|
1399
1555
|
const bounds = getEnemyBounds()
|
|
1400
1556
|
const playerBounds = findPlayer()?.getBounds()
|
|
@@ -1437,12 +1593,14 @@ function updateBossAttacks(now: number) {
|
|
|
1437
1593
|
fireProjectile(spiralAngle + Math.PI, 240, 'enemy')
|
|
1438
1594
|
}
|
|
1439
1595
|
updateBossCharge(now)
|
|
1596
|
+
fireScheduledVolleys(now)
|
|
1440
1597
|
|
|
1441
1598
|
if (bossAttackReadyTime === undefined) {
|
|
1442
1599
|
bossAttackReadyTime = now + balance.cooldown
|
|
1443
1600
|
return
|
|
1444
1601
|
}
|
|
1445
|
-
|
|
1602
|
+
const isBusy = bossChargeState !== 'idle' || now < spiralEndTime || scheduledVolleys.length > 0
|
|
1603
|
+
if (now < bossAttackReadyTime || isBusy) return
|
|
1446
1604
|
|
|
1447
1605
|
const attack = props.bossAttacks[Math.floor(Math.random() * props.bossAttacks.length)]
|
|
1448
1606
|
bossAttackReadyTime = now + balance.cooldown * (isEnraged.value ? balance.rageCooldownFactor : 1)
|
|
@@ -1462,6 +1620,33 @@ function updateBossAttacks(now: number) {
|
|
|
1462
1620
|
} else if (attack === 'charge') {
|
|
1463
1621
|
bossChargeState = 'warning'
|
|
1464
1622
|
bossChargeEndTime = now + balance.chargeWarningTime
|
|
1623
|
+
} else if (attack === 'fan') {
|
|
1624
|
+
scheduleVolleys(now, balance.fanVolleys, () => {
|
|
1625
|
+
const angle = getAngleToPlayer()
|
|
1626
|
+
if (angle === undefined) return
|
|
1627
|
+
for (let index = 0; index < balance.fanProjectiles; index++) {
|
|
1628
|
+
fireProjectile(angle + (index - (balance.fanProjectiles - 1) / 2) * 0.18, 300, 'enemy')
|
|
1629
|
+
}
|
|
1630
|
+
})
|
|
1631
|
+
} else if (attack === 'snipe') {
|
|
1632
|
+
scheduleVolleys(now, balance.snipeShots, () => {
|
|
1633
|
+
const angle = getAngleToPlayer()
|
|
1634
|
+
if (angle !== undefined) fireProjectile(angle, gameBalance.sniperShot.pixelsPerSecond, 'sniper')
|
|
1635
|
+
})
|
|
1636
|
+
} else if (attack === 'mines' && bounds) {
|
|
1637
|
+
const center = getCenter(bounds)
|
|
1638
|
+
for (let index = 0; index < balance.mineCount; index++) {
|
|
1639
|
+
const angle = (index * Math.PI * 2) / balance.mineCount
|
|
1640
|
+
const distance = 90 + Math.random() * 120
|
|
1641
|
+
dropMine({ x: center.x + Math.cos(angle) * distance, y: center.y + Math.sin(angle) * distance })
|
|
1642
|
+
}
|
|
1643
|
+
} else if (attack === 'cross') {
|
|
1644
|
+
const startAngle = Math.random() * Math.PI
|
|
1645
|
+
scheduleVolleys(now, balance.crossVolleys, (volleyIndex) => {
|
|
1646
|
+
for (let direction = 0; direction < 4; direction++) {
|
|
1647
|
+
fireProjectile(startAngle + volleyIndex * 0.3 + (direction * Math.PI) / 2, 260, 'enemy')
|
|
1648
|
+
}
|
|
1649
|
+
})
|
|
1465
1650
|
}
|
|
1466
1651
|
}
|
|
1467
1652
|
|
|
@@ -1496,10 +1681,22 @@ function fly() {
|
|
|
1496
1681
|
}
|
|
1497
1682
|
checkEnemyProjectiles(now)
|
|
1498
1683
|
if (props.boss) updateBossAttacks(now)
|
|
1684
|
+
if (props.enemyKind === 'teleporter' && !isStunned.value && enemyTarget.isHittable()) teleport(now)
|
|
1685
|
+
if (props.enemyKind === 'bomber' && !isStunned.value && enemyTarget.isHittable()) dropMinesWhenReady(now)
|
|
1686
|
+
if (enemyTarget.isHittable() && !isStunned.value) {
|
|
1687
|
+
if (props.enemyKind === 'shielded') updateShield(now)
|
|
1688
|
+
if (props.enemyKind === 'healer') healNearbyEnemies(now)
|
|
1689
|
+
if (props.enemyKind === 'hive') summonFromHive(now)
|
|
1690
|
+
if (props.enemyKind === 'dasher') {
|
|
1691
|
+
startDashWhenReady(now)
|
|
1692
|
+
updateBossCharge(now, gameBalance.dasher)
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1499
1695
|
|
|
1696
|
+
const shootsAtPlayer = !['kamikaze', 'swarm', 'bomber', 'dasher', 'healer', 'hive'].includes(props.enemyKind ?? '')
|
|
1500
1697
|
if (props.enemyKind === 'sniper') {
|
|
1501
1698
|
updateSniper(now)
|
|
1502
|
-
} else if (
|
|
1699
|
+
} else if (shootsAtPlayer && !isStunned.value) {
|
|
1503
1700
|
if (nextEnemyShotTime === undefined) {
|
|
1504
1701
|
scheduleNextEnemyShot(now)
|
|
1505
1702
|
} else if (now >= nextEnemyShotTime) {
|
|
@@ -1519,6 +1716,14 @@ function stopFlying() {
|
|
|
1519
1716
|
lastFrameTime = undefined
|
|
1520
1717
|
nextEnemyShotTime = undefined
|
|
1521
1718
|
bossAttackReadyTime = undefined
|
|
1719
|
+
scheduledVolleys = []
|
|
1720
|
+
nextShieldChangeTime = undefined
|
|
1721
|
+
nextDashTime = undefined
|
|
1722
|
+
nextHealTime = undefined
|
|
1723
|
+
nextHiveSummonTime = undefined
|
|
1724
|
+
isShieldUp.value = false
|
|
1725
|
+
nextTeleportTime = undefined
|
|
1726
|
+
nextMineTime = undefined
|
|
1522
1727
|
spiralEndTime = 0
|
|
1523
1728
|
bossChargeState = 'idle'
|
|
1524
1729
|
sniperState = 'moving'
|
|
@@ -1576,11 +1781,20 @@ const animatedRootStyle = computed(() => ({
|
|
|
1576
1781
|
'--fds-icon-recoil-y': `${recoilOffset.value.y}px`,
|
|
1577
1782
|
}))
|
|
1578
1783
|
|
|
1784
|
+
watch(
|
|
1785
|
+
isAiming,
|
|
1786
|
+
(aiming) => {
|
|
1787
|
+
if (props.laser) document.documentElement.classList.toggle('fds-icon-aiming', aiming)
|
|
1788
|
+
},
|
|
1789
|
+
{ immediate: true },
|
|
1790
|
+
)
|
|
1791
|
+
|
|
1579
1792
|
onBeforeUnmount(() => {
|
|
1580
1793
|
stopShooting()
|
|
1581
1794
|
stopPlaying()
|
|
1582
1795
|
stopFlying()
|
|
1583
1796
|
resetDamageState()
|
|
1797
|
+
if (props.laser) document.documentElement.classList.remove('fds-icon-aiming')
|
|
1584
1798
|
})
|
|
1585
1799
|
</script>
|
|
1586
1800
|
|
|
@@ -1617,6 +1831,15 @@ onBeforeUnmount(() => {
|
|
|
1617
1831
|
'fds-icon-splitter': flying && enemyKind === 'splitter',
|
|
1618
1832
|
'fds-icon-sniper': flying && enemyKind === 'sniper',
|
|
1619
1833
|
'fds-icon-swarm': flying && enemyKind === 'swarm',
|
|
1834
|
+
'fds-icon-shotgun': flying && enemyKind === 'shotgun',
|
|
1835
|
+
'fds-icon-teleporter': flying && enemyKind === 'teleporter',
|
|
1836
|
+
'fds-icon-bomber': flying && enemyKind === 'bomber',
|
|
1837
|
+
'fds-icon-dasher': flying && enemyKind === 'dasher',
|
|
1838
|
+
'fds-icon-shielded': flying && enemyKind === 'shielded',
|
|
1839
|
+
'fds-icon-shield-up': isShieldUp,
|
|
1840
|
+
'fds-icon-healer': flying && enemyKind === 'healer',
|
|
1841
|
+
'fds-icon-heal-glow': isHealGlowing,
|
|
1842
|
+
'fds-icon-hive': flying && enemyKind === 'hive',
|
|
1620
1843
|
'fds-icon-burning': isBurning,
|
|
1621
1844
|
'fds-icon-frozen': isFrozen,
|
|
1622
1845
|
'fds-icon-stunned': isStunned,
|
|
@@ -1672,7 +1895,7 @@ onBeforeUnmount(() => {
|
|
|
1672
1895
|
</span>
|
|
1673
1896
|
<span
|
|
1674
1897
|
v-if="label"
|
|
1675
|
-
class="absolute bottom-full left-1/2 -translate-x-1/2 mb-
|
|
1898
|
+
class="absolute bottom-full left-1/2 -translate-x-1/2 mb-5 px-2 rounded bg-white/80 whitespace-nowrap font-bold text-base text-red-700"
|
|
1676
1899
|
>
|
|
1677
1900
|
{{ label }}
|
|
1678
1901
|
</span>
|
|
@@ -1684,19 +1907,6 @@ onBeforeUnmount(() => {
|
|
|
1684
1907
|
<span class="block h-full bg-red-600" :style="{ width: `${(healthPoints / maxHealthPoints) * 100}%` }"></span>
|
|
1685
1908
|
</span>
|
|
1686
1909
|
<Teleport to="body">
|
|
1687
|
-
<svg
|
|
1688
|
-
v-if="laser && experienceGems.length"
|
|
1689
|
-
class="fixed inset-0 w-screen h-screen pointer-events-none z-[99998]"
|
|
1690
|
-
aria-hidden="true"
|
|
1691
|
-
>
|
|
1692
|
-
<polygon
|
|
1693
|
-
v-for="gem in experienceGems"
|
|
1694
|
-
:key="gem.id"
|
|
1695
|
-
class="fds-icon-gem"
|
|
1696
|
-
:class="{ 'fds-icon-gem-large': gem.value >= 10 }"
|
|
1697
|
-
:points="getGemPoints(gem)"
|
|
1698
|
-
/>
|
|
1699
|
-
</svg>
|
|
1700
1910
|
<svg
|
|
1701
1911
|
v-if="shots.length"
|
|
1702
1912
|
class="fixed inset-0 w-screen h-screen pointer-events-none z-[100000]"
|
|
@@ -1710,21 +1920,21 @@ onBeforeUnmount(() => {
|
|
|
1710
1920
|
class="fds-icon-laser fds-icon-laser-glow"
|
|
1711
1921
|
:class="{ 'fds-icon-laser-charged': shot.kind === 'charged' }"
|
|
1712
1922
|
:points="shot.points"
|
|
1713
|
-
pathLength="
|
|
1923
|
+
:pathLength="shot.lengthShare"
|
|
1714
1924
|
fill="none"
|
|
1715
1925
|
/>
|
|
1716
1926
|
<polyline
|
|
1717
1927
|
class="fds-icon-laser"
|
|
1718
1928
|
:class="{ 'fds-icon-laser-charged': shot.kind === 'charged' }"
|
|
1719
1929
|
:points="shot.points"
|
|
1720
|
-
pathLength="
|
|
1930
|
+
:pathLength="shot.lengthShare"
|
|
1721
1931
|
fill="none"
|
|
1722
1932
|
/>
|
|
1723
1933
|
<polyline
|
|
1724
1934
|
class="fds-icon-laser fds-icon-laser-core"
|
|
1725
1935
|
:class="{ 'fds-icon-laser-charged': shot.kind === 'charged' }"
|
|
1726
1936
|
:points="shot.points"
|
|
1727
|
-
pathLength="
|
|
1937
|
+
:pathLength="shot.lengthShare"
|
|
1728
1938
|
fill="none"
|
|
1729
1939
|
/>
|
|
1730
1940
|
</template>
|
|
@@ -1828,6 +2038,7 @@ onBeforeUnmount(() => {
|
|
|
1828
2038
|
<svg
|
|
1829
2039
|
v-if="crate"
|
|
1830
2040
|
class="fds-icon-crate fixed pointer-events-none z-[99999]"
|
|
2041
|
+
:class="{ 'fds-icon-pickup-expiring': crate.isExpiring, 'fds-icon-paused': paused }"
|
|
1831
2042
|
:style="{ left: `${crate.x}px`, top: `${crate.y}px`, width: `${crateSize}px`, height: `${crateSize}px` }"
|
|
1832
2043
|
viewBox="0 0 32 32"
|
|
1833
2044
|
aria-hidden="true"
|
|
@@ -1839,6 +2050,7 @@ onBeforeUnmount(() => {
|
|
|
1839
2050
|
<svg
|
|
1840
2051
|
v-if="heart"
|
|
1841
2052
|
class="fds-icon-heart fixed pointer-events-none z-[99999]"
|
|
2053
|
+
:class="{ 'fds-icon-pickup-expiring': heart.isExpiring, 'fds-icon-paused': paused }"
|
|
1842
2054
|
:style="{ left: `${heart.x}px`, top: `${heart.y}px`, width: `${heartSize}px`, height: `${heartSize}px` }"
|
|
1843
2055
|
viewBox="0 0 32 32"
|
|
1844
2056
|
aria-hidden="true"
|
|
@@ -1848,14 +2060,19 @@ onBeforeUnmount(() => {
|
|
|
1848
2060
|
d="M16 28 C6 20 2 15 2 9.5 C2 5.5 5 3 8.5 3 C11.5 3 14 5 16 8 C18 5 20.5 3 23.5 3 C27 3 30 5.5 30 9.5 C30 15 26 20 16 28 Z"
|
|
1849
2061
|
/>
|
|
1850
2062
|
</svg>
|
|
1851
|
-
<
|
|
1852
|
-
v-if="
|
|
1853
|
-
|
|
1854
|
-
|
|
2063
|
+
<svg
|
|
2064
|
+
v-if="laser"
|
|
2065
|
+
v-show="isAiming"
|
|
2066
|
+
ref="crosshairRef"
|
|
2067
|
+
class="fds-icon-crosshair fixed left-0 top-0 pointer-events-none z-[100002]"
|
|
2068
|
+
:class="{ 'fds-icon-crosshair-charged': chargeState === 'charged' }"
|
|
2069
|
+
viewBox="0 0 40 40"
|
|
1855
2070
|
aria-hidden="true"
|
|
1856
2071
|
>
|
|
1857
|
-
|
|
1858
|
-
|
|
2072
|
+
<circle cx="20" cy="20" r="11" fill="none" />
|
|
2073
|
+
<path d="M20 2 V12 M20 28 V38 M2 20 H12 M28 20 H38" fill="none" />
|
|
2074
|
+
<circle cx="20" cy="20" r="1.5" />
|
|
2075
|
+
</svg>
|
|
1859
2076
|
</Teleport>
|
|
1860
2077
|
</span>
|
|
1861
2078
|
</template>
|
|
@@ -2018,39 +2235,6 @@ onBeforeUnmount(() => {
|
|
|
2018
2235
|
}
|
|
2019
2236
|
}
|
|
2020
2237
|
|
|
2021
|
-
.fds-icon-headshot {
|
|
2022
|
-
color: var(--color-yellow-300);
|
|
2023
|
-
-webkit-text-stroke: 1px var(--color-red-700);
|
|
2024
|
-
text-shadow: 0 0 12px var(--color-red-500);
|
|
2025
|
-
translate: -50% -50%;
|
|
2026
|
-
animation: fds-icon-headshot 1000ms ease-out both;
|
|
2027
|
-
}
|
|
2028
|
-
|
|
2029
|
-
@keyframes fds-icon-headshot {
|
|
2030
|
-
0% {
|
|
2031
|
-
scale: 0.2;
|
|
2032
|
-
rotate: -12deg;
|
|
2033
|
-
opacity: 0;
|
|
2034
|
-
}
|
|
2035
|
-
15% {
|
|
2036
|
-
scale: 1.4;
|
|
2037
|
-
rotate: 6deg;
|
|
2038
|
-
opacity: 1;
|
|
2039
|
-
}
|
|
2040
|
-
30% {
|
|
2041
|
-
scale: 1;
|
|
2042
|
-
rotate: -4deg;
|
|
2043
|
-
}
|
|
2044
|
-
75% {
|
|
2045
|
-
opacity: 1;
|
|
2046
|
-
}
|
|
2047
|
-
100% {
|
|
2048
|
-
translate: -50% -150%;
|
|
2049
|
-
rotate: -4deg;
|
|
2050
|
-
opacity: 0;
|
|
2051
|
-
}
|
|
2052
|
-
}
|
|
2053
|
-
|
|
2054
2238
|
.fds-icon-tough {
|
|
2055
2239
|
scale: 1.3;
|
|
2056
2240
|
filter: drop-shadow(0 0 3px var(--color-red-600)) drop-shadow(0 0 8px var(--color-red-500));
|
|
@@ -2151,6 +2335,53 @@ onBeforeUnmount(() => {
|
|
|
2151
2335
|
fill: white;
|
|
2152
2336
|
stroke: var(--color-blue-500);
|
|
2153
2337
|
stroke-width: 3;
|
|
2338
|
+
filter: drop-shadow(0 0 4px var(--color-blue-400));
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2341
|
+
.fds-icon-shotgun {
|
|
2342
|
+
filter: drop-shadow(0 0 4px var(--color-yellow-300)) drop-shadow(0 0 10px var(--color-yellow-600));
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
.fds-icon-teleporter {
|
|
2346
|
+
filter: drop-shadow(0 0 4px var(--color-green-300)) drop-shadow(0 0 10px var(--color-green-600));
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2349
|
+
.fds-icon-bomber {
|
|
2350
|
+
filter: drop-shadow(0 0 4px var(--color-red-400)) drop-shadow(0 0 10px var(--color-red-800));
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
.fds-icon-dasher {
|
|
2354
|
+
filter: drop-shadow(0 0 3px var(--color-white)) drop-shadow(0 0 8px var(--color-red-500));
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
.fds-icon-shielded {
|
|
2358
|
+
filter: drop-shadow(0 0 4px var(--color-blue-200));
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2361
|
+
.fds-icon-shield-up {
|
|
2362
|
+
border-radius: 9999px;
|
|
2363
|
+
outline: 3px solid var(--color-blue-300);
|
|
2364
|
+
outline-offset: 6px;
|
|
2365
|
+
filter: drop-shadow(0 0 12px var(--color-blue-400));
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
.fds-icon-healer {
|
|
2369
|
+
filter: drop-shadow(0 0 4px var(--color-green-200)) drop-shadow(0 0 8px var(--color-green-500));
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2372
|
+
.fds-icon-heal-glow {
|
|
2373
|
+
filter: drop-shadow(0 0 6px var(--color-green-300)) drop-shadow(0 0 18px var(--color-green-500));
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
.fds-icon-hive {
|
|
2377
|
+
filter: drop-shadow(0 0 4px var(--color-yellow-500)) drop-shadow(0 0 12px var(--color-purple-500));
|
|
2378
|
+
}
|
|
2379
|
+
|
|
2380
|
+
.fds-icon-mine-projectile {
|
|
2381
|
+
fill: var(--color-red-600);
|
|
2382
|
+
stroke: var(--color-yellow-400);
|
|
2383
|
+
stroke-width: 3;
|
|
2384
|
+
animation: fds-icon-blink 600ms steps(2) infinite;
|
|
2154
2385
|
}
|
|
2155
2386
|
|
|
2156
2387
|
.fds-icon-dashing {
|
|
@@ -2236,20 +2467,183 @@ onBeforeUnmount(() => {
|
|
|
2236
2467
|
stroke-width: 3;
|
|
2237
2468
|
}
|
|
2238
2469
|
|
|
2239
|
-
.fds-icon-
|
|
2240
|
-
|
|
2241
|
-
|
|
2470
|
+
.fds-icon-crate.fds-icon-pickup-expiring {
|
|
2471
|
+
animation:
|
|
2472
|
+
fds-icon-crate-bob 1200ms ease-in-out infinite,
|
|
2473
|
+
fds-icon-pickup-expiring 5000ms linear forwards;
|
|
2242
2474
|
}
|
|
2243
2475
|
|
|
2244
|
-
.fds-icon-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2476
|
+
.fds-icon-heart.fds-icon-pickup-expiring {
|
|
2477
|
+
animation:
|
|
2478
|
+
fds-icon-heartbeat 900ms ease-in-out infinite,
|
|
2479
|
+
fds-icon-pickup-expiring 5000ms linear forwards;
|
|
2248
2480
|
}
|
|
2249
2481
|
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2482
|
+
@keyframes fds-icon-pickup-expiring {
|
|
2483
|
+
0% {
|
|
2484
|
+
opacity: 1;
|
|
2485
|
+
}
|
|
2486
|
+
9.0% {
|
|
2487
|
+
opacity: 0.6;
|
|
2488
|
+
}
|
|
2489
|
+
18.0% {
|
|
2490
|
+
opacity: 1;
|
|
2491
|
+
}
|
|
2492
|
+
25.02% {
|
|
2493
|
+
opacity: 0.58;
|
|
2494
|
+
}
|
|
2495
|
+
32.04% {
|
|
2496
|
+
opacity: 1;
|
|
2497
|
+
}
|
|
2498
|
+
37.52% {
|
|
2499
|
+
opacity: 0.56;
|
|
2500
|
+
}
|
|
2501
|
+
42.99% {
|
|
2502
|
+
opacity: 1;
|
|
2503
|
+
}
|
|
2504
|
+
47.26% {
|
|
2505
|
+
opacity: 0.53;
|
|
2506
|
+
}
|
|
2507
|
+
51.53% {
|
|
2508
|
+
opacity: 1;
|
|
2509
|
+
}
|
|
2510
|
+
54.86% {
|
|
2511
|
+
opacity: 0.51;
|
|
2512
|
+
}
|
|
2513
|
+
58.2% {
|
|
2514
|
+
opacity: 1;
|
|
2515
|
+
}
|
|
2516
|
+
60.79% {
|
|
2517
|
+
opacity: 0.49;
|
|
2518
|
+
}
|
|
2519
|
+
63.39% {
|
|
2520
|
+
opacity: 1;
|
|
2521
|
+
}
|
|
2522
|
+
65.42% {
|
|
2523
|
+
opacity: 0.47;
|
|
2524
|
+
}
|
|
2525
|
+
67.45% {
|
|
2526
|
+
opacity: 1;
|
|
2527
|
+
}
|
|
2528
|
+
69.03% {
|
|
2529
|
+
opacity: 0.45;
|
|
2530
|
+
}
|
|
2531
|
+
70.61% {
|
|
2532
|
+
opacity: 1;
|
|
2533
|
+
}
|
|
2534
|
+
71.84% {
|
|
2535
|
+
opacity: 0.42;
|
|
2536
|
+
}
|
|
2537
|
+
73.07% {
|
|
2538
|
+
opacity: 1;
|
|
2539
|
+
}
|
|
2540
|
+
74.04% {
|
|
2541
|
+
opacity: 0.4;
|
|
2542
|
+
}
|
|
2543
|
+
75.0% {
|
|
2544
|
+
opacity: 1;
|
|
2545
|
+
}
|
|
2546
|
+
75.8% {
|
|
2547
|
+
opacity: 0.38;
|
|
2548
|
+
}
|
|
2549
|
+
76.6% {
|
|
2550
|
+
opacity: 1;
|
|
2551
|
+
}
|
|
2552
|
+
77.4% {
|
|
2553
|
+
opacity: 0.36;
|
|
2554
|
+
}
|
|
2555
|
+
78.2% {
|
|
2556
|
+
opacity: 1;
|
|
2557
|
+
}
|
|
2558
|
+
79.0% {
|
|
2559
|
+
opacity: 0.34;
|
|
2560
|
+
}
|
|
2561
|
+
79.8% {
|
|
2562
|
+
opacity: 1;
|
|
2563
|
+
}
|
|
2564
|
+
80.6% {
|
|
2565
|
+
opacity: 0.31;
|
|
2566
|
+
}
|
|
2567
|
+
81.4% {
|
|
2568
|
+
opacity: 1;
|
|
2569
|
+
}
|
|
2570
|
+
82.2% {
|
|
2571
|
+
opacity: 0.29;
|
|
2572
|
+
}
|
|
2573
|
+
83.0% {
|
|
2574
|
+
opacity: 1;
|
|
2575
|
+
}
|
|
2576
|
+
83.8% {
|
|
2577
|
+
opacity: 0.27;
|
|
2578
|
+
}
|
|
2579
|
+
84.6% {
|
|
2580
|
+
opacity: 1;
|
|
2581
|
+
}
|
|
2582
|
+
85.4% {
|
|
2583
|
+
opacity: 0.25;
|
|
2584
|
+
}
|
|
2585
|
+
86.2% {
|
|
2586
|
+
opacity: 1;
|
|
2587
|
+
}
|
|
2588
|
+
87.0% {
|
|
2589
|
+
opacity: 0.23;
|
|
2590
|
+
}
|
|
2591
|
+
87.8% {
|
|
2592
|
+
opacity: 1;
|
|
2593
|
+
}
|
|
2594
|
+
88.6% {
|
|
2595
|
+
opacity: 0.2;
|
|
2596
|
+
}
|
|
2597
|
+
89.4% {
|
|
2598
|
+
opacity: 1;
|
|
2599
|
+
}
|
|
2600
|
+
90.2% {
|
|
2601
|
+
opacity: 0.18;
|
|
2602
|
+
}
|
|
2603
|
+
91.0% {
|
|
2604
|
+
opacity: 1;
|
|
2605
|
+
}
|
|
2606
|
+
91.8% {
|
|
2607
|
+
opacity: 0.16;
|
|
2608
|
+
}
|
|
2609
|
+
92.6% {
|
|
2610
|
+
opacity: 1;
|
|
2611
|
+
}
|
|
2612
|
+
93.4% {
|
|
2613
|
+
opacity: 0.14;
|
|
2614
|
+
}
|
|
2615
|
+
94.2% {
|
|
2616
|
+
opacity: 1;
|
|
2617
|
+
}
|
|
2618
|
+
95.0% {
|
|
2619
|
+
opacity: 0.12;
|
|
2620
|
+
}
|
|
2621
|
+
95.8% {
|
|
2622
|
+
opacity: 1;
|
|
2623
|
+
}
|
|
2624
|
+
96.6% {
|
|
2625
|
+
opacity: 0.09;
|
|
2626
|
+
}
|
|
2627
|
+
97.4% {
|
|
2628
|
+
opacity: 1;
|
|
2629
|
+
}
|
|
2630
|
+
98.2% {
|
|
2631
|
+
opacity: 0.07;
|
|
2632
|
+
}
|
|
2633
|
+
99.0% {
|
|
2634
|
+
opacity: 1;
|
|
2635
|
+
}
|
|
2636
|
+
99.5% {
|
|
2637
|
+
opacity: 0.05;
|
|
2638
|
+
}
|
|
2639
|
+
100.0% {
|
|
2640
|
+
opacity: 1;
|
|
2641
|
+
}
|
|
2642
|
+
}
|
|
2643
|
+
|
|
2644
|
+
.fds-icon-paused,
|
|
2645
|
+
.fds-icon-paused * {
|
|
2646
|
+
animation-play-state: paused !important;
|
|
2253
2647
|
}
|
|
2254
2648
|
|
|
2255
2649
|
.fds-icon-enraged {
|
|
@@ -2400,9 +2794,43 @@ onBeforeUnmount(() => {
|
|
|
2400
2794
|
animation: fds-icon-damage-float 800ms ease-out forwards;
|
|
2401
2795
|
}
|
|
2402
2796
|
|
|
2403
|
-
.fds-icon-damage-critical {
|
|
2404
|
-
|
|
2797
|
+
.fds-icon-damage-number.fds-icon-damage-critical {
|
|
2798
|
+
z-index: 100002;
|
|
2799
|
+
font-size: 24px;
|
|
2405
2800
|
font-weight: 900;
|
|
2801
|
+
color: var(--color-yellow-300);
|
|
2802
|
+
-webkit-text-stroke: 1px var(--color-red-700);
|
|
2803
|
+
text-shadow: 0 0 10px var(--color-red-500);
|
|
2804
|
+
animation: fds-icon-critical-pop 800ms ease-out forwards;
|
|
2805
|
+
}
|
|
2806
|
+
|
|
2807
|
+
.fds-icon-damage-number.fds-icon-damage-critical::before {
|
|
2808
|
+
content: 'CRIT ';
|
|
2809
|
+
font-size: 14px;
|
|
2810
|
+
}
|
|
2811
|
+
|
|
2812
|
+
@keyframes fds-icon-critical-pop {
|
|
2813
|
+
0% {
|
|
2814
|
+
scale: 0.3;
|
|
2815
|
+
rotate: -10deg;
|
|
2816
|
+
opacity: 0;
|
|
2817
|
+
}
|
|
2818
|
+
15% {
|
|
2819
|
+
scale: 1.4;
|
|
2820
|
+
rotate: 5deg;
|
|
2821
|
+
opacity: 1;
|
|
2822
|
+
}
|
|
2823
|
+
30% {
|
|
2824
|
+
scale: 1;
|
|
2825
|
+
rotate: -3deg;
|
|
2826
|
+
}
|
|
2827
|
+
75% {
|
|
2828
|
+
opacity: 1;
|
|
2829
|
+
}
|
|
2830
|
+
100% {
|
|
2831
|
+
translate: -50% -50px;
|
|
2832
|
+
opacity: 0;
|
|
2833
|
+
}
|
|
2406
2834
|
}
|
|
2407
2835
|
|
|
2408
2836
|
.fds-icon-damage-laser {
|
|
@@ -2462,4 +2890,23 @@ onBeforeUnmount(() => {
|
|
|
2462
2890
|
animation: none;
|
|
2463
2891
|
}
|
|
2464
2892
|
}
|
|
2893
|
+
.fds-icon-crosshair {
|
|
2894
|
+
width: 40px;
|
|
2895
|
+
height: 40px;
|
|
2896
|
+
margin: -20px 0 0 -20px;
|
|
2897
|
+
stroke: var(--color-red-600);
|
|
2898
|
+
stroke-width: 2.5;
|
|
2899
|
+
fill: var(--color-red-600);
|
|
2900
|
+
filter: drop-shadow(0 0 1.5px var(--color-white));
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2903
|
+
.fds-icon-crosshair-charged {
|
|
2904
|
+
stroke: var(--color-yellow-500);
|
|
2905
|
+
fill: var(--color-yellow-500);
|
|
2906
|
+
}
|
|
2907
|
+
|
|
2908
|
+
:global(html.fds-icon-aiming),
|
|
2909
|
+
:global(html.fds-icon-aiming *) {
|
|
2910
|
+
cursor: none !important;
|
|
2911
|
+
}
|
|
2465
2912
|
</style>
|