Skip to content

Commit 5ee0771

Browse files
committed
The completed 2D mini golf game =^.^=
1 parent d5c3e73 commit 5ee0771

File tree

9 files changed

+932
-0
lines changed

9 files changed

+932
-0
lines changed

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "2D Game",
9+
"type": "python",
10+
"request": "launch",
11+
"program": "src/main.py",
12+
"console": "integratedTerminal"
13+
}
14+
]
15+
}

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Mini golf 2D
2+
This project was creates as a part of the _Computer Graphics_ course at _Reykjavik University_. It's a mini golf game with 5 levels. You advance to the next level by hitting the ball into the red box doing this in the final 5 level will restart the game. The strength and direction of the shot can be controlled by holding down the left mouse button.
3+
4+
## Example of the first two levels
5+
6+
![](res/readme/example.gif)
7+
8+
## Installation and running the game
9+
This game uses PyOpenGL and pygame for rendering and PyGLM for beautiful math. You can use `pip install -r requirements.txt` to install these requirements
10+
11+
Use `python src/main.py` to run the game.

requirments.txt

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
appdirs==1.4.3
2+
CacheControl==0.12.6
3+
certifi==2019.11.28
4+
chardet==3.0.4
5+
colorama==0.4.3
6+
contextlib2==0.6.0
7+
distlib==0.3.0
8+
distro==1.4.0
9+
html5lib==1.0.1
10+
idna==2.8
11+
ipaddr==2.2.0
12+
lockfile==0.12.2
13+
msgpack==0.6.2
14+
packaging==20.3
15+
pep517==0.8.2
16+
progress==1.5
17+
PyGLM==1.99.3
18+
PyOpenGL==3.1.5
19+
pyparsing==2.4.6
20+
pytoml==0.1.21
21+
requests==2.22.0
22+
retrying==1.3.3
23+
six==1.14.0
24+
urllib3==1.25.8
25+
webencodings==0.5.1
26+
appdirs==1.4.3
27+
CacheControl==0.12.6
28+
certifi==2019.11.28
29+
chardet==3.0.4
30+
colorama==0.4.3
31+
contextlib2==0.6.0
32+
distlib==0.3.0
33+
distro==1.4.0
34+
html5lib==1.0.1
35+
idna==2.8
36+
ipaddr==2.2.0
37+
lockfile==0.12.2
38+
msgpack==0.6.2
39+
packaging==20.3
40+
pep517==0.8.2
41+
progress==1.5
42+
pygame==2.0.0
43+
PyGLM==1.99.3
44+
PyOpenGL==3.1.5
45+
pyparsing==2.4.6
46+
pytoml==0.1.21
47+
requests==2.22.0
48+
retrying==1.3.3
49+
six==1.14.0
50+
urllib3==1.25.8
51+
webencodings==0.5.1

res/readme/example.gif

2.98 MB
Loading

src/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)