Java Game Development #19 – Starting Menu System

Complete Java Game Development Course now available at my website

In this video we start our menu system for 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.

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!

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






29 responses to “Java Game Development #19 – Starting Menu System”

  1. Daniel xu Avatar

    But you are creating new fonts every tick in the render method, maybe the fonts should be created in the constructor?

  2. JustJayson ™ Avatar

    what if i want a picture as a button?

  3. Rick Twohy Avatar

    Is there a git repo for this project?

  4. jio santos Avatar

    When I put the rectangle thingy on the menu, error occurs. It says "Cannot find symbol. What am I missing?

  5. WitX916 Avatar

    so quick question, should i not worry about the menu first, and then start the coding on my game? I figured, since the menu would be the first thing a player would see, that should be the first thing i create? Also, it SEEMS pretty easy to create a simple menu.

  6. In-N-Out Avatar

    Is the full source code available anywhere?

  7. Lt Lobster Avatar

    Why does it need to be graphics 2d? Why can't it just be graphics?

  8. ChilledCanadian Avatar

    Exception in thread "Display" java.lang.NullPointerException
        at net.Name.Main.render(
        at Source)

    Line 99 is menu.render(g); inside the        
    if(State == STATE.MENU) {

    and Line 69 is render(); inside the run Method.

  9. Nathan Beeby Avatar

    My contentpane says I need to surround it with a try catch and it becomes a blank screen. Is there any way to fix this?

  10. vino Avatar

    why I get this error java.lang.CharSequence cannot be resolved.

  11. Epicnerd73 Avatar

    Why do you add 120 to the width variable?
    new Rectangle(Game.WIDTH / 2 + 120, 150, 100, 50);
    what does adding 120 do to it?

  12. Epicnerd73 Avatar

    Why does my text not appear in the centre? I haven't been following this tutorial series but a different one but wanted to implement a menu into my game.
    What is the WIDTH variable set to?

  13. Hunter Copeland Avatar

    Can you by any chance show us or link us a video showing us how to make use of the help button? It would be greatly apreciated! Thnx

  14. chris jon Avatar

    Hey man, how would you have a menu and have animated background, not scrolling right to left etc. Just an animated background? Is there any tutorials on it?

  15. Shariq Dharani Avatar

    how would you add music?

  16. harmony Avatar

    Why are you not using JButtons?

  17. Leonid Sobolev Avatar

    waited so long for the menu system. Nice!

  18. Momo C Avatar

    That's cool. I like those videos. they gave me more idea on my game. Thanks a lot.

  19. Wagnva Avatar

    awesome =) please finish this game, i would be so happy 😀 Im starting to develop my own game, so this videos are very helpful , thanks for them

  20. TheLiveEleven Avatar

    Haha exactly 40 likes! gr8 job man!

  21. Saugat Lama Avatar

    Hey man, Thanks for all your help! I appreciate it. It would be awesome if you would complete the series 🙂

  22. Mark O'grady Avatar

    Great tutorials, can't wait for the next installment. Share the knowledge 🙂

  23. guigrillo101 Avatar

    Please more tutorials!!

  24. guigrillo101 Avatar

    AWESOME! Im learning so much with you dude..

  25. vladim0105 Avatar

    I find it easier to make the ENUM its own class, more organisation and cleaner code 🙂


    To make the ENUM its own class: instead of choosing New>Class, choose New>Enum

  26. MattThePotato Avatar

    my buttons are sexier…psst people, if u dont want to wait for his mouse clicking tutorial, u can come watch my tutorials wink wink 😛

  27. obelix697 Avatar

    I am curious if there will be some rollover effect or just mouse click detection…looking forward to see another part

Leave a Reply

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