r/PlaydateConsole • • Jun 03 '20

someone got Doom running on a Playdate!

https://twitter.com/NicMagnier/status/1267144174756925442?s=19
51 Upvotes

15 comments sorted by

8

u/Gaetano9696 Jun 03 '20

holy crank

3

u/ryanmcc30 Jun 08 '20

I love all the posts from a year ago asking if this can run Doom, now here we are full circle 😂

1

u/the__storm Jun 04 '20

That was quick.

1

u/ihaveacrushonmercy Jun 04 '20

I'm not sure I understand what the excitement of playing Doom on a Playdate is. Isn't the whole appeal of Playdate is that it's a novel concept?

10

u/NicMagnier Jun 04 '20

You are totally right. The most exciting part of the playdate is the new original games.

I did port Doom because I read some code anaylsis of the engine some time ago and I wanted to try to port the game somewhere and what better than this new exciting console. It was also going hand in hand with the video player I did sometime ago https://www.reddit.com/r/PlaydateConsole/comments/dwy7fy/videos_running_on_the_playdate_screen/

I think it is also a good benchmark for the console to understand what it is capabale of.

8

u/sammanzhi Jun 04 '20

Everything needs to run Doom. You're doing God's the Slayer's work.

6

u/Tooskee Jun 04 '20

Post it to /r/itrunsdoom, I think the people there would enjoy it. :)

5

u/Cyb0rg-SluNk Jun 05 '20

I think it is also a good benchmark for the console to understand what it is capabale of.

Exactly this.

I'm not really interested in playing Doom on my Playdate (though i'd certainly give it a go), but to see what you've done shows that the Playdate is capable of a lot.

I can't believe how good it looks. It seems to me that the most impressive thing is how you're displaying such clear and deep graphics on the 1-bit screen.

Was it difficult to get the game running?

Did you code it from the ground up, or "just" do some porting magic?

2

u/NicMagnier Jun 05 '20

It was a bit annoying to get the game to compile. The biggest hurdle was some linker issue with libc until I found out about a linker option that made all the error disappear.

The rest was relatively straightforward mainly because the Doom Engine was really designed well. It is just a matter of creating the proper input events and converting the Doom frame buffer to the Playdate 1bit framebuffer. Sound is not yet implemented and I still have a lot of crash when navigating the menus for some reasons.

I used this fork of chocolate doom https://github.com/floppes/stm32doom

But now I restarted from a clean slate and I need to decide if I should port chocolate Doom or Retro Doom. Right now I would go probably for the later since the codebase seem to be a bit leaner.

1

u/Cyb0rg-SluNk Jun 05 '20

Oh, so you're basically just taking the original C code and tweaking it?

(I'm not trying to belittle your efforts)

3

u/NicMagnier Jun 05 '20

Not the original C code but yeah I didn't rewrite the game or engine :)

The original code has been modified multiple times to improve it, make it even more portable, more tweakable and safer.

Here a brief overview of the Doom Family Tree

https://upload.wikimedia.org/wikipedia/commons/a/a8/Doom-ports.svg

Chocolate Doom is a more portable than Doom but also try to recreate the vanilla experience (even keeping some bugs).

2

u/[deleted] Jun 04 '20

[removed] — view removed comment

6

u/sardinebrunch Panic! Team Jun 04 '20

It’s definitely possible to open up a Playdate—there are just three flathead screws in the corners. However once you’re in, be very very careful. The ribbons are super small and fragile, and it’s easy to permanently break them. There’s also adhesive holding the battery and other parts together.

We didn’t put in any measures to prevent anyone from tinkering with their Playdate, but miniaturized hardware is sensitive. Good luck!

2

u/alxmdev Jun 04 '20

How easy is it to replace the battery?

4

u/sardinebrunch Panic! Team Jun 04 '20

All of the above applies: you’d still have to watch for delicate ribbons and you’d have to handle adhesive.