Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/greg-kennedy/tiltnroll
OpenGL and SDL ball-rolling game
https://github.com/greg-kennedy/tiltnroll
opengl physics-game sdl
Last synced: 5 days ago
JSON representation
OpenGL and SDL ball-rolling game
- Host: GitHub
- URL: https://github.com/greg-kennedy/tiltnroll
- Owner: greg-kennedy
- License: gpl-2.0
- Created: 2022-07-24T03:00:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-05T05:19:53.000Z (over 2 years ago)
- Last Synced: 2024-12-11T22:09:30.413Z (2 months ago)
- Topics: opengl, physics-game, sdl
- Language: C++
- Homepage: https://greg-kennedy.itch.io/tilt-n-roll
- Size: 2.09 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-osx.txt
- License: COPYING
Awesome Lists containing this project
README
OSX notes:
Dependencies
===
Mac users will need to obtain the following libraries to play this game:
* SDL
* SDL_mixer
* SDL_image
* SDL_ttf
* SDL_imageCheck http://www.libsdl.org/ for sources.
Tilt sensors
===
Here are the steps required to play Tilt-n-Roll with the tilt sensors on the mac:1) Calibrate your tilt sensor.
Using the terminal, start the program 'calibrate' from ./unimotion/bin/calibrate
Then follow these steps:
* Turn your laptop 90 degrees to the right
* Press Enter
* type xscale
* Type in the first number after the r: line above and press Enter.* Turn your laptop 90 degrees back
* Press Enter
* type yscale
* Type in the second number after the r: line above and press Enter.* type zscale
* Enter a number such that the third number after r: divided by your entry is
less than 1 (e.g. if r: 3 5 250 is displayed, try entering 300 since 250/300 < 1)Try it out by pressing Enter a few times while turning your laptop. Numbers after the
f: line should be in the range -1.0 to 1.0 corresponding to 90 degree extremes.Press CTRL+D when done.
2) Start the game. Run tnr-osx-threaded from the ./game/ directory. You should be able
to use the tilt to control the angle while the game is playing.3) If you notice the level seems to tilt the opposite direction, re-calibrate but enter
negative values instead (e.g. if the left-right is reversed and you had previously
used 150, enter -150 instead)4) To adjust sensitivity, you can play with the xscale/yscale/zscale values. Higher
numbers are less sensitive.