-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add global leaderboard #76
Draft
noneofyourbusiness1415252
wants to merge
78
commits into
rustwasm:master
Choose a base branch
from
noneofyourbusiness1415252:leaderboard
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Add global leaderboard #76
noneofyourbusiness1415252
wants to merge
78
commits into
rustwasm:master
from
noneofyourbusiness1415252:leaderboard
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Add localStorage save/load for game state - Fix timer display updates during gameplay - Preserve level between sessions - Block door access until key is collected - Ensure game resets after 5 minute timeout - Remove unnecessary alerts
- Ensure key and door positions are always different - Maintain waypoint system for path complexity - Keep separate logic for 2x2 and larger grids - Fix potential inaccessible positions issue
- Start with all walls instead of random walls - Create guaranteed paths first before adding random walls - Ensure paths between start -> waypoints -> key -> waypoints -> door - Different waypoint logic for 2x2 vs larger grids - Fix overlapping key/door positions - Make sure all positions are accessible
- Remove individual pointer HTML elements - Add CSS pseudo-elements for all 4 directions using ::before, ::after on cell and span - Fix z-index and positioning to show pointers above cells - Align pointer bases exactly with cell borders - Add clip-path to grid to hide out-of-bounds pointers
- Optimize cell creation by only regenerating grid when size changes - Fix type conversion for HTML collection indices (usize to u32) - Improve cell state management with proper span element handling - Implement efficient event delegation for cell clicks - Reduce unnecessary DOM updates by checking content before modification - Use text nodes for content updates to improve performance
* refactor: initial modularization of the codebase Split monolithic lib.rs into a more maintainable structure: - Create games/ directory for game implementations - Move Perception (Seek) game into games/perception.rs - Create utils.rs for shared functionality - Update lib.rs to re-export necessary items This refactoring sets up the foundation for: 1. Adding remaining cognitive test modules 2. Better separation of concerns 3. Easier maintenance and testing 4. More idiomatic Rust module structure * break down the Perception module further Game state management (saving/loading/creation) Rendering logic Movement and maze interaction Core game mechanics (walls, positions, etc.) * fix compilation * extracting the timer-related functionality into a new module * Create a new input.rs module for handling user interactions * Removed redundant game.render()? call since it's already done in new()
…ation and state management
…nd adjust time calculations
…ate level management logic
…ut handling" This reverts commit c856845.
todo: simple decimals at later levels
…imate the wall that has been hit.
use web animations API
…project structure
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a global leaderboard feature that tracks player progress across both games while maintaining the project's commitment to pure Rust/WASM implementation and accessibility standards.
Key Changes:
Implementation Details:
Migration:
Testing: