glcc: little cave adventure

Using, learning, programming and modding the Gigatron and anything related.
Forum rules
Be nice. No drama.
Post Reply
petersieg
Posts: 111
Joined: 28 Jun 2023, 09:06

glcc: little cave adventure

Post by petersieg »

Hi all.
I found a very nice tutorial on howto write an text adventure in C:
https://helderman.github.io/htpataic/htpataic01.html

Github repo is here: https://github.com/helderman/htpataic
MIT License: https://github.com/helderman/htpataic/b ... er/LICENSE

I compiled it up to chapter 8 for Gigatron.
Commented out #include <stdbool.h>
and included:
#define bool int
#define false 0
#define true 1
in various files.

So maybe someone now wants to extend/write their own adventure ;-)

In the zip in subfolder v0 is the original code. Only int main(void) added. Exe is for Mac Ventura.

best, Peter
Attachments
Bildschirmfoto 2023-08-14 um 15.15.52.png
Bildschirmfoto 2023-08-14 um 15.15.52.png (48.03 KiB) Viewed 542 times
lilcave.zip
(64.5 KiB) Downloaded 60 times
petersieg
Posts: 111
Joined: 28 Jun 2023, 09:06

Re: glcc: little cave adventure

Post by petersieg »

Here now up to chapter 14 compiled.
In zip: v0 = original version. v08 = last version until chapter 08.
main directory = chapter 14.

Have fun, Peter
Attachments
Bildschirmfoto 2023-08-14 um 21.50.54.png
Bildschirmfoto 2023-08-14 um 21.50.54.png (47.66 KiB) Viewed 514 times
lilcave.zip
(124.37 KiB) Downloaded 65 times
Post Reply