g307m / circles Goto Github PK
View Code? Open in Web Editor NEWA learning project with C and SDL2
License: MIT License
A learning project with C and SDL2
License: MIT License
Circles, a learning project with C and SDL2 What you can do with it: - Click to change the position of the larger circle - Control the position of the smaller circle by moving your cursor - Have the larger circle change color if it's colliding with the smaller circle - Look at the red circle showing the closest point to the small circle How to build and run (on Debian 10): 1. Have these packages: libsdl2-dev libsdl2-gfx-dev clang 2. Run this command to build: clang -lSDL2 -lm -lSDL2_gfx -g main.c circle.c maths.c -o circles 3. Run the program with this command: ./circles Resources I've used: - https://lazyfoo.net/tutorials/SDL/01_hello_SDL/index2.php (I remember this page being useful, but I forget what for.) - https://wiki.libsdl.org/ - https://suckless.org/coding_style/ (I could suck less at following this) - https://www.ferzkopp.net/Software/SDL2_gfx/Docs/html/_s_d_l2__gfx_primitives_8h.html - https://yal.cc/rectangle-circle-intersection-test/ Development environment: - Debian 10 container on ChromeOS - VSCodium with these packages: - llvm-vs-code-extensions.vscode-clangd - vadimcn.vscode-lldb - Clang & LLDB 7.0.1 Who needs Markdown?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.