https://github.com/shihabshahrier/infinite_rolling_ball
CSE423 Project
https://github.com/shihabshahrier/infinite_rolling_ball
collision-detection glut midpoint-circle-algorithm midpoint-line-algorithm opengl pyopengl python3
Last synced: 15 days ago
JSON representation
CSE423 Project
- Host: GitHub
- URL: https://github.com/shihabshahrier/infinite_rolling_ball
- Owner: shihabshahrier
- Created: 2023-12-03T11:10:58.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-13T19:53:53.000Z (over 2 years ago)
- Last Synced: 2025-03-21T09:47:47.345Z (about 1 year ago)
- Topics: collision-detection, glut, midpoint-circle-algorithm, midpoint-line-algorithm, opengl, pyopengl, python3
- Language: Python
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Infinite Rolling Ball
## Description
This is a game where you control a ball and try to avoid obstacles. The ball is constantly rolling and you can only jump to avoid obstacles. The game is over when you hit an obstacle. you can also collect infinite disc to destroy obstacles.
## How to play
- Press `space` to jump
- Press `esc` to quit
- Press `s` to throw disc towards the obstacle
- Press `Right Arrow` to move right
- Press `Left Arrow` to move left
- click pause button to pause the game
- click play button to resume the game
- click restart button to restart the game
- click view button to change the window view(night or day)
## Prerequisites
### install python
- download python from [python.org](https://www.python.org/downloads/)
### install pyopengl
- open terminal
- type `pip install pyopengl`
- type `pip install pyopengl_accelerate`
# How to run
- clone the repository or download the zip file
- open terminal
- type `cd Infinite-Rolling-Ball`
- type `python main.py`