Skip to content

Commit

Permalink
set window icon, title, convert mp3 to wav
Browse files Browse the repository at this point in the history
  • Loading branch information
ShakyaMajumdar committed Sep 25, 2021
1 parent 9da8e69 commit 13174e9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
Binary file removed models/Guitar-Mayhem-3.mp3
Binary file not shown.
Binary file added models/Guitar-Mayhem-3.wav
Binary file not shown.
Binary file added models/logo.ico
Binary file not shown.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
options={
'build_apps': {
'gui_apps': {
"Infinity Coaster": "tracks.py"
"InfinityCoaster": "tracks.py"
},
'build_base': "../infinity_build",
'plugins': [
Expand All @@ -19,4 +19,4 @@
],
}
}
)
)
6 changes: 5 additions & 1 deletion tracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
class Game(ShowBase):
def __init__(self):
super().__init__()
props = WindowProperties()
props.set_title("Infinity Coaster")
props.icon_filename = "models/logo.ico"
base.win.requestProperties(props)

cube_map = self.loader.loadCubeMap("models/sky_#.png")
self.sky_box = self.loader.loadModel("models/coaster.bam")
Expand Down Expand Up @@ -65,7 +69,7 @@ def __init__(self):
}
self.accept("escape", sys.exit)

self.music = self.loader.loadMusic("models/Guitar-Mayhem-3.mp3")
self.music = self.loader.loadMusic("models/Guitar-Mayhem-3.wav")
self.music.setVolume(0.5)
self.music.setLoop(True)
self.music.play()
Expand Down

0 comments on commit 13174e9

Please sign in to comment.