Simple asteroid game made with JavasScript and HTML5.
Stars
3
Forks
0
Watchers
3
Open Issues
0
Overall repository health assessment
^2.3.7^9.1.7^0.0.6435
commits
Update devDependencies: bump @biomejs/biome to ^2.3.7 and microtastic to ^0.0.64
ebecfa6View on GitHubUpdate dependencies and refactor code for improved performance and maintainability
138f71dView on GitHubRefactor game state management and introduce ScoreManager for handling scores, ships, and highscore persistence. Update game states to utilize ScoreManager for score tracking and highscore updates, and streamline input handling for mobile controls.
2eda740View on GitHubRefactor game entities to improve update logic and resource management. Update asteroid, bullet, ship, explosion, and state classes to use canvas dimensions directly. Introduce lifetime tracking for bullets and explosions, and clean up resources on state exit.
1d12dccView on GitHubRefactor game state management and UI handling for mobile controls. Introduce UIManager for button placement and visibility. Replace object-based collections with Maps for bullets, asteroids, and explosions to improve performance and readability.
c4cc6ebView on GitHubRefactor GetUIBoxDimensions method to use logical coordinates and simplify box size calculations
296c99bView on GitHubUpdate README and refactor game state handling for mobile touch events
dacbf1cView on GitHubAdd HUD size constants and implement tap-to-pause functionality for mobile devices
5ecf06bView on GitHubRefactor canvas rendering and UI box drawing for improved readability and maintainability. Update constants for better text sizing and spacing. Simplify game state drawing logic by consolidating text rendering into UI box method.
11bbc94View on GitHubRemove obsolete shortcuts and categories from the game manifest for a cleaner configuration.
e6ff206View on GitHubUpdate game manifest to change display mode to fullscreen and maintain consistent background and theme colors.
f75c04cView on GitHubUpdate game manifest URL for proper asset loading. Import mobile and tablet detection utility in GameState class.
5497c6eView on GitHubRefactor game state management to use private properties for pause handling. Improve vector normalization to prevent division by zero. Remove obsolete service worker file.
abdeeaeView on GitHubRefactor code to use private properties and methods across multiple classes for better encapsulation and maintainability. Updated Asteroid, Canvas, Explosion, Game, GameOverState, GameState, Input, NewWaveState, Ship, Sound, and StartState classes to replace public properties with private ones prefixed by an underscore. Improved sound loading and playback handling in the Sound class. Added a service worker for caching assets in the AstroHunter PWA.
c80b5deView on GitHub