{"id":16081974,"url":"https://github.com/l1mey112/yr11-physics-applied","last_synced_at":"2025-10-27T00:36:24.059Z","repository":{"id":147939119,"uuid":"618852011","full_name":"l1mey112/yr11-physics-applied","owner":"l1mey112","description":"Year 11 Physics, Applied. A collection of interactive demonstrations and physics simulations.","archived":false,"fork":false,"pushed_at":"2023-06-30T11:08:46.000Z","size":1107,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-28T07:36:27.331Z","etag":null,"topics":["c-programming","emscripten","imgui","interactive","physics","physics-simulation","sokol","wasm","website"],"latest_commit_sha":null,"homepage":"https://l-m.dev/physics-applied","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/l1mey112.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-25T14:42:14.000Z","updated_at":"2024-11-22T14:28:28.000Z","dependencies_parsed_at":"2024-10-27T17:22:28.252Z","dependency_job_id":"8adfbf9e-58b7-4d37-b6b2-09dd1908d67e","html_url":"https://github.com/l1mey112/yr11-physics-applied","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l1mey112%2Fyr11-physics-applied","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l1mey112%2Fyr11-physics-applied/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l1mey112%2Fyr11-physics-applied/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l1mey112%2Fyr11-physics-applied/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/l1mey112","download_url":"https://codeload.github.com/l1mey112/yr11-physics-applied/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243905997,"owners_count":20366953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-programming","emscripten","imgui","interactive","physics","physics-simulation","sokol","wasm","website"],"created_at":"2024-10-09T11:24:53.013Z","updated_at":"2025-10-27T00:36:23.980Z","avatar_url":"https://github.com/l1mey112.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Year 11 Physics, Applied.](https://l-m.dev/physics-applied)\n\nWelcome! This repository is a collection of interactive demonstrations and physics simulations designed to visualise and reinforce the physics concepts I have learned in my Year 11 physics class.\n\nEach demo will be interactive and will cover a certain noteworthy topic. They will be created as I learn the content and will be provided free of charge for everyone.\n\nThe demos included in this repository are written purely in the C programming language and use Emscripten to compile them to WebAssembly.\n\n**Visit the page at [l-m.dev/physics-applied](https://l-m.dev/physics-applied)**\n\nSupporting libraries [sokol](https://github.com/floooh/sokol) and [Dear ImGui](https://github.com/ocornut/imgui) are used as an abstraction layer over the specifics of the web/browser and allow me to focus on writing the demos, not hassle with the looks.\n\nAll of the code in this repository is licensed under the MIT open source license. See the LICENSE file for more details.\n\n\u003c!-- To use the demos, simply visit my website and navigate to the Year 11 Physics Applied section. From there, you can select any demo you would like to run and begin interacting with it. --\u003e\n\n# Compilation\n\nI don't like `cmake`, too complicated and not enough control. I took the existing compilation for `libsokol.a` and `libcimgui.a`, then blindly seralised it into a single `Makefile`.\n\nInstall Emscripten, this will provide `emcc`, `em++`, and `wasm-opt`.\n\nOh yeah, don't try this on Windows, just don't.\n\nCall `make` to create HTML files in `public/`.\n\n```\n$ make\n$ ls public\n...\n...\n```\n\nYou can also create production/optimised builds, which will insert certain CFLAGS and run more code. Call with `-j\u003ccores\u003e` to run builds concurrently.\n\n```\n$ make PROD=1 -j$(nproc)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl1mey112%2Fyr11-physics-applied","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fl1mey112%2Fyr11-physics-applied","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl1mey112%2Fyr11-physics-applied/lists"}