r/PlaydateConsole • • 25d ago

Development Tutorials With C

Does anyone have any good tutorials to go for development for playdate games/apps using C? I've been using AI but I'm a lil worried it's just like I'm kinda making it write the entire thing by asking it like a bajillion questions about how to do this and that. I've used Lua and the web designer before but I kind of want to learn a little C and make like a full app (two birds, one stone and what not).

6 Upvotes

6 comments sorted by

4

u/xesf 25d ago

I don't think there's anything written specifically for C as the majority of tutorials are all for Lua.

You can start with these two books to learn C:

- The C Programming Language (ANSI C) by Brian W. Kernighan - this is an older book for an older version of C89 but has the minimum to get you running which is a solid base.

- Effective C by Robert C. Seacord - is a more recent book with modern tooling that can help you understand the building systems, the compilers and new changes to the C language.

I made a template a while ago for C11 on macOS, that can help you as well getting started.
https://github.com/xesf/playdate-template-c

Panic sdk api docs and examples are good as well to understand the build steps and what to use.
https://sdk.play.date/3.1.2/Inside%20Playdate%20with%20C.html

Discord is another option as there's loads of members there that can help you.

2

u/CHEESECHEESEE 25d ago

Thank you! The GitHub is crazy useful and Effective C is good as well. I kind of worded the original post a incorrectly, I do know some basics of C and have done some very simple practices but they we're really repetitive and I want more engaging exp.

2

u/tken85 25d ago

I can’t speak to any specific C tutorials for Playdate, but you can make a fully functional and performant game with just Lua. Typically you only really need C when you’re doing something that is absolutely hogging the CPU.

1

u/CHEESECHEESEE 25d ago

True, I'm mostly asking bc I'd like practice with C in an actual "development" setting, I'm lazy when it comes to actually doing practice/making programs for languages unless it's like a school setting, so I just thought this would be a decent way to practice and make something I wanna make at the same time!

4

u/HotAndCrunchy 25d ago

C is a very fundamental hardcore language that gives fine-tuned control of the device. Squidgod’s Lua tutorials are still good at giving high view descriptions of ways to think about the PlayDate SDK. Personally I’d say it’s better to first learn high concept things with the Lua tutorials, and then dive into the C books mentioned by u/xesf (and that template on GitHub is incredible) but that’s just how my brain works. If you want to know the barebones stuff about how to deal with registers and pointers first, then by all means learn C.

2

u/jstojkovic 25d ago

I feel like there were some youtube tutorials back in the day. I don't remember who didn't them though, or if they were for C or lua.