slavic_game_jam/.github/copilot-instructions.md
kuhyx a91a61a288 Initial commit: Danger Field Game with directional audio
- Open field gameplay with boundary walls only
- Three types of squares: safe (white), visual danger (red), audio danger (hidden)
- Directional audio system with stereo panning and pitch variation
- Proximity warnings with spatial audio cues
- Multi-sensory feedback (visual, audio, haptic)
- HTML5 Canvas rendering with smooth animations
- Web Audio API integration for rich sound effects
- Responsive design and modern JavaScript ES6+ modules
2025-08-01 16:40:12 +02:00

1.2 KiB

Copilot Instructions

Project Overview

This is a labyrinth game built with vanilla JavaScript and HTML5 Canvas. The game features:

  • Player navigation through a maze using keyboard controls
  • Visual feedback for dangerous vs safe squares (different colors/patterns)
  • Audio feedback using Web Audio API for dangerous areas
  • Haptic vibration feedback on supported devices
  • Canvas-based rendering for smooth graphics

Code Style Guidelines

  • Use modern ES6+ JavaScript features
  • Implement modular code structure with separate files for game logic, rendering, and audio
  • Use clear variable and function names that describe their purpose
  • Add comments for complex game mechanics and algorithms

Key Components

  • Game engine with update/render loop
  • Player movement and collision detection
  • Maze generation or predefined layouts
  • Audio system for sound effects
  • Vibration API integration for haptic feedback
  • Visual effects and animations for enhanced user experience