3D Game Programming - Episode 24 - Making Our Launcher Work

preview_player
Показать описание

Welcome to a series of videos where we will create a 3D game (probably a first person shooter) from scratch, using just the included libraries in Java 1.6. If you have any questions or problems, leave a comment or send me a message, or tweet at me.

In this tutorial:
How to create a Graphical User Interface (GUI)
How to create a Java application
How to add buttons

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

I like how things throughout this video series has been explained thoroughly and it's great how he didn't leave any I's undotted or t's uncrossed and explained things intricately whether we knew them or not; because yes he was right, some of us might not know  how some things work in Java; some might be unclear on certain attributes or might have forgot how some things work in the Java tool set. Yes, one can go to the New Boston's channel and the great Bucky explains how things work in Java on the surface (and does a great job); but the New Boston doesn't explain how what he teaches works specifically with 3D game programming. Methods and procedures vary from one programmer to the next and in game programming, functions have different roles and ways that they are written and executed. I've done a lot of 2D game programming and I never went through regular programming, but went straight into game programming head-on and specifically and learned what I learned by programming games only and going through tutorials like this one and through such way, I learned other types of programming too and varying methods too.   

Henry_GamesX
Автор

i actually watched these videos from episode 1 ...didn't know anything about java coding...now im getting on my way. i actually implemented a popup dialog on the buttons for the gui which is awesome :D

REAL_JKER
Автор

I learned how to add a custom image for the button so I am doing that. If you need to know how look up thenewboston and GUI episode 50's I think.

Chillers
Автор

If you want it to default 800 x 600 just change "public static int selection = 0;" to "public static int selection = 1" or if you want it 1024 x 768 change selection to equal 2.

Chamilism
Автор

I swear the suggestions get funnier every video in this series :D

TheViolinCalamity
Автор

A curly "bracket" is called a brace by many. Parenthesis are -> ( and )... Good on you ;)

OfficialWingzzz
Автор

Seemed to be a problem with the dispose and being connected to the launcher. Anything direct from the launcher (even nested methods in other classes) failed. In the end I used a boolean and a while loop to fix it.

JaredJeyaretnam
Автор

to people encountering a black screen: look in the Screen class and make sure you change Display.WIDTH and Display.HEIGHT to Display.width and Display.height (or Display.getGameWidth() and Display.getGameHeight())

moomoohk
Автор

your definition of protected is wrong, protected gives access to all classes that are linked through inheritance and are in the same package. There is also another access specifier "package" which only gives access to variables to classes in the same package.

MrJailbreakdude
Автор

I did this, and when I run the game, it doesn't render anything, and all I can see is a black screen when I hit play. It happens with all of the resolutions. Any idea why?

david-df
Автор

Actually I get an exception in thread 3. Great another bug that will take me hours to debug and all it will be is a misspelled word...

pancakesimone
Автор

Nevermind, just forgot to re name some variables :D

pancakesimone
Автор

When I click play, it gives me an ArrayOutOfBoundsException with this line of code:
test.pixels[i] = random.nextInt() * (random.nextInt(5) / 4);
And then:
for (int i = 0; i < display.getGameWidth() * display.getGameHeight(); i++) {
pixels[i] = 0;
}

pancakesimone
Автор

When he drinks it sounds like he's eating peanut butter and cereal...

SnoozersDog
Автор

Remember to change all width and height variables in the display class or you will get a black screen

GamingWithBobNone
Автор

When I try to change the resolutions, it just gives me a gray screen when I start the game

pancakesimone
Автор

I'm getting a weird bug where the game window refuses to accept focus and won't close. Anyone?

JaredJeyaretnam
Автор

Check in your render.java class that it says Display.width and Display.height, NOT Display.WIDTH and Display.HEIGHT. That was my problem :) (You could of course also fill in the getGameWidth() and getGameHeight() functions, but both options should fix the problem ;) )

ELA
Автор

@CartoonGaz you have to type it yourself

DONT BE LAZY D:<

Toxiclevideos
Автор

@Toxiclevideos Im not it was a joke, I was imitating allot of his viewers

CartoonGaz
join shbcf.ru