Skip to main content
Glama
run_game.shโ€ข1.93 kB
#!/bin/bash # Sentinel Game Runner # Launches Godot game in windowed dev mode set -e SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" PROJECT_ROOT="${GODOT_PROJECT_ROOT:-$(dirname "$SCRIPT_DIR")/game}" if [ ! -d "$PROJECT_ROOT" ]; then echo "โŒ Project root not found: $PROJECT_ROOT" echo "Set GODOT_PROJECT_ROOT environment variable or ensure ../game exists" exit 1 fi if [ ! -f "$PROJECT_ROOT/project.godot" ]; then echo "โŒ Not a Godot project: $PROJECT_ROOT" exit 1 fi # Parse command line arguments SCENE="" WINDOWED=true DEBUG=false while [[ $# -gt 0 ]]; do case $1 in -s|--scene) SCENE="$2" shift 2 ;; -f|--fullscreen) WINDOWED=false shift ;; -d|--debug) DEBUG=true shift ;; -h|--help) echo "Usage: $0 [options]" echo "Options:" echo " -s, --scene SCENE Launch specific scene" echo " -f, --fullscreen Launch in fullscreen mode" echo " -d, --debug Launch with debug output" echo " -h, --help Show this help" exit 0 ;; *) echo "โŒ Unknown option: $1" exit 1 ;; esac done echo "๐ŸŽฎ Starting Godot game..." echo "๐Ÿ“ Project: $PROJECT_ROOT" cd "$PROJECT_ROOT" # Build godot command GODOT_CMD="godot" GODOT_ARGS="" # Add scene if specified if [ ! -z "$SCENE" ]; then echo "๐ŸŽฌ Scene: $SCENE" GODOT_ARGS="$GODOT_ARGS --scene $SCENE" fi # Add windowed mode (default for development) if [ "$WINDOWED" = true ]; then GODOT_ARGS="$GODOT_ARGS --windowed" fi # Add debug flags if requested if [ "$DEBUG" = true ]; then GODOT_ARGS="$GODOT_ARGS --verbose --debug" fi # Launch game echo "๐Ÿš€ Launching: $GODOT_CMD $GODOT_ARGS" exec $GODOT_CMD $GODOT_ARGS

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Snack-JPG/Godot-Sentinel-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server