Creating A Tiled Map - #4 - Intermediate Java Game Programming Tutorials (TheJavaHub)

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

IMHO, it would do a world of good if the description of this video had a link to a list of the entire set--a link above and beyond the link to the user, which shows several, for lack of a better term, courses without much description on what the courses contain.

That said, thanks to TheJavaHub for making this and other resource available.

cpuwrite
Автор

10 000 view! OMG this is awesome :D Keep up the good work, and please start on again :D

IconDanixe
Автор

In loadArrays() wouldn't it be slightly more efficient to have else-ifs rather than multiple if statements? Unless I missed something, even after one of the if statements evaluates to true, it will still keep checking the remaining ones even though there should never be a number that evaluates to true for 2 of those if statements. If I were you, I would either change them to else-ifs or add a break/continue or whatever after the last line in the body of each if statement

malachipclover
Автор

Just a little FYI here. I'm running Ubuntu 13.04 32 bit with Eclipse and OpenJDK 7. I tried to run the code, nullpointer and a white window. I tried copy/pasting for the forum post, no nullpointer, but it would only render about once in 5 runs. After messing around and checking paths and stuff for a while, nothing worked. Then I commented out the line and now it works just fine every time.

malachipclover
Автор

i can't wait for next tutorial. ;)

MrUmfi
Автор

@TheJavaHub Never mind, I found it :D I didn't mke an image for air, because I figured it would be all white anyway. But obviously, the Images array for the air spots would still have null, as they haven't been initialized ;)

Wouter
Автор

I'm getting a nullpointer exception at the drawImage line (line 55 in World.java)... I'm supposed to have null as Image Observer, right?

Wouter
Автор

That happened to me as well. I discovered my problem. Under the "loadArrays" method, I had put incorrect numbers in the if statements. I put 120 instead of 125 and 220 instead of 225. Make sure you don't have the same problem. Hope it helps. :)

KingdomofSmileys
Автор

i have just a blank screen. i think i have all the same code. plz help!

benkelcher
Автор

Mine is a white screen and I get NullPointerException errors. hat did i do wrong?

nickpapasso
Автор

How the hell am I still getting a null pointer exception, years later

DuskAndDawn
Автор

Those if statements should be "else if"s to save evaluating them all when only one can be true. Short circuit logic. :)

StuartGilbert
Автор

I made another type of tile that transitions from dirt to stone.

MetaphoricTunaFish
Автор

6:28 I wish we really could "set the world equal to a new world." #activism

JediMediator
Автор

mine just shows up as a white screen

PaintballDerek
Автор

I did this for about 2 hours and it only rendered the top part of the sky

SpyingPenguin
Автор

Please ignore my comment in the first video, I'll register immediately.

fitmadefun
Автор

make sure to call loadArrays in constructor... lol

blakemartin
Автор

Sorry guys, this code that TheJavaHub presents to you ... It's quite bad ...

Thumbs down, man, Thumbs down.

TheSnarf