# Hydra Castle Labyrinth

> Built from commit 3effc4a043e0 on 2026-11-24. The current build: https://abdess.github.io/retrobios/version.json

Source: https://abdess.github.io/retrobios/emulators/hcl/

It reads 7 files, 5 of them required: without a required file it does not start games.

**About this profile**

| Detail | Value |
|---|---|
| Type | standalone |
| Classification | Game engine |
| Source | [https://github.com/ptitSeb/hydracastlelabyrinth](https://github.com/ptitSeb/hydracastlelabyrinth) |
| Version | v0.1.0-4-ge316486, 4 commits after tag [`v0.1.0`](https://github.com/ptitSeb/hydracastlelabyrinth/tree/v0.1.0) |
| Revision | [ptitSeb/hydracastlelabyrinth@e31648688434](https://github.com/ptitSeb/hydracastlelabyrinth/commit/e31648688434a789e3056e52cdf1b9a842eeed48) |
| Run by | [Batocera](https://abdess.github.io/retrobios/platforms/batocera/), [KNULLI](https://abdess.github.io/retrobios/platforms/knulli/) |
| Profiled | 2026-10-04 |
| Profile | [YAML](https://github.com/Abdess/retrobios/blob/main/emulators/hcl.yml), [JSON](https://abdess.github.io/retrobios/api/v1/emulators/hcl.json) |
| Cores | hcl |
| Checks the file by | existence |

**Install this emulator's files**

With Batocera: the installer finds Batocera and its BIOS folder, then downloads only the files Hydra Castle Labyrinth reads there and checks each one.

Open a terminal on the device. Or connect from a computer with SSH, a terminal over the network. Paste the line. Press Enter.

Terminal

```
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator hcl
```

**Technical notes**

Open-source port of E. Hashimoto's 2008 Japanese freeware Metroidvania Hydra Castle Labyrinth. ptitSeb's SDL/SDL2/SDL3 fork is used by batocera (the package batocera/ports/hcl pins HCL_VERSION to this commit).

The SDL builds open every data file from a relative "data/" prefix hard-coded in the sources:

- [`src/qda.c:19`](https://github.com/ptitSeb/hydracastlelabyrinth/blob/e31648688434a789e3056e52cdf1b9a842eeed48/src/qda.c#L19), strcpy(fullPath, "data/") before the archive name
- [`src/sdl2/graphics.c:223`](https://github.com/ptitSeb/hydracastlelabyrinth/blob/e31648688434a789e3056e52cdf1b9a842eeed48/src/sdl2/graphics.c#L223), fopen("data/bmp.qda", "rb")
- [`src/text.c:79`](https://github.com/ptitSeb/hydracastlelabyrinth/blob/e31648688434a789e3056e52cdf1b9a842eeed48/src/text.c#L79), "data/" before en.dat or jp.dat
- [`src/game.c:1195`](https://github.com/ptitSeb/hydracastlelabyrinth/blob/e31648688434a789e3056e52cdf1b9a842eeed48/src/game.c#L1195) and [`src/game.c:1290`](https://github.com/ptitSeb/hydracastlelabyrinth/blob/e31648688434a789e3056e52cdf1b9a842eeed48/src/game.c#L1290), "data/map/" and "data/obj/"
- [`src/sdl2/audio.c:30`](https://github.com/ptitSeb/hydracastlelabyrinth/blob/e31648688434a789e3056e52cdf1b9a842eeed48/src/sdl2/audio.c#L30) and [`src/sdl2/audio.c:40`](https://github.com/ptitSeb/hydracastlelabyrinth/blob/e31648688434a789e3056e52cdf1b9a842eeed48/src/sdl2/audio.c#L40), "data/" before the music and sound names
- [`src/game.h:184`](https://github.com/ptitSeb/hydracastlelabyrinth/blob/e31648688434a789e3056e52cdf1b9a842eeed48/src/game.h#L184), savename macro = "data/save.tmp" Save files are rewritten in that same relative data/ tree, so the game must be launched from a working directory that contains data/.

Paths below are written under hcl/, which stands for that working directory. The data/ tree is shipped in the source repository.

## Files

**7 files**: 5 required, 2 optional.

By kind: 7 game data.

In this collection: 7 in repo and 0 missing.

## Game data

| File | Status |
|---|---|
| ** ### `bmp.qda` ** Packed graphics (QDA archive of all bitmaps) - Path: `hcl/data/bmp.qda`- The v0.1.0 release zips and AppImages ship the whole data/ tree next to the hcl binary. - Collection copy: [`bios/Game Engines/Hydra Castle Labyrinth/hcl/data/bmp.qda`](https://abdess.github.io/retrobios/systems/game-engines-hydra-castle-labyrinth/#sha1-13be946925e2) **Packages and source** - Not in the platform's package, so the pack brings it, on: batocera- Source: [`src/qda.c:19-28`](https://github.com/ptitSeb/hydracastlelabyrinth/blob/e31648688434a789e3056e52cdf1b9a842eeed48/src/qda.c#L19-L28), [`src/sdl2/graphics.c:223`](https://github.com/ptitSeb/hydracastlelabyrinth/blob/e31648688434a789e3056e52cdf1b9a842eeed48/src/sdl2/graphics.c#L223) | requiredin repogame data |
| ** ### `en.dat` ** English localization - Path: `hcl/data/en.dat` - Collection copy: [`bios/Game Engines/Hydra Castle Labyrinth/hcl/data/en.dat`](https://abdess.github.io/retrobios/systems/game-engines-hydra-castle-labyrinth/#sha1-17afe5b2af8a) **Packages and source** - Not in the platform's package, so the pack brings it, on: batocera- Source: [`src/text.c:79-93`](https://github.com/ptitSeb/hydracastlelabyrinth/blob/e31648688434a789e3056e52cdf1b9a842eeed48/src/text.c#L79-L93) | requiredin repogame data |
| ** ### `jp.dat` ** Japanese localization - Path: `hcl/data/jp.dat` - Collection copy: [`bios/Game Engines/Hydra Castle Labyrinth/hcl/data/jp.dat`](https://abdess.github.io/retrobios/systems/game-engines-hydra-castle-labyrinth/#sha1-c08247a57b8a) **Packages and source** - Not in the platform's package, so the pack brings it, on: batocera- Source: [`src/text.c:79-93`](https://github.com/ptitSeb/hydracastlelabyrinth/blob/e31648688434a789e3056e52cdf1b9a842eeed48/src/text.c#L79-L93) | requiredin repogame data |
| ** ### `map/` ** Room tile maps, <nnn>.map and the background layer <nnn>a.map - Path: `hcl/data/map/` - Collection copies: 402 files under [`bios/Game Engines/Hydra Castle Labyrinth/hcl/data/map/`](https://abdess.github.io/retrobios/systems/game-engines/#hydra-castle-labyrinth) ([browse](https://github.com/Abdess/retrobios/tree/main/bios/Game%20Engines/Hydra%20Castle%20Labyrinth/hcl/data/map)) **Packages and source** - Not in the platform's package, so the pack brings it, on: batocera- Source: [`src/game.c:1195-1209`](https://github.com/ptitSeb/hydracastlelabyrinth/blob/e31648688434a789e3056e52cdf1b9a842eeed48/src/game.c#L1195-L1209) | requiredin repogame datadirectory |
| ** ### `obj/` ** Per-room object definitions, <nnn>.dat - Path: `hcl/data/obj/` - Collection copies: 189 files under [`bios/Game Engines/Hydra Castle Labyrinth/hcl/data/obj/`](https://abdess.github.io/retrobios/systems/game-engines/#hydra-castle-labyrinth) ([browse](https://github.com/Abdess/retrobios/tree/main/bios/Game%20Engines/Hydra%20Castle%20Labyrinth/hcl/data/obj)) **Packages and source** - Not in the platform's package, so the pack brings it, on: batocera- Source: [`src/game.c:1290-1306`](https://github.com/ptitSeb/hydracastlelabyrinth/blob/e31648688434a789e3056e52cdf1b9a842eeed48/src/game.c#L1290-L1306) | requiredin repogame datadirectory |
| ** ### `midi/` ** Music, each track as .mid and .ogg - Path: `hcl/data/midi/`- PHL_LoadMusic appends .ogg or .mid according to the music type option. A track that fails to load is not played. - Collection copies: 30 files under [`bios/Game Engines/Hydra Castle Labyrinth/hcl/data/midi/`](https://abdess.github.io/retrobios/systems/game-engines/#hydra-castle-labyrinth) ([browse](https://github.com/Abdess/retrobios/tree/main/bios/Game%20Engines/Hydra%20Castle%20Labyrinth/hcl/data/midi)) **Packages and source** - Not in the platform's package, so the pack brings it, on: batocera- Source: [`src/sdl2/audio.c:25-34`](https://github.com/ptitSeb/hydracastlelabyrinth/blob/e31648688434a789e3056e52cdf1b9a842eeed48/src/sdl2/audio.c#L25-L34), [`src/game.c:48-56`](https://github.com/ptitSeb/hydracastlelabyrinth/blob/e31648688434a789e3056e52cdf1b9a842eeed48/src/game.c#L48-L56), [`src/game.c:473-474`](https://github.com/ptitSeb/hydracastlelabyrinth/blob/e31648688434a789e3056e52cdf1b9a842eeed48/src/game.c#L473-L474) | optionalin repogame datadirectory |
| ** ### `wav/` ** Sound effect samples - Path: `hcl/data/wav/` - Collection copies: 43 files under [`bios/Game Engines/Hydra Castle Labyrinth/hcl/data/wav/`](https://abdess.github.io/retrobios/systems/game-engines/#hydra-castle-labyrinth) ([browse](https://github.com/Abdess/retrobios/tree/main/bios/Game%20Engines/Hydra%20Castle%20Labyrinth/hcl/data/wav)) **Packages and source** - Not in the platform's package, so the pack brings it, on: batocera- Source: [`src/sdl2/audio.c:37-42`](https://github.com/ptitSeb/hydracastlelabyrinth/blob/e31648688434a789e3056e52cdf1b9a842eeed48/src/sdl2/audio.c#L37-L42), [`src/game.c:428-470`](https://github.com/ptitSeb/hydracastlelabyrinth/blob/e31648688434a789e3056e52cdf1b9a842eeed48/src/game.c#L428-L470) | optionalin repogame datadirectory |

## Next steps

- [Get the files](https://abdess.github.io/retrobios/which-pack/), for the setup in use
- [Every system](https://abdess.github.io/retrobios/systems/), and the files each one needs
- [When a game does not start](https://abdess.github.io/retrobios/wiki/troubleshooting/)

Data as of 24 November 2026.
