Skip to content

Commit 545aa2b

Browse files
committed
moooaaar
1 parent b562292 commit 545aa2b

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/components/game/engine/GameEngine.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ export class GameEngine {
157157
this.canvas.addEventListener('pointermove', this.handlePointerMove)
158158

159159
// Store for HMR
160+
// eslint-disable-next-line @typescript-eslint/no-this-alias
160161
__hmrEngine = this
161162
}
162163

@@ -267,7 +268,7 @@ export class GameEngine {
267268
const expandedIslands = useGameStore.getState().expandedIslands
268269

269270
// Generate showcase islands if showcase was unlocked
270-
let showcaseIslands = initialState.showcaseIslands
271+
const showcaseIslands = initialState.showcaseIslands
271272
// Generate corner islands if corners were unlocked
272273
let cornerIslands = initialState.cornerIslands
273274
if (initialState.cornersUnlocked && cornerIslands.length === 0) {

src/components/game/engine/systems/AISystem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ export class AISystem {
562562
}
563563

564564
let newRotation = player.rotation
565-
let angleDiff = normalizeAngle(targetAngle - newRotation)
565+
const angleDiff = normalizeAngle(targetAngle - newRotation)
566566

567567
const turnAmount = stats.turnSpeed * dt
568568
if (Math.abs(angleDiff) > 0.02) {

src/components/game/scene/Island.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export function Island({ data, isDiscovered }: IslandProps) {
127127

128128
// Beach chair position - on the sand ring, avoid sign zone
129129
let chairAngle = seededRandom(seed + 200) * Math.PI * 2
130-
let chairRadius = 2.0 + seededRandom(seed + 201) * 0.5
130+
const chairRadius = 2.0 + seededRandom(seed + 201) * 0.5
131131
let chairX = Math.cos(chairAngle) * chairRadius
132132
let chairZ = Math.sin(chairAngle) * chairRadius
133133

0 commit comments

Comments
 (0)