Java 2D OpenGL RPG Tutorial 8: Equipment and Cleanup

preview_player
Показать описание
In this video we do some code cleanup and begin the equipment system
Рекомендации по теме
Комментарии
Автор

Ty :) I've watched whole series and learned a lot. Just implemented quests in it :D (Almost all I know about java is from you)

jelk
Автор

please keep making these tutorials benny! don't be someone who doesn't finish their tutorial series :) great job

NewbsiPwn
Автор

Nice vid, Benny. Nice to see the cleanup. I would've done the singleton a bit differently, but that's a matter of style.
I usually make the constructor of the Game class private and add a static method getInstance() which lazily initiates the static instance variable. (or use a static code block, to initiate it)

Cheers!


tabularasa
Автор

hey, i find your tutorials really usefull and well explained. and whenever you are done with this series i would like to see an tutorial about Lightning and Shadows and/or Procedural Terrain Generation.

also i would love it if you could turn the fonts size about 2 points higher ^^

Purplehain
Автор

Ill watch it for sure :) ill try to combine your 2d engine and your 3d engine ;) keep em up!

karlomilicevic
Автор

Are we going to finish this game benny?? Hands down one of the better game tutorials on youtube, cant wait to finish this game. I enjoy learning and watching your videos, always very well put together. Do you have any idea when you will have more time to pick up on this series and really start on the good stuff and getting it running

anthonyb
Автор

There's reasons to not have your constructor private, so I like to make a public constructor AND initialize an instance in the constructor, so that anything that needs to get the instance can just call a static method.

MClightOfDay
Автор

Please finish this game :(
Best tutorial for me i found on internet, every 1 of them is either too simple or too extreme(thechernoproject)
Keep it up!
maybe try making 3d game? (not game, just moving in a room and render)

karlomilicevic
Автор

Little bug in EquippableItem.equip:
The item should be removed from the inventory before being effectively equipped, so
inventory.remove(item);
items[index]=item;
return true;

NevrilAioros
Автор

The problem with a non private constructor is that you do not have a true singleton. Since it can be called from anywhere. And since there can be only 1 Game object there's no reason to keep it public.

tabularasa
Автор

Good point. However, it is not important to say there is only one game, as long as the game engine knows there is only one REAL game. I have a space game that uses copies of the game to simulate physics.

MClightOfDay
Автор

What, no! Then I can't make infinite Swords Of Debugging :(

Ompetich