Closed drpaneas closed 2 years ago
Hi Panos That book is for Windows though the source code for Linux doesn't vary that much. I did the conversion about three years ago and put the Linux code on GitHub. It's in https://github.com/David-H-Bolton/LearnCOnLinux The chapter 48 is the full source code.of the game.
The main differences between the Windows (VS code) and Linux (Gcc or Clang) is that the path to SDL2 libraries on Linux have a SDL prefix so instead of SDL.h it's SDL\SDL.h . Also Visual Studio expect the safe str functions strcmp_s etc while the clang one doesn't. The vs code JSON files are also probably out of date as the clang version will be higher than the one I used.
I am working on a 2nd book which will be Linux but Raspberry Pi oriented with three games in it- Asteroids, a Match Three game and possibly a Tower Defence game. But it's at least 6 months away.
I hope that helps!
Cheers
David
On Sun, 8 May 2022 at 08:59, Panagiotis Georgiadis @.***> wrote:
Hello,
I am interested in buying the book and going down the C Programming with Games. However I have noticed you mention Windows only. Can this be the code is not compatible for Mac or Linux?
Thanks, Panos
— Reply to this email directly, view it on GitHub https://github.com/David-H-Bolton/LearnC/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQTUEW27D76O4RAROXFYODVI5X4HANCNFSM5VLSBEPA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Excellent, thx David
Hello,
I am interested in buying the book and going down the C Programming with Games. However I have noticed you mention Windows only. Can this be the code is not compatible for Mac or Linux?
Thanks, Panos