GithubHelp home page GithubHelp logo

wwhhhhll / lazyfoo-sdl2c Goto Github PK

View Code? Open in Web Editor NEW

This project forked from haxpor/lazyfoo-sdl2c

0.0 0.0 0.0 5.86 MB

lazyfoo SDL2 tutorial in C with improvement and modifications.

License: MIT License

Makefile 2.54% C 87.34% Shell 0.07% C++ 10.05%

lazyfoo-sdl2c's Introduction

lazyfoo-sdl2c

Source code studying Lazy Foo's SDL2 tutorial in C.

Each tutroial has code ported to C based on -std=c99.

How to Build

Go to each sample directory, then execute make to compile and build each one.
Execute make clean to clean built files.

Or

Just go to root directory, then execute make or make clean to build or clean respectively for all samples.

Credits Author

This project is based on the work of Lazyfoo. See License for more information about rights.

Note

  • The C port is not 100% similar to the original. May be slightly different, or more customization for learning purpose. So watch out and look at the code!
  • Use template.c, and template.gitignore files to kickstart each sample.
  • LTexture.c, LTexture.h, LButton.c, LButton.h, common.c, common.h are gradually improved, refactored, and added more functionality on top from one sample to another. If you need a more updated version of it, look at the most recent sample. You might have to look into multiple of samples to gather all reuseable systems as certain samples don't require to use certain systems. Anyway, when this repository is done, I will separate all those reusable systems (.c, and .h) files out into separate place.
  • Each individual sample is self-contained.
  • Use createsample.sh to kickstart creating a new sample directory based on existing one. See comment in the source file for detail how to use.

Tutorial of 52-55 is put on hold (those are for mobile).

Credits

  • Minecraft font by Craftron Gaming on dafont.com - link
  • 8bit Wonder font by Joiro Hatgaya on dafont.com - link

License

  • As stated in http://lazyfoo.net/contact.php, the rights of this derived works (code and assets) still belong to Lazyfoo otherwise noted. LGPL, LazyFoo, original author this repository based on.

  • The code that's not based on original work is belong to me (Wasin Thonkaew) as MIT.

  • Other additional assets are belong to what is noted in README.md file of corresponding sample.

If you have any enquiry about modifying or extending the project, please contact LazyFoo here.

lazyfoo-sdl2c's People

Contributors

haxpor avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.