Java Programming: Let’s Build a Game #11

Produce your own Java game from scratch with this very simple, yet very powerful course available right now

In this video we add sound into our game! If you have any questions then be sure to leave a comment or contact me on twitter; realtutsgml. If you learned something then be sure to leave a like, comment, and favorite.

Java Libs –

Have you ever wanted to create games? Have you ever gotten fed up with it being to difficult? Well now is the time to thank me and possibly subscribe because you have just found the channel for you! Game Maker Tutorials, Java Game Programming, Unity3D Tutorials, Batch, C++ and much much more! This is the channel for you, the one stop shop for an exploration of your hidden talent as a game developer. Unleash your potential and go wild with imagination when you finally figure out how to make any game you want!

Visit CodingMadeSimple for more exclusive tutorials and get the help you need to succeed as your very own indie game developer!

Follow me on twitter for exclusive content and interaction with me!

Follow me on Google+ to keep updated with all of my tutorials

Game Maker Studio: Programming
Game Maker Studio: Tutorial
Java Programming
Game Programming
Game Tutorial
Programming Tutorial






22 responses to “Java Programming: Let’s Build a Game #11”

  1. life fts Avatar

    i cannot do this in IDE netbeans πŸ™

  2. Mees Buschman Avatar

    I have this error over and over again:
    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Unknown Source)
    at Source)
    at Source)
    at Source)
    at org.newdawn.slick.openal.OggDecoder.getData(
    at org.newdawn.slick.openal.SoundStore.getOgg(
    at org.newdawn.slick.openal.SoundStore.getOgg(
    at org.newdawn.slick.Music.<init>(
    at org.newdawn.slick.Music.<init>(
    at com.tutorial.main.AudioPlayer.load(
    at com.tutorial.main.Game.<init>(
    at com.tutorial.main.Game.main(
    AL lib: alc_cleanup: 1 device not closed

    Anyone know what it is? I still haven't figured it out.

  3. Nishtha Tandon Avatar

    Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
    at java.lang.ClassLoader.loadLibrary(
    at java.lang.Runtime.loadLibrary0(
    at java.lang.System.loadLibrary(
    at org.lwjgl.Sys$
    i m getting this exception after creating the audioplayer class….i have added the required libraries as well but the linker is not able to find the lwjgl file..can anyone help?

  4. Noman Niazi Avatar

    .wav files for some reason does not work on macOS.

  5. xWolfx Avatar

    I dont have sounds..

  6. Ella Marie Avatar

    Idk why I get an error with the sounds πŸ™ πŸ™ pls help

  7. Adam Taylor Avatar

    +RealTutsGML this series you have done has been amazing. I can't speak for everyone, because it seems like a great many people have had issues.

    I'm an experienced coder in older languages such as VFP, C, and C++, and I know a little of C#, HTML5, CSS, Angular, and Javasript. I dabble in just about everything else with a name, like Python, Ruby, Rust, and the like. However, this is my first in-depth Java project, and I have had literally no issues.

    Your instructions have been pretty clear, and I think one of the main problems people are having is that they don't know Eclipse, or they aren't following what you are doing word for word.

    I'd like to congratulate you on such a job well done. I look forward to learning more about Java, and game development from you. Cheers!

  8. Porleark Tuy Avatar

    Everyone in here asking for help but don't mention the "Sperm Game" in his workspace

  9. devin blevins Avatar

    Where can I get the normal java libs from? I was wondering incase I wanted add sounds ect to a game I make.

  10. Christoffer Brandsborg Avatar

    Exception in thread "Thread-3" java.lang.NullPointerException
    at java.util.LinkedList.node(Unknown Source)
    at java.util.LinkedList.get(Unknown Source)
    at com.tutorial.main.Handler.render(
    at com.tutorial.main.Game.render(
    at Source)

    I get this error sometimes (not always), but havent figured out the problem yet..

  11. Stoufa Avatar

    +RealTutsGML I love your tutorials bro πŸ™‚
    I found a little annoying bug, sometimes when I click the play button, the game freezes with a NullPointerException and it is caused by trying to render a deleted menu particle, I solved it by adding a boolean to the class Handler ( clearing ), this variable takes true at the beginning of clearEnemies() and false at the end, then I added a test in render() if(clearing) return; I want to know your remarks about this solution, is there a better one ?
    Keep up the good work πŸ™‚ peace πŸ˜‰

  12. Ri Wo Avatar

    i get random errors with my Handler.render method when i is less than the size of the list at the start of the current iteration… how can i fix that (of course i can sorroud it with a try catch block but its not really a FIX, it is not affecting the game but…)

  13. Muhammed Faik Ekiciler Avatar

    Does anybody have a good button sound effect(downloadable)

  14. Christina Ma Avatar

    Is it possible to lower the volume? I can barely hear the clicking noise.

  15. Jordan9232 Avatar

    I can't figure out how to get this working in Netbeans. Guess I'll have to go get Eclipse

  16. Green Stone Boy Avatar

    Where can I find the sounds?

  17. James Birnie Avatar

    it dose not work i keep geting VLC Player(.ogg) when i get an ogg so how do i fix that beacuse its not working plz some one help. Have mercy internet….

  18. Eric Ho Avatar

    the lib downloadlink is not working for me, anyone can upload it again?

  19. therapy188 Avatar

    Wow, this was a little frustrating trying to set it up from the command line but I learned a lot. Great tutorial, thanks a bunch.

  20. Ozterkvlt Avatar

    i can get the music working, but not sound effects…does it matter where you call the sound effects? does it have to be from the main class?

  21. Ozterkvlt Avatar

    haha that Zyzz playlist

Leave a Reply

Your email address will not be published. Required fields are marked *