29 Commits

Author SHA1 Message Date
f2f399c296 feat: magic system visuals, audio sfx, and ui polish 2026-01-07 22:42:34 +01:00
df3f892eb2 feat: Add floating combat text and damage flash feedback 2026-01-07 20:16:55 +01:00
5c5cc13903 feat: Implement combat and movement sound effects with looping footsteps 2026-01-07 20:01:58 +01:00
180cf3ab94 feat: Add SoundManager for bg music and opendoor sfx 2026-01-06 23:40:32 +01:00
377096c530 fix: Refine LOS wall detection to use connectivity rules (canMoveBetween) 2026-01-06 22:30:01 +01:00
61c7cc3313 feat: Implement 2D tactical view and refine LOS with corner detection 2026-01-06 20:50:46 +01:00
c0a9299dc5 Implement Elf Ranged Combat and Pinned Mechanic
- Added 'Shoot Bow' action for Elf with Ballistic Skill mechanics (1995 rules).
- Implemented strict Line of Sight (LOS) raycasting (Amanatides & Woo) with UI feedback for blockers.
- Added 'Pinned' status: Heroes adjacent to monsters (without intervening walls) cannot move.
- Enhanced UI with visual indicators for blocked shots (red circles) and temporary modals.
- Polished 'End Phase' button layout and hidden it during Monster phase.
combat-engine-v2
2026-01-06 20:05:56 +01:00
7b28fcf1b0 feat: Sistema de combate completo con tarjetas de personajes y animaciones
- Tarjetas de héroes y monstruos con tokens circulares
- Sistema de selección: héroe + monstruo para atacar
- Botón de ATACAR en tarjeta de monstruo
- Animación de muerte: fade-out + hundimiento (1.5s)
- Visualización de estadísticas completas (WS, BS, S, T, W, I, A, Mov)
- Placeholder cuando no hay héroe seleccionado
- Tokens de héroes y monstruos en formato circular
- Deselección correcta de monstruos
- Fix: paso de gameEngine a CombatMechanics para callbacks de muerte
combate1.0
2026-01-06 18:43:09 +01:00
3efbf8d5fb Implement advanced pathfinding and combat visual effects
- Add monster turn visual feedback (green ring on attacker, red ring on victim)
- Implement proper attack sequence with timing and animations
- Add room boundary and height level pathfinding system
- Monsters now respect room walls and can only pass through doors
- Add height level support (1-8) with stairs (9) for level transitions
- Fix attack validation to prevent attacks through walls
- Speed up hero movement animation (300ms per tile)
- Fix exploration phase message to not show on initial tile placement
- Disable hero movement during exploration phase (doors only)
2026-01-06 16:18:46 +01:00
dd7356f1bd Millorats personatges sense voreres negres 2026-01-06 11:06:24 +01:00
78b7486dd2 fix: allow hero movement in exploration phase (reset moves) 2026-01-05 23:15:07 +01:00
77c0c07a44 feat(game-loop): implement strict phase rules, exploration stops, and hero attacks 2026-01-05 23:11:31 +01:00
b619e4cee4 feat: Implement Event Deck, Monster Spawning, and AI Movement 2026-01-05 00:40:12 +01:00
056217437c Implement Lantern Bearer logic, Phase buttons, and Monster spawning basics 2026-01-04 23:48:53 +01:00
4c8b58151b Refactor: Organize standee assets and prepare for Motor OK tag 2026-01-04 22:32:37 +01:00
3bfe9e4809 Update DEVLOG for Session 5 2026-01-03 00:30:32 +01:00
2f63e54d13 Fix camera panning logic to update target position.
Previously, panning only moved the camera, causing orbital rotation issues when changing views or centering because the target reference point wasn't updated. Now both camera and target move in sync.
2026-01-03 00:28:52 +01:00
46b5466701 Adjust zoom settings and sync slider with mouse wheel.
- Changed default zoom from 2.5 to 6.0 (further away).
- Reduced max zoom distance from 30 to 15.
- Fixed slider not updating when using mouse wheel zoom.
2026-01-03 00:27:09 +01:00
019e527441 Fix duplicate room_objective definition in TileDefinitions.js 2026-01-03 00:21:45 +01:00
cd6abb016f Implement randomized tile textures.
- DungeonGenerator: Selects a random texture from the card definition when finalizing tile placement.
- GameRenderer: Renders the specific chosen texture for each tile instance instead of the default.
2026-01-03 00:19:30 +01:00
7462dd7fed Implement manual player movement planning (steps) and hopping animation
- GameEngine: Added path planning logic (click to add step, re-click to undo).
- GameRenderer: Added path visualization (numbered yellow squares).
- GameRenderer: Updated animation to include 'hopping' effect and clear path markers on visit.
- UIManager: Replaced alerts with modals.
- Main: Wired right-click to execute movement.
2026-01-03 00:15:28 +01:00
dbed4468c5 Fix tile alignment: Enforce strict connection for multi-cell doors and fix exit reference logic 2026-01-03 00:00:36 +01:00
ac536ac96c Implement tile discarding, blocked doors, and correct corridor exits
- Updated TileDefinitions.js: Added 4-way exits to corridor_straight and corridor_steps (N/S y=3,4; E/W x=3,4).
- Updated DungeonGenerator.js: Added cancelPlacement() logic and onDoorBlocked callback.
- Updated GameRenderer.js: Implemented blockDoor() to visualize blocked passages, and improved isPlayerAdjacentToDoor.
- Updated UIManager.js: Added custom showModal/showConfirm and Discard button for tile placement.
- Updated main.js: Handled blocked door clicks and hooked up UI events.
- Updated GameEngine.js: Improved door adjacency checks.
- Updated CameraManager.js: Preserved camera rotation on centerOn.
- Added door1_blocked.png asset.
2026-01-02 23:48:42 +01:00
8bb0dd8780 Clean up logs and fix variant reference error 2026-01-02 23:13:52 +01:00
970ff224c3 Fix tile rendering dimensions and alignment, update tile definitions to use height 2026-01-02 23:06:40 +01:00
9234a2e3a0 feat: Implement door interaction system and UI improvements
- Add interactive door system with click detection on door meshes
- Create custom DoorModal component replacing browser confirm()
- Implement door opening with texture change to door1_open.png
- Add additive door rendering to preserve opened doors
- Remove exploration button and requestExploration method
- Implement camera orbit controls with smooth animations
- Add active view indicator (yellow highlight) on camera buttons
- Add vertical zoom slider with label
- Fix camera to maintain isometric perspective while rotating
- Integrate all systems into main game loop
2026-01-01 17:16:58 +01:00
fd1708688a Phase 1 Complete: Dungeon Engine & Visuals. Switched to Manual Exploration Plan. 2025-12-31 00:21:07 +01:00
e90cfe3664 Versión inicial: Motor funcional con visualización de texturas corregida 2025-12-30 23:40:39 +01:00
7dbc77e75a versión inicial del juego 2025-12-30 23:24:58 +01:00