A powerful interactive wheel-based game mechanic system with deep customization options.
- Enhanced Base Stats Tracking: Added earliest/latest globals for tie-breaking in base stats
- Improved Status System: Added wheel_end duration with specific target wheel support
- JumpToWheel Functionality: Verified base stat source tracking for jump back mechanics
- Conditional Rules OR Logic: Confirmed proper OR logic implementation in rule evaluation
- UI Enhancements: Conditional target wheel input display for status effects
script.js- Core game logic and mechanicsindex.html- Main user interfacestyle.css- Styling and visual presentationtest-runner.html- Comprehensive test suite for verifying functionalityplans/- Documentation and implementation planning
- Open
index.htmlin a modern web browser - Use the interface to create wheels, entities, and game mechanics
- Test features using the built-in test runner (
test-runner.html)
The latest update focused on enhancing the core game mechanics:
- Added
highest_bs_earliest,highest_bs_latest,lowest_bs_earliest,lowest_bs_latestglobals - Implements chronological tie-breaking when base stats are equal
- Variables track both value and source wheel for jump back functionality
- Added
wheel_endduration type that expires when landing on a specific wheel - Status effects now store
targetWheelfor precise expiration conditions - UI shows target wheel input only when
wheel_endduration is selected
- Preserves source wheel ID when base stats are modified
- Enables reliable jump back mechanics based on original stat sources
- OR logic properly implemented using
results.some(r => r)pattern - Supports complex condition combinations in rule evaluation
- Follows YAGNI, KISS, and DRY principles
- Maintains backward compatibility with existing functionality
- All JavaScript code validates without syntax errors
- Comprehensive test suite verifies all implemented features
Created with ❤️ by the Wheel Engine team Latest implementation: made by FIRaci
MIT License - feel free to modify and extend for your own projects.