JM /
Juan Martinez

JUAN MARTINEZ · AI ENGINEER

Making worlds.
Building intelligence.

Machine Learning, Deep Learning, Reinforcement Learning, Creative AI (2D, 3D), NLP, Gameplay AI, Data Science & Analytics

39 games33 public repositories∞ things to explore
FEATURED / GAMEPLAY AI

Runeboard ↗

A Runeboard campaign in progress: Orthanc and the mountains of Isengard on the hex map, with the leader journal open

Hex-and-card strategy game with layered Utility AI, blackboards, hierarchical task planning, behaviour trees, and an MLP for strategic decisions.

Read the dev diary ↗
GAME DEVELOPMENT ✳ GENERATIVE AI ✳ NLP & DATA SCIENCE ✳ OPEN SOURCE

01 / AI R&D

Qwen-Image 2.1,
4× faster.

Nihonga: my pruned and distilled Qwen-Image 2.1. Two of its 32 blocks removed,
10 steps instead of 40, and it still spells its signs right.
Open weights on Hugging Face, with the full research log.

02 / APPLIED AI

Creative AI.
Methods & tools.

Image adaptation, controlled generation,
and retrieval-based NPC dialogue.

03 / THE SOURCE

AI.

Every public repository, organized by focus.
Forks are collected separately.

Creative AI

03

Gameplay AI

02

Interpretability

01

RAG

02

Anonymization

01

Spark NLP port for Hugging Face

01

Symbolic NLP

02

Data & open source

05

AI / ML interview training

02

Teaching data science

04

Games & worlds

03

Writing & profile

03

Forks & explorations

05

04 / STUDIO WORK

Creator of Agonia Games.
Already profitable!

More than thirty HTML5 games for the FRVR platform, all on one shared
raw-WebGL TypeScript stack. Three up close, then gameplay reels,
each a real capture of the running build. Full catalogue at agonia.games ↗

Possum Archaeologists key art: a possum in a safari hat holds up a rubber duck beside a shovel in an excavated junkyard
AGONIA · HTML5 / WEBGL · RELEASED

Possum Archaeologists

Two possum archaeologists have excavated a junkyard and are entirely convinced they have found priceless ancient relics. It is a rubber duck. It is a broken flip phone. They do not care — every piece of rubbish is solemnly catalogued under its museum name, and a bottle cap becomes the Crown of the Fizz King.

Underneath the joke it is a tile-pile matcher. Only uncovered relics can be tapped, three of a kind clear, and the seven-slot tray never gets any bigger.

  • 77KB of gzipped JavaScript for the entire game — engine, interface and all. No Unity, no three.js, no Phaser: raw WebGL and TypeScript on Bun.
  • One draw call for most frames. Sprites, particles and the whole UI share a single texture atlas and a single batch.
  • A skinned-mesh renderer written from scratch, so the mascot is a real rigged 3D character standing over a 2D board — 334KB for eleven animations, where baked sprite sheets cost 574KB for one.
  • A cheap Android phone is the floor. 60fps target, zero allocations in the frame loop, and a second shading path for GPUs that refuse the fast one.
  • Live from day one: weekly tournaments, a daily leaderboard, cloud saves, remote difficulty tuning and churn funnels.

Almost all of the content is produced by an agentic pipeline. A concept-artist agent sets the visual direction; a technical artist generates sprites and drives image-to-3D character generation and rigging; an audio agent writes the sound effects and voice lines; a marketing agent captures gameplay and builds the store set. Each runs on a least-privilege tool allowlist, each is cost-gated before it may spend a cent, and none of them is allowed to call the work done — a read-only verifier does that.

TYPESCRIPTRAW WEBGLBUNFRVR SDKAGENTIC PIPELINE

Closed source — it lives in a private studio repository, so there is nothing to click. Everything shown here is a capture of the running build, not a render.

Dig sites are generated: shape, depth and relic mix change every run.
Dig sites are generated: shape, depth and relic mix change every run.
Today’s Trench — one date-seeded dig, the same for every player, every day.
Today’s Trench — one date-seeded dig, the same for every player, every day.
Score attack. Combo chains up to x8, runs ranked E through S+.
Score attack. Combo chains up to x8, runs ranked E through S+.
Glowdoku key art: a neon sudoku board under ASCII mountains, one placed digit firing four beams of light across its row and column
AGONIA · HTML5 / WEBGL · RELEASED

