# \#tsdl

**URL:** https://discuss.ocaml.org/tag/tsdl/121.md

[Latest](https://discuss.ocaml.org/latest.md) · [Categories](https://discuss.ocaml.org/categories.md) · [Tags](https://discuss.ocaml.org/tags.md)

---

## [Looking for example tsdl games](https://discuss.ocaml.org/t/looking-for-example-tsdl-games/3880)

<div class="topic-metadata">

**Author:** [@martindemello](https://discuss.ocaml.org/u/martindemello)\
**Replies:** 12\
**Last updated:** [May 17, 2023, 6:24am UTC](https://discuss.ocaml.org/t/looking-for-example-tsdl-games/3880 "2023-05-17T06:24:08Z")

</div>

I’ve been trying to get to grips with tsdl, and having a hard time of it. In particular, having to constantly unpack Result return values gets pretty clunky when following sdl tutorials (which assume an imperative API an…

---

## [Remaking an Old Game in OCaml](https://discuss.ocaml.org/t/remaking-an-old-game-in-ocaml/9760)

<div class="topic-metadata">

**Author:** [@bluddy](https://discuss.ocaml.org/u/bluddy)\
**Replies:** 9\
**Last updated:** [July 27, 2022, 6:55am UTC](https://discuss.ocaml.org/t/remaking-an-old-game-in-ocaml/9760 "2022-07-27T06:55:59Z")

</div>

I’ve starting blogging about a side-project of mine. Hopefully I’ll find the time to write some further entries in the series, including about reverse engineering a binary with IDA.

---

## [Graphics and event management for a retro-gaming project](https://discuss.ocaml.org/t/graphics-and-event-management-for-a-retro-gaming-project/6915)

<div class="topic-metadata">

**Author:** [@thibautbenjamin](https://discuss.ocaml.org/u/thibautbenjamin)\
**Replies:** 8\
**Last updated:** [December 9, 2020, 9:25am UTC](https://discuss.ocaml.org/t/graphics-and-event-management-for-a-retro-gaming-project/6915 "2020-12-09T09:25:59Z")

</div>

I am currently working in a project that I have written out in OCaml, and I need to do some graphics. This project is a small emulator for the space invaders arcade machine (following emulator101.com). Current state of …

---

## [Reading SDL events (via TSDL)](https://discuss.ocaml.org/t/reading-sdl-events-via-tsdl/1052)

<div class="topic-metadata">

**Author:** [@cfcs](https://discuss.ocaml.org/u/cfcs)\
**Replies:** 6\
**Last updated:** [July 22, 2020, 2:49pm UTC](https://discuss.ocaml.org/t/reading-sdl-events-via-tsdl/1052 "2020-07-22T14:49:17Z")

</div>

Hello! I’m trying to read input events from @dbuenzli’s TSDL library in my Lwt application. API: http://erratique.ch/software/tsdl/doc/Tsdl.Sdl.html#events val wait\_event : event option -\> unit result If I use wait\_e…

---

## [Tsdl API confusion: How do I get "pixel\_format" from "Pixel.format\_enum" or from a "surface"?](https://discuss.ocaml.org/t/tsdl-api-confusion-how-do-i-get-pixel-format-from-pixel-format-enum-or-from-a-surface/4260)

<div class="topic-metadata">

**Author:** [@kenranunderscore](https://discuss.ocaml.org/u/kenranunderscore)\
**Replies:** 8\
**Last updated:** [August 23, 2019, 3:53pm UTC](https://discuss.ocaml.org/t/tsdl-api-confusion-how-do-i-get-pixel-format-from-pixel-format-enum-or-from-a-surface/4260 "2019-08-23T15:53:57Z")

</div>

Hi, I’m trying to learn OCaml and the SDL graphics library simultaneously at the moment, and I’m still struggling with how to eat my way through an OCaml API. I’m using the Tsdl library, and it seems to have two types t…
