Creating a Game in Java - Episode 4: Creating a Menu

preview_player
Показать описание
You can end the video after the font issue... You can tell I'm running on little sleep. I'm going to get some sleep so tomorrow's video is awesome, because we'll be starting on the game!

Рекомендации по теме
Комментарии
Автор

"welcome to episode 5, the last episode...." (pause) 

Mini heart attack
".... before we"

Rugit
Автор

I really appreciate this series. Thank you, Dustin Riley. I'm only one Java For Dummies book (lol) and one basic college Java course deep in Java programming and this tutorial series really clears up a lot of Java stuff too. As in, some cause-and-effect logic becomes clearer and just following along makes you realize that some of the unclear concepts have become closer to a routine.

Vestu
Автор

And you would be very correct. I suppose that's what I get for doing these so late at night. I always refer to a backslash as an escape character. Maybe that's why I got tripped up for a bit. Thanks for reminding me though! Glad you like the series!

DustinRileydotMe
Автор

Yes, realised that now, added nightlies and will have another go when i get 5 mins. cheers for the support i appreciate the work you put into making these btw :)

Jamiewalker
Автор

Right now the 3D API is being heavily worked on by the LibGDX team and should be finished up sometime soon. When it's done I'll gladly play around with it (although I admit I have yet to actually touch 3D with LibGDX at all). Thanks for sending your friend my way!

DustinRileydotMe
Автор

I love the passion behind what you're doing!
Keep it up mate :)

zakelfassi
Автор

I found out that there is a better class ClickListener which extends InputListener. A disadvantage with InputListener is if you click on the button then drag outside the button and release, it still runs the function touchUp (so it still goes to the next screen) even though we don't want it to. With ClickListener, all you need to do is implement the function called clicked. Its touchUp, touchDown and touchDrag is prewritten to always check where the mouse is.

Pratyush.Sarkar
Автор

Yeah. When I go back in a later episode and optimize, that's going to be one thing I do. Thanks!

DustinRileydotMe
Автор

Thanks man, I have watching your eps and I appreciate your time! Thanks once again.

swindle
Автор

Thanks. I that fixed my red text. PS:I am going to refer my friends who want to make a game to this video series. So far it is the only good series I have seen that makes sense. Also can you possibly make a video or two explaining the 3d functions of libgdx?

NoahHuppert
Автор

Me too. I can't wait for how it'll end up though.

DustinRileydotMe
Автор

Tasty, tasty beverage. I might have a few the next time a make a video to celebrate finals week being over... 3 exams to go, then I can move on to the next episode.

DustinRileydotMe
Автор

He uses his own Game class. His Game class implements Screen, which is necessary since we want to use game.setScreen(Screen screen).
He has a variable called game, but this is a variable of the type AngryMasons (which implements Game).

You probably imported the com.badlogic.gdx.Game class, which doesn't implement Screen. This is the class that AngryMasons extends as well.

Just import your own Game class instead of com.badlogic.gdx.Game. The error should be gone then.

dermetfan
Автор

Yeah.. I started over and used the 0.9.7 nightly. It works better. Most things are the same as in Rileys code. Now it works great for me.

Guitar
Автор

When you get to data/font.fnt you say "backslash", but it's actually a forward slash / . \ is a backslash. Sorry, just a pet peeve of mine. Otherwise, really enjoying the series! :-)

purvistv
Автор

That's the problem. The default only exports the red channel. You need to change it to export all channels with a value of 1. Hope that helps!

DustinRileydotMe
Автор

Just a thought. Why my button png-files are showing with suffix .9.png in windows explorer and yours are showing with just .9 suffix? I hope they'll still work as intended.

Vestu
Автор

I have got a problem with the risizing of the game window. The button itself resizes, but the position of the button isn't the middle of the screen anymore.
Do you have a hint for me, what I am doing wrong here?
Thanks in advance.

Tosek
Автор

Why so much in the resize(int width, int height) method? I have everything in show(), except these two lines:
stage.setViewport(width, height, true);
/ 2 - buttonStart.getWidth() / 2, Gdx.graphics.getHeight() / 2 - buttonStart.getHeight() / 2);

dermetfan
Автор

Google search something like "Dustin Riley libgdx youtube repository" and it will come up, the download page on there has zip files coinciding with different stages of the project.

nickkarasch
join shbcf.ru