https://github.com/spilth/sfml-box2d
SFML & Box2D
https://github.com/spilth/sfml-box2d
Last synced: about 2 months ago
JSON representation
SFML & Box2D
- Host: GitHub
- URL: https://github.com/spilth/sfml-box2d
- Owner: spilth
- Created: 2021-02-24T00:14:55.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-09T03:37:14.000Z (over 5 years ago)
- Last Synced: 2025-03-13T06:12:51.411Z (over 1 year ago)
- Language: C++
- Size: 907 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SFML & Box2D
Adapted from [Tutorial: Getting Started with Box2D and SFML](https://veendeta.wordpress.com/2012/02/16/tutorial-getting-started-with-box2d/)
## Getting Started
### Install Prerequisites
You'll need the following installed:
- [SFML](https://www.sfml-dev.org)
- [Box2D](https://box2d.org)
- [CMake](https://cmake.org)
You can install them easily with [Homebrew](https://brew.sh):
```bash
$ brew install sfml box2d cmake
```
### Checkout, Build, Run
```bash
$ git clone https://github.com/spilth/sfml-box2d
$ cd sfml-box2d
$ mkdir cmake-build-debug
$ cd cmake-build-debug
$ cmake ..
$ cmake -build .
$ cd ..
$ ./cmake-build-debug/sfml-box2d
```
Note: If you import the project into CLion, be sure to set `sfml-box2d | Debug`'s working directory to the root of the project.
## Screenshot