Glowdoku

Sudoku, lit up. Every correct number fires beams of light across the board. 1, 4 and 7 share a colour, so do 2, 5, 8 and 3, 6, 9 — hit a number in the same family and it bursts; cross two beams and they resonate.

The rules are pure sudoku. The light is how it feels, and it is also the score: it charges a ladder of bars from DULL to EFFULGENT, each full bar hands something back, and a mistake drains it.

  • 54KB of gzipped JavaScript for the whole game; the six ambient tracks stream in after the first frame.
  • Scenery with no image files. The mountains, pines, river and the toad are glyphs drawn through the same atlas as the digits, moving in time with the music.
  • Eight neon skins, eight typefaces, one texture, so switching skin costs nothing at runtime.
  • Hints that teach: a hint names the sudoku technique instead of just revealing the digit.
  • Built to come back to: a daily puzzle that is the same board for everyone, with streaks; 100 adventure levels, each with a single logical solution; and an E to S+ rank on every win.
TYPESCRIPTRAW WEBGLBUNFRVR SDKASCII ART

Closed source, so there is nothing to click. The screenshots are captures of the running build; the key art was generated from one of those captures.

One placement fires four beams; two land on same-colour numbers and burst.
One placement fires four beams; two land on same-colour numbers and burst.
The daily puzzle, solved: a rainbow wave rolls across the grid to the music.
The daily puzzle, solved: a rainbow wave rolls across the grid to the music.
A rank on every win, scored on time and light.
A rank on every win, scored on time and light.
Catnap title screen: the Catnap logo with a sleeping calico on top, over a sky of floating islands
AGONIA · HTML5 / WEBGL · RELEASED

Catnap

Small cats. Big problems. A tower defense where the towers are cats, and the cats would rather be asleep. Meowses, Cockroatches, a Purrmba robot vacuum and Purrgeons march up the garden path to the house, and a cat that has dozed off only wakes when something walks into its reach.

Every cat sits on its own furniture — a Box cat ambushes from a cardboard box, a Tree cat swats from a cat tree, a Lamp cat throws sparks from a lamp post — and each one upgrades through four tiers.

  • 49KB of gzipped JavaScript for the game; the painted art streams in per level, downloaded only when that level unlocks.
  • 18 cats, 12 pests, seven damage types. Physical, fire, electric, poison, frost, water and bleed build up statuses; pigeons fly, so only cats that hit the air can reach them, and a cardboard mimic stays hidden until a cat’s range reveals it.
  • 18 levels on floating garden islands, authored in a level editor that ships inside the game.
  • Animated from generated sprite sheets. Each 16-frame sheet is anchored to an approved first frame with a registration dot in every cell, then cleaned and stabilized in software so the cat never drifts in its cell.
TYPESCRIPTRAW WEBGLBUNFRVR SDKTOWER DEFENSE

Closed source, so there is nothing to click. Every image here is a capture of the running build, not a render.

The Orchard, round 3: a lamp cat’s sparks, a fishbowl splash and bees from the hive.
The Orchard, round 3: a lamp cat’s sparks, a fishbowl splash and bees from the hive.
Tap a cat to upgrade, boost or sell it; its reach is drawn on the tiles.
Tap a cat to upgrade, boost or sell it; its reach is drawn on the tiles.
Front Yard, the first level, before the first wave.
Front Yard, the first level, before the first wave.
02

Possum Archaeologists

Studio project · real capture

GIF ↗
03

Glowdoku

Studio project · real capture

GIF ↗
04

Catnap

Studio project · real capture

GIF ↗
05

Slime Sumo

Agonia · sumo brawler

GIF ↗
06

Dwarven Pit Racer

Agonia · coaster racer

GIF ↗
07

Deckfall

Agonia · deckbuilder roguelite

GIF ↗
08

Block Punch

Agonia · voxel launcher

GIF ↗
09

Hex Elements

Agonia · elemental hex puzzle

GIF ↗
10

Where in the World is ...?

Agonia · geography detective

GIF ↗
11

Where in Time is ...?

Agonia · history detective

GIF ↗
12

Maze Loop

Agonia · loop roguelite

GIF ↗
13

Octo Pong

Agonia · eight-player pong

