Giter VIP home page Giter VIP logo

circles's Introduction

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?

circles's People

Watchers

 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.