Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

SoonFx Engine Examples

This directory contains interactive examples demonstrating the capabilities of the @soonfx/engine.

🚀 Getting Started

These examples are built with Vite.

Prerequisites

  • Node.js >= 14.0.0
  • npm or yarn

Installation

  1. Install dependencies:

    npm install
  2. Start the development server:

    npm run dev
  3. Open your browser and navigate to the local server URL (usually http://localhost:3009 or similar).

🎮 Available Demos

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.

📁 Project Structure

  • 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.

🛠️ Technology Stack

  • Vite: Fast frontend build tool.
  • TypeScript: Type-safe code.
  • ECharts: Data visualization.
  • @soonfx/engine: The core game numeric engine.