Java Game Development #6 - Player Class

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

In this video we start developing the player class. If you have any questions then be sure to leave a comment or contact me on twitter; realtutsgml. If you learned something then be sure to leave a like, comment, and favorite.

Have fun learning!

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

don't ever forget that! These are amazing and although hard to follow, (I'm a beginner a Java, I plan to watch all of these to see what I have to tackle, visit other tutorials to actually Learn and master it, and come back to execute it all) you do a great job understanding and this is just what I need! I hope you don't stop for a long time, especially on this series!

otanan
Автор

:D java tutorial out there. I took 1 java class, but this, in 7 episodes, is teaching me more than 3 classes could.

brainsballsengineering
Автор

THANK YOU SO MUCH!
I had no clue on how to create classes!
Then i watched this video!

baileydas
Автор

Well thanks, I will be posting some more very soon. I want this series to be around 80 parts and cover almost everything (maybe multiplayer as well)

RealTutsGML
Автор

Could you tell me what you deleted. I deleted one line where it drew the player, but can you tell me what else there was please.

Tokw
Автор

Hello, I am getting one error and I do not no why
So in the player class, where we call Spritesheet ss= new Spritesheet (game.getSpriteSheet()); 
it says the constructor Spritesheet(BufferedImage) is undefinied. someone please help

sahilsajoy
Автор

Why do we create double x and y and then cast them? Why they are not integers from the beginning?

Hristijan
Автор

I always get the following error. Can you help me with the fixes?
Exception in thread "Thread-2"
at
at
at
at
at java.lang.Thread.run(Unknown Source)

rwsn
Автор

I'm using netbeans (which is basically the same as eclipse) and I cannot run the .JAR file when I build the project.. nothing happens when I double click it. how can I fix this?

owaissyedquadri
Автор

I know I'm sorry man, I will try and get some out but I have been very focused on java lately so I haven't even opened up Game Maker in a while. I will try and get a new series out soon.

RealTutsGML
Автор

Look Idk where I have gone wrong and I am really frustrated because I want this done asap but apparently following the code is too hard for me. I made it up to the Keyboard Input then tested which my character does not move.

Derekstefan
Автор

I was getting an error in the render methods. In this case, I wasn't even getting a black screen, it was blank. Then I watched again and noticed that I forgot to put init() in run(). Just saying in case someone gets the same error.

jerfin
Автор

Got yourself another subscriber! These are really good! Make them more often! :D

BleepBloop
Автор

I have been working on a game for a while now and I need help. When starting up the game theres like a nine in ten chance of getting this random white screen or there's a chance that keyboard input won't work. Any ideas?

rje
Автор

I am learning a lot with you! I hope you make a lot of tutorials for i can keep learning..

guigrillo
Автор

why dont you create constructor as Player(floatx, float y, SpriteSheet ss) and so pass spriteSheet in Game class to instance of Player class

lapnghiepshopee
Автор

hey did you find out how to fix this cause im having so much trouble with the same errors??

danielmckinnell
Автор

You should really post all source in desc, it would help

thatoneminecrafter
Автор

i am having a problem when i run the game the screen isnt black...

superglonz
Автор

Why cant I just make the player code in the game class why do they have to be separate.

alexsuero