Java Game Programming Wizard Top Down Shooter Part 8

[ad_1]
View the full course here –

If you have any questions or errors in your project feel free to comment and let me know! I will try to answer everybodys questions.

Support my Patreon –

Visit CodingMadeSimple for more exclusive tutorials and get the help you need to succeed as your very own indie game developer!

Follow me on twitter for exclusive content and interaction with me!

Follow me on Google+ to keep updated with all of my tutorials


Posted

in

by

Tags:

Comments

17 responses to “Java Game Programming Wizard Top Down Shooter Part 8”

  1. RealTutsGML Avatar

    Thanks for watching! I hope you're learning!

  2. Anu Wicky Avatar

    The Collision Detection for the Bullet doesn't work :'(

  3. Jason Blake Avatar

    Have an issue when I add the bullet collision code the game freezes and I get this error :
    Exception in thread "Thread-2" java.lang.NullPointerException
    at Bullet.tick(Bullet.java:23)
    at Handler.tick(Handler.java:13)
    at Game.tick(Game.java:42)
    at Game.run(Game.java:109)
    at java.lang.Thread.run(Thread.java:748)

  4. Joseph Zins Avatar

    What happened to the bullet at 8:57? Why did the direction appear to change?

  5. Java Programming Avatar

    I made this game and I don't know how to automatically make collision for each block created instead of having to hard code rectangles for each single block. Can anyone help?

  6. Alex Sere Avatar

    A question, when setting the Velocity of the bullet, wouldn't it be better to:
    Distance x: dx = mx- x
    Distance y: dy = my – y
    Distance: d = (x*x+y*y)^(0.5) [Pythagoras]
    VelX = 10 * dx/d
    VelY = 10 * dy/d
    [Basically trig]
    This way the bullet will always have a speed of ten [or you can choose any other arbitrary number]
    While with your method the speed is extremely inconsistent.
    Please consider it. I think it will be better.

    LOVE THE VIDEO AND SERIES BTW

  7. Cedric Sullivan Avatar

    Hey RealTutsGml Cedric Sullivan here I would like to know of a way to make your player rotate according to the mouse position. If you know of a way can you please inform me of it. Thank You in advance! Peace(#_#)

  8. Bowed Path Avatar

    have you ever used blender or unity?

  9. Jorge Ramos Avatar

    So how is everyone keeping up with learning while the next video is up? looking for sources

  10. ImDaveead Avatar

    Good tutorial. Im following along with it but doing some extra stuff with packages and stuff. I noticed the bullet speed is not consistant when doing

    velX = (mX – x) / 10;

    The bullet speed is faster if you click farther away from the player.
    I am doing this for the speed to be consistant no matter where you click.

    int dist = (int) Math.hypot((mX – x), (mY – y));
    dist/=SPEED; //speed is a constant I set
    velX = (mX – x) / dist;
    velY = (mY – y) / dist;

  11. Robèrt vHeer Avatar

    yo realtutsGML, Im a little noob programmar but i dont get response on your old platformer vids so, my question is how to make a view follow 2 players? Im trying to make a replica of mario, but then for 2 players (with a Luigi).

  12. BROK3N1MAGE Avatar

    So I have been using a few of these tutorials to make a 2d platform game of mine.

    I built the game off the platform tutorial, then that ended so I had to improvise.  Seeing as how I've already coded most of my game with this coding structure, I thought I'd look at a few of these other tuts to help me out.

    the let's build a game tutorial was a tremendous help in allot of areas, like sound, and hud display, and enemy movement. However, when we got into states I ran into a road block.

    Zack, I'm assuming in your wave game, the reason why you can switch from the menu state to the game state is because you call the objects in game from the menu state and all your code in is your game class.

    However, How my code is set up is all my objects and levels are in the handler, like in your platform game, so when in the menu state, I'm not sure that it can find the path to load my levels because when I click 'play' on my menu I get a null pointer. 

    If I manually change my state to game state in my game class, the game runs fine, so I'm not sure what's going on. I'm thinking it might be placement of some code, but then again I might need to add some extra methods to get the state to recognize my level loader on my handler class.

    Trying to implement a shop and pause feature in game didn't work either, I'm guessing because when I call game.gameState = STATE.Game outside of my game class the program doesn't know how to get there.

    If anyone can help in any way possible that would be wonderful.

    I love these tutorials and what you are doing for new developers. You are a big help.  Thank you.

  13. Charanor Avatar

    You shouldn't remove the @Override! It really helps you prevent simple problems and helps the compiler warn you that something is wrong.

  14. guigrillo101 Avatar

    Hi zack, how can i publish a java game on steam?

  15. The Coding Machine Avatar

    hey Zack, just wanted to ask if you will ever do a tutorial series on libgdx

  16. LucasRAB Avatar

    I understand people like using java etc, but when making a game like this it would be so much easier in GMS. This is the kind of stuff GMS is made for. But thats just my opinion i only use GMS so im kinda one sided :p

  17. Suvé Sadique Avatar

    Thank you so much for uploading. great video!

Leave a Reply

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