@CrazyandCoding, I'm sure you've realized this since making these videos, but you are confusing "static" and "final" in these videos. Your appear to be creating a lot of constants, since convention is to make them in all caps, but you aren't actually making them constants with the final keyword. That's the reason you had the error in this video. I'm sure you've realized this error already, but it may be helpful to others. There are a lot of variables throughout the code that you wanted final.
When you create an object of a class, non-static variables are created for that object. Static variables exist only for the class. When you change a static variable's value, either through an object reference or through the class itself, you change it for all instances/objects of that class. A static final variable is a constant that is loaded into memory only once static and is accessible from any instance of that class or from the class itself.
Dear Java 2d Game Development Tutorial 8 - Finishing creating and loading level's! Bones-underground is a 2d mmorpg. It is absolutely free to play indefinately. We offer a great community, a place where you can become rich and famous, or just hang out with a few friends. We have hundreds of weapons and armors to choose from. You may want to get a pet, or maybe do a little fishing and heaps more game play on my profile and link
@EndohaGFX I haven't really gotten into any 3D game programming. I have poked around with JMonkeyEngine and I really like it. If I ever do try a 3D tutorial series it would be with that engine. But I haven't even finished this series yet and but I will soon.
Hey subscribe to my channel.. I am beginning development on some games my self. So I want to share how I am doing. Any input you can give me would be great as well. Cheers!!!
@CrazyandCoding, I'm sure you've realized this since making these videos, but you are confusing "static" and "final" in these videos. Your appear to be creating a lot of constants, since convention is to make them in all caps, but you aren't actually making them constants with the final keyword. That's the reason you had the error in this video. I'm sure you've realized this error already, but it may be helpful to others. There are a lot of variables throughout the code that you wanted final.
lpcustom28 16 hours ago
When you create an object of a class, non-static variables are created for that object. Static variables exist only for the class. When you change a static variable's value, either through an object reference or through the class itself, you change it for all instances/objects of that class. A static final variable is a constant that is loaded into memory only once static and is accessible from any instance of that class or from the class itself.
lpcustom28 15 hours ago
the sound at 07:28 should be implemented into the game!
ArtKosarev 1 week ago
hello ,,
i want to talk with you in private , please if you can ? send me a message
Regards
WooW188 2 weeks ago
Too bad that this is the last part... maybe there's still hope that someday you will continue :)
TheNimop 3 weeks ago
Guess he never figured out why it was loading 2 levels at once haha
lplegacy1 2 months ago
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 27, Size: 27 at java.util.ArrayList.RangeCheck(ArrayList.java:547) at java.util.ArrayList.get(ArrayList.java:322)
getting that error and i did exactly the same u did
AnguruGaming 3 months ago
@AnguruGaming Indexout of bounds usally means that your array is out of it's limits
Nikixos 1 month ago in playlist Slick 2D CrazyandCoding Tutorial
@AnguruGaming Size: 27 means that the last element is 26 and you tried to get element 27 witch isn't there
bbugarschi 1 month ago
Please finish! This is the third great java video tut I've followed along with that ends without a conclusion. I was really getting into the project!
zulufoxtrotalfa 4 months ago in playlist Slick 2D CrazyandCoding Tutorial
want new tutorials!!!!
stalkerXBO 5 months ago
Hi, when are you going to continue it?
thanks...
TheAngelbrothers 6 months ago 6
public static int levelNum = -1;
will fix the problem
TheNinthWorld 6 months ago
any sourcecode for this for study purposes? thanks
frostshadow5 6 months ago
How would i add the background for this??
TheCompboy 7 months ago
Hey man keep it up, I am currently waiting for 9 and 10.
zolamadolo 7 months ago
Comment removed
zolamadolo 7 months ago
This has been flagged as spam show
Dear Java 2d Game Development Tutorial 8 - Finishing creating and loading level's! Bones-underground is a 2d mmorpg. It is absolutely free to play indefinately. We offer a great community, a place where you can become rich and famous, or just hang out with a few friends. We have hundreds of weapons and armors to choose from. You may want to get a pet, or maybe do a little fishing and heaps more game play on my profile and link
boneug 7 months ago
Hey man, What are the odds that you could start a more 3d series?
EndohaGFX 8 months ago
@EndohaGFX I haven't really gotten into any 3D game programming. I have poked around with JMonkeyEngine and I really like it. If I ever do try a 3D tutorial series it would be with that engine. But I haven't even finished this series yet and but I will soon.
CrazyandCoding 8 months ago
Hey subscribe to my channel.. I am beginning development on some games my self. So I want to share how I am doing. Any input you can give me would be great as well. Cheers!!!
sarvajith1986 8 months ago