Java Game Development #18 – Main Game Mechanic Finished

In this video we finish up our main game mechanic so that it now turns into an actual game! 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.

I’m the founder of codingmadesimple.com that hosts high quality, fun to learn and straight to the point course material for game developers. I’d really…

ı dont know if you are still active but ı have a problem with my code. its a bit different than yours and ı have food instead of enemy and have no bullets just player. but my food does not detects collision. what can ı do?

Im very confused because im getting a NullPointerException where i put the if(Physics.Collide(..)){..}in the enemy tick method it crashes the game, but if I do the same thing in the bullet class it works

was a good run for me got to this episode and died out sorry :/ just idk what you did theres all of a sudden a gameobject, EntityA, EntityB, physics all these classes out of no were. i mean if anyone can help me then thanks

I don't know if you still read and answer these a year later, but if you could take your time to respond to this and my previous question at #11 that would be so awesome.In my game I don't want the bullets to just straight up pass through the enemies, but get destroyed with the enemy. I figured it was as easy as just putting the same method used to destroy the enemy to the bulled when it collided with ea, but with eb instead. However this just ended up being completely random and it would either destroy the enemy, or the bullet, never both. if the enemy was destroyed the bulled passed on through, if the bullet was destroyed the enemy stayed alive.

can't wait for next one! Ur tutorials are really helpful and make me understand a lot!! could u please update tutorials faster if u don't mind. CUZ I really wanna see this game done and start another kinda of game:)

Great tuts, i've had a issue with tutorial 6 where the player doesn't get rendered I get a exception in the render method, i checked every thing in the player class but couldn't find anything, would you mind taking a look at my main class? put this after pastebin /PLPLmUki Thanks!