Java Game Development #18 – Main Game Mechanic Finished


Video is ready, Click Here to View ×

Make Video Games 2018 ►

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 that hosts high quality, fun to learn and straight to the point course material for game developers. I’d really…

33 thoughts on “Java Game Development #18 – Main Game Mechanic Finished

  1. ı 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?

  2. 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

  3. 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

  4. 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.

    Thanks dude. You teach better than my teachers!

  5. id like to thank you for your tutorials they really are helpfull…are u going to continue this game?how about a good menu system? 🙂

    keep it up u got ur self a sub XD

  6. That's great man, thank you very much for the tutorials, I'm sure I don't only speak for myself when I say that we appreciate your efforts.

    I'll be sending you a PM shortly with some feedback and a couple of questions, keep up the good work!

  7. I just got to episode #13 and almost had a heart attack when I saw that you weren't continuing the series, I'm so glad that you didn't and that you carried on.

    A question though, what is the likelihood of this series ending any time soon? Do you still plan on taking it all the way to 80-100 episodes?

  8. 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:)

  9. Also, a suggestion for the next tutorial would be directions, so the enemies could come from all sides and you can shoot in all directions and then it would flip the character to the new direction. =D

  10. 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!

Leave a Reply

Your email address will not be published. Required fields are marked *