GIF ↗
14

Fruit Train

Agonia · merge shooter

GIF ↗
15

Paint Back

Agonia · colour puzzle

GIF ↗
16

Yolk Pop

Agonia · collect-em-all

GIF ↗
17

Spanish Carnival Games

Agonia · fairground minigames

GIF ↗
Zendoku gameplay screenshot18

Zendoku

A calm sudoku painted in ink — koi, reeds and no clock.

AGONIA ↗
Zen Mahjong FRVR gameplay screenshot19

Zen Mahjong FRVR

Calm ink-and-wash mahjong solitaire on real 3D tiles. Always solvable.

AGONIA ↗
Zen Mahjong Trios gameplay screenshot20

Zen Mahjong Trios

Match three painted mahjong tiles with a calm panda in ink-wash.

AGONIA ↗
Basketball 3D FRVR gameplay screenshot21

Basketball 3D FRVR

Flick to swish at Venice Beach, then take your shot across six world cities!

AGONIA ↗
Cannon Count gameplay screenshot22

Cannon Count

One mech vs the robot horde: grab augments, stack them, build a walking arsenal!

AGONIA ↗
Zombie Math gameplay screenshot23

Zombie Math

Pick the right math gates, grow your squad, hold the line vs the zombie horde!

AGONIA ↗
Class Toss gameplay screenshot24

Class Toss

Flick paper balls from the back row. Don't let the teacher see you!

AGONIA ↗
Paper Toss FRVR gameplay screenshot25

Paper Toss FRVR

Flick paper into the bin, read the fan's wind, and keep your streak alive!

AGONIA ↗
Dumpling Drop gameplay screenshot26

Dumpling Drop

Drop squishy 3D dumplings in a steamer, merge two alike, reach the golden one!

AGONIA ↗
Dumpling Toss gameplay screenshot27

Dumpling Toss

Flick squishy dumplings into a steaming steamer and collect 152 cute surprises!

AGONIA ↗
Squishy Bao FRVR gameplay screenshot28

Squishy Bao FRVR

Open mystery steamers, reveal squishy blind-box dumplings, fill every shelf!

AGONIA ↗
Helix FRVR gameplay screenshot29

Helix FRVR

Spin the glowing tower, drop through the gaps, smash down as a fireball!

AGONIA ↗
Hop FRVR gameplay screenshot30

Hop FRVR

Hold to charge, release to hop. Land dead centre for a perfect combo!

AGONIA ↗
Void Rush gameplay screenshot31

Void Rush

Retro anti-gravity racing vs 7 AI teams. Loops, missiles, mines. GO!

AGONIA ↗
Retake the Mine gameplay screenshot32

Retake the Mine

One dwarf. A lost mine. Choose your tunnel and fight your way back down.

AGONIA ↗
Dress to Slay! gameplay screenshot33

Dress to Slay!

Two queens walk the runway. Tap to stop the wheel, match a set, dodge the clashes, out-slay your rival.

AGONIA ↗
Kart Stars FRVR gameplay screenshot34

Kart Stars FRVR

Drift, boost and throw sports gear at your rivals in eight-kart arcade races.

AGONIA ↗
Claw Pit FRVR gameplay screenshot35

Claw Pit FRVR

Grab cursed dolls, drop them down the chute, pay the debt before it comes due.

AGONIA ↗
Demonio gameplay screenshot36

Demonio

Nine heroes, one endless demon dungeon. Find the keys. Go down. Forever.

AGONIA ↗
Lucky Tavern gameplay screenshot37

Lucky Tavern

Spin tavern's clockwork reels, collect charms, pay innkeeper his rent.

AGONIA ↗
The Maze gameplay screenshot38

The Maze

Fight or spare the lost in a living Maze. Dodge 60+ attacks, find the way out.

AGONIA ↗
Soccer FRVR gameplay screenshot39

Soccer FRVR

Three-minute soccer for one thumb: run, pass, shoot, dive. Climb the league!

AGONIA ↗
Portrait of Juan Martinez

A BIT ABOUT ME

Games meet language.
Curiosity does the rest.

AI Engineer: Machine Learning, Deep Learning, Reinforcement Learning, Creative AI (2D, 3D), NLP, Gameplay AI, Data Science & Analytics

Find me on LinkedIn ↗