Code Monkey home page Code Monkey logo

Comments (6)

orsenthil avatar orsenthil commented on May 29, 2024

I was able to play the game by converting the ogg files to wav. Suggest shiping .wav instead of .ogg

@@ -340,10 +340,10 @@ expl_sounds = []
 for sound in ['expl3.wav', 'expl6.wav']:
     expl_sounds.append(pygame.mixer.Sound(path.join(sound_folder, sound)))
 ## main background music
-pygame.mixer.music.load(path.join(sound_folder, 'tgfcoder-FrozenJam-SeamlessLoop.ogg'))
+pygame.mixer.music.load(path.join(sound_folder, 'tgfcoder-FrozenJam-SeamlessLoop.wav'))
 pygame.mixer.music.set_volume(0.2)

-player_die_sound = pygame.mixer.Sound(path.join(sound_folder, 'rumble1.ogg'))
+player_die_sound = pygame.mixer.Sound(path.join(sound_folder, 'rumble1.wav'))
 ###################################################

 ## group all the sprites together for ease of update

from spaceshooter.

tasdikrahman avatar tasdikrahman commented on May 29, 2024

Hey @orsenthil

I don't have a MAC so couldn't test on it.
Will try to fix #1 and #2 in the next release.

Thanks for your time 😄

from spaceshooter.

triple-h3lix avatar triple-h3lix commented on May 29, 2024

I'm not too familiar with mac, either. My first thought was to throw the .dll files for playing .ogg files into the game /dir.

from spaceshooter.

tasdikrahman avatar tasdikrahman commented on May 29, 2024

@orsenthil Does doing the following fix the issue?

$ brew install libogg
$ brew install libvorbis
$ brew install sdl_mixer --with-libvorbis

from spaceshooter.

orsenthil avatar orsenthil commented on May 29, 2024

@prodicus , that solves the problem with ogg files on mac. Thanks. (.wav is supported out of box all platforms, but not sure if it's worth converting ogg to wav).

from spaceshooter.

tasdikrahman avatar tasdikrahman commented on May 29, 2024

@orsenthil 👍 So there are no issues apart from this in OS X that you encountered?

from spaceshooter.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.