Skip to content

Latest commit

 

History

History
73 lines (53 loc) · 1.64 KB

File metadata and controls

73 lines (53 loc) · 1.64 KB

Start Scripts

Cross-platform scripts to launch the Lua Game Example project.

Usage

macOS/Linux

./start.sh

Windows

start.bat

Menu Options

The start script provides an interactive menu with the following options:

  1. LOVE2D Game (Frontend)

    • Launches only the space shooter game
    • No backend services
  2. JavaScript Integration Examples (Backend)

    • Runs the Fengari and Wasmoon examples
    • Demonstrates JavaScript-Lua integration
  3. TypeScript Integration Examples (Backend)

    • Runs the TypeScript-Lua bridge examples
    • Shows type-safe Lua integration
  4. LOVE2D Game + JavaScript Backend

    • Launches game in foreground
    • Runs JavaScript examples in background
  5. LOVE2D Game + TypeScript Backend

    • Launches game in foreground
    • Runs TypeScript examples in background
  6. All (Game + Both Backends)

    • Launches all services simultaneously
    • Game runs in foreground
    • Both backends run in background
    • Logs saved to logs/ directory

Logs

When running multiple services (option 6), backend logs are saved to:

  • logs/js-backend.log - JavaScript integration output
  • logs/ts-backend.log - TypeScript integration output

Stopping Services

  • Press Ctrl+C to stop all running services
  • Closing the game window will also stop associated backend services

Prerequisites

Run the installation script first:

./install.sh  # macOS/Linux
install.bat   # Windows

Alternative: npm Scripts

For backend services only, you can use npm scripts:

cd integration
npm start        # JavaScript examples
npm run start:ts # TypeScript examples