{"id":16379892,"url":"https://github.com/blayung/ca-physics","last_synced_at":"2025-07-26T20:07:06.578Z","repository":{"id":37588451,"uuid":"498404078","full_name":"Blayung/ca-physics","owner":"Blayung","description":"A simple cellular automaton-based physics simulation written in c++.","archived":false,"fork":false,"pushed_at":"2024-05-10T20:43:45.000Z","size":230,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T14:40:16.687Z","etag":null,"topics":["cellular-automaton","cpp","physics","physics-simulation","sdl2","simulation"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Blayung.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":"2022-05-31T15:58:47.000Z","updated_at":"2023-08-03T20:02:55.000Z","dependencies_parsed_at":"2024-05-10T21:46:10.147Z","dependency_job_id":"90646a14-8123-4a62-a8a6-e661f7a01d63","html_url":"https://github.com/Blayung/ca-physics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Blayung/ca-physics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blayung%2Fca-physics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blayung%2Fca-physics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blayung%2Fca-physics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blayung%2Fca-physics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Blayung","download_url":"https://codeload.github.com/Blayung/ca-physics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blayung%2Fca-physics/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265905116,"owners_count":23846696,"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":["cellular-automaton","cpp","physics","physics-simulation","sdl2","simulation"],"created_at":"2024-10-11T03:49:52.872Z","updated_at":"2025-07-19T08:35:08.388Z","avatar_url":"https://github.com/Blayung.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cellular Automaton Physics Project\n# DISLAIMER: I'M CURRENTLY REWRITING THIS PROJECT IN RUST, THE C++ VERSION WON'T GET ANY MORE SUPPORT. YOU CAN CHECK OUT THE RUST DEVELOPMENT BRANCH OVER [HERE](https://github.com/Blayung/ca-physics/tree/rust-dev).\n## Features\n* Simple 2d physics\n    * Gases physics\n    * Liquid physics\n    * Powders physics\n* Particles: stone, wood, water, oil, sand, gunpowder, fire, lava, steam, smoke, flammable gas\n* Time control, custom grid and particle sizes.\n## Controls\n**Scroll -\u003e** Choose a particle  \n**LMB -\u003e** Place a particle  \n**RMB -\u003e** Remove a particle  \n**R -\u003e** Reset the grid  \n**Q/Escape -\u003e** Quit  \n**Left/Right arrow -\u003e** Change speed  \n## Compiling (assuming you're on linux)\nClone the repo:  \n`git clone https://github.com/Blayung/ca-physics.git`  \n`cd ca-physics`  \n\nInstall sdl2 and sdl2 ttf (I use pacman for example):  \n`sudo pacman -S sdl2`  \n`sudo pacman -S sdl2_ttf`  \n\nCompile the program:  \n`g++ main.cpp -lSDL2 -lSDL2_ttf`  \n\nRun it:  \n`./a.out`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblayung%2Fca-physics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblayung%2Fca-physics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblayung%2Fca-physics/lists"}