FERNANDO ROCHA FONTELES

Updated 11/2026

← Back to the CV

Projects

Dungeon Tactics

Turn-based tactics game for the browser in the spirit of Final Fantasy Tactics, with dungeon descents.

Battle on a 3D map with the archer's command menu and range ring.

What it does

Dungeon Tactics is a turn-based tactics game for the browser, with height, facing, charged spells and dungeon descents on painted 3D maps. You prepare the party in town, then go down through short seeded rooms, each a battle that carries the party's life into the next, down to a 2x2 boss. Keyboard, mouse or gamepad, in English and Portuguese.

  • Tactics Ogre-style attack forecast: hit chance and HP before and after, with the shot trajectory.
  • FFT-style rules: CT turn queue, height that adds range and hit chance, counters, push and fall damage.
  • Party management: recruit at the tavern, change classes and equip items from the shop.

How it is built

  1. Deterministic rules engine

    The battle state is plain JSON with a seeded RNG inside it, with no DOM or Three.js. Saving, cloning, the AI and the simulator all run the same code.

  2. Content as data

    Classes, abilities, items, maps and dungeon tables are typed data; tests check unique ids and valid references.

  3. Checked procedural rooms

    Each room is built from a seed and a verifier rejects the ones that cannot be played. The AI plays itself in a simulator.

  4. Tests and CI

    More than 1,000 Vitest tests and GitHub Actions CI with lint, types, build and a headless-browser smoke test.

Stack

  • TypeScript
  • Three.js (WebGL)
  • Vite
  • Vitest
  • Biome
  • GitHub Actions
  • Cloudflare Workers

Screens