Java Game Development #19 – Starting Menu System

24
66



Make Video Games 2018 ►

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.

I’m the founder of codingmadesimple.com that hosts high quality, fun to learn and straight to the point course material for game developers. I’d really appreciate it if you’d check out my content.

Twitter ►
Google+ ►
Patreon ►

Have fun learning!

Nguồn: https://ecotown-phumy.com/

Xem thêm bài viết khác: https://ecotown-phumy.com/game/

24 COMMENTS

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

  2. 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.

  3. Exception in thread "Display" java.lang.NullPointerException
        at net.Name.Main.render(Main.java:99)
        at net.Name.Name.Main.run(Main.java:69)
        at java.lang.Thread.run(Unknown Source)

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

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

  4. 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?

  5. 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?

  6. 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?

  7. 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
     

  8. 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?

  9. 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

LEAVE A REPLY

Please enter your comment!
Please enter your name here