Skip to content

Game initializes with hardcoded mid-game placeholder stats #147

@MuganSama

Description

@MuganSama

Bug Report

Building: Arcade House
Difficulty: Easy

What is broken?

When a user first loads the Arcade House, their starting Score is immediately set to 3,180, and their Health is reduced to 82%.

Steps to reproduce

  1. Navigate to the Arcade House.
  2. Observe the Live Stats panel above the Glitch Racer game canvas.
  3. Note that the Score and Health values are not starting at standard baseline values.

Expected behavior

When initializing the component, the player's base stats should begin at standard defaults: Score at 0 and Health at 100(%).

Actual behavior

The developer utilized hardcoded integer values within the useState initialization hooks (useState(3180), useState(82)) likely to test UI rendering, but failed to revert them to production baseline values.

Root cause & Fix

Root Cause: State initialization variables contained hardcoded development placeholder data.
Fix applied: Replaced the hardcoded initialization parameters in the score and health state declarations with 0 and 100 respectively.

####Screenshot

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions