Java Game Programming Episodes 6-10: Tiles & Levels

preview_player
Показать описание
Welcome to Game Programming! In this series we go over how to make a video game from scratch using the programming language Java (same as Minecraft)! In Episode 6 to Episode 10 we spend time creating our TileGrids and Tiles which will serve as the map or battlefield for the game we're making.

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

Does anyone else get a problem at 5:26, when I type glEnable(GL_TEXTURE_2D); I get a red line under (GL_TEXTURE_2D) Did I forget to import something?
I followed the video as best I could, please help, anyone.
Thanks

blueflamesable
Автор

At 18:43 my 2 textures don't go next to each other for some reason the grass goes on top of the dirt in the top left corner. I also have a little blue dot on the part which says when there's an error, which reads line breakpoint:boot [line 19] - boot(), next to the line Texture t2 = QuickLoad("Grass64"); I'm pretty sure I've followed everything correctly. Does anyone know why?

tommyford
Автор

14:00 After typing "InputStream" and the whole load a red underline appears! Help!

CrazyTaconew
Автор

@15:29 my DrawQuadTex has an error and the auto fix is create method "blah blah blah" and I have done command shift "o" MANY MANY MANY times. Plz help.

razzietazjake
Автор

glEnable, glTranslate and glTexCoord2f are not defined methods for me, what can i do to fix this?

AlexPiotrowski
Автор

Hello! Okay, I'm stuck at 3:42. The line that's giving me problems is "glOrtho(0, 1, WIDTH, HEIGHT, 0, 1, -1);
It says that the method glOrtho in the type GL11 is not applicable for the int arguments passed as HEIGHT and WIDTH. How do I fix that?

kathleendahl
Автор

hey, I need help, in my artist.java every glTranslatef and glTexCoord2f is an error. if it helps I'm at 11:30 in the video please help. thanks

nightcrabstudios
Автор

Hey IP, at around 24:30 when you make the tile and then run it and all, it does nothing except immediately crash for me. Any ideas? I can provide the code if needed but I'm fairly certain I copied it all 100%...

Thanks.

matt-dunn
Автор

Could someone please help mei have checked checked and rechecked my code over and over and for some reason after i set up the getters and setters when i run the program my tile flashes over and over super fast in the top left corner!

johnsmith
Автор

I wrote everything like you did on your video, but my grass is white.. Why is that happening? Can find how to fix it.. :(

thommathew
Автор

youre the best java teacher on all youtube! keep up the good work!

thecheckeredcube
Автор

I have a problem: When I typed "InputStream" it and everything associated with it did not work. Any help would be much appreciated. Thank you.

ayden
Автор

anyone with the "glEnable(GL_TEXTURE_2D);" not working just import "static org.lwjgl.opengl.GL11.*;"

yihao
Автор

Even though my quad is 64x64 and my texture is 64x64, the quad that is rendered to the screen does not look like a square... It is definitely much more rectangular. Do you know why?

cubeddesigns
Автор

I keep getting 'The local variable t may not have been initialized', do i have to initialize every new local variable?
also every time I load a texture it makes me surround it with a try/catch, any idea why this might be happening?

jamesisjamesable
Автор

I get this error
(Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Type mismatch: cannot convert from java.io.InputStream to

CaptainWardi
Автор

I added the glEnable(GL_TEXTURE_2D); and it gave me an error saying that it didn't recognize the variable GL_TEXTURE_2D. I then imported it and it is now saying that the method glEnable(int); is undefined for type Artist. Not sure how to fix this.

coreykuehl
Автор

Im getting an error where it tells me to change all the getters/setters to static... what should I do?

jackthake
Автор

It is good to note that you have to import every method from your Artist class to your Boot class.

dancross
Автор

when I run the code for the tile grid. Does anyone know the issue?
Please help

goldfan