Too Long; Didn't Read
Coding for Gamers: The Long Dark is a new coding for gamers blog series. In this tutorial I will walk you through the process of extracting a feature from a video game and recreating it on your own. I suggest starting with something simple, like a hunger meter, to measure time. You can use a Javascript function like setInterval that would get called every time 30 seconds have passed and test it out here. If you’re using a coding editor in the browser, you can reduce the number of milliseconds to 1000 for testing purposes.