This directory contains interactive examples demonstrating the capabilities of the @soonfx/engine.
These examples are built with Vite.
- Node.js >= 14.0.0
- npm or yarn
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and navigate to the local server URL (usually
http://localhost:3009or similar).
The main demo is an interactive Battle Simulator that showcases:
- Character Attributes: HP, Attack, Defense calculation.
- Battle Logic: Turn-based combat simulation.
- Level Scaling: Visualization of how stats grow from Level 1 to 50.
- Data Analysis: Real-time charts and logs of battle outcomes.
src/core/: Core simulation classes (Entity, Logger, Simulator).src/utils/: Utility functions and helpers.assets/: Configuration files and static assets.index.html: Main entry point and UI layout.
- Vite: Fast frontend build tool.
- TypeScript: Type-safe code.
- ECharts: Data visualization.
- @soonfx/engine: The core game numeric engine.