Java Game Programming Wizard Top Down Shooter Part 6

[ad_1]
View the full course instantly 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

14 responses to “Java Game Programming Wizard Top Down Shooter Part 6”

  1. RealTutsGML Avatar

    This was an awesome course to make! I had a lot fun. If you have any questions about the series contact me at coding4simple@gmail.com

  2. IceCoding Avatar

    alright, for some weird reason the image is not loading in the window. I still get the red screen, anyone know how to fix that ?

  3. BetaTraps Avatar

    How to u find those screen numbers for the fixed map portion?

  4. Saboor Hamedi Avatar

    thanks bro for this tutorial
    can you bro provide me a java gaming book
    saboorhamedi49@gmail.com
    thanks in advance

  5. TheManeOfLife Avatar

    can someone help me

    import java.awt.Color;
    import java.awt.Graphics;

    import javax.swing.JFrame;
    import javax.swing.JPanel;

    public class Tutorial extends JPanel{

    public void paintComponent(Graphics g) {
    super.paintComponent(g);
    g.setColor(Color.RED);
    g.drawRect(100, 10, 30, 40);
    }
    public static void main(String[] args) {
    Tutorial t = new Tutorial();

    JFrame jf = new JFrame();

    jf.setSize(600,400);
    jf.setVisible(true);
    jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
    }

    nothing will draw

  6. CalebTheObjective Avatar

    So my camera won't start on the player but latches on as soon as the player comes into the middle, then the camera won't go to -x,-y or +x,+y coordinates… it seems to favor the -x,+y corner of the game screen though.

    EDIT: Now the camera is totally independent of the players movement, I go right the camera goes up and to the left.

    SOLVED: y += ((object.getX() – y) – 563/2) * 0.05f;

    its supposed to be getY not getX ….jesus

  7. Jorge Ramos Avatar

    I'm sorry i got a little lost there. Why do we add 16 to the y's 563?

  8. TheBrohman Avatar

    Once again I have the same issue with the "handler.object.size();" thing as I did in the other "Let's build a game" series. I am not able to get the object list from any other class because it is not a public list (I do not have private on it in the Handler class). Why is this?

    It is abit annoying as me having the list as public is the only difference I have from your code, and I have errors (in the Let's build a game series) that you do not have.

    Hoping for reply soon! 🙂

  9. Hanimiii Avatar

    hey my problem is that my player is showned behind the map, when walk outside the map then i can see my player

  10. GrimfistGaming Avatar

    There is a huge problem with the code, and I don't know why it is working in your example, it should not work ever.Problem is that you call start(); in the Game ctor before loading the level; This means you already render the level while it is still being loaded, which means you get a ConcurrentModificationException. The solution to this is pretty simple, just move the call to start() to the bottom of the constructor, so basically load up everything before starting the game loop (which is actually very obvious).Edit: Now I know why it works in your example but not in my code, I used enhanced for-loop and not the iterator based for-loop.

  11. Bernard Beinhauer Avatar

    Hey.. My code seems to fit with yours.. I rewatches the videos.. There are no errors in my code, but my Player just refuses to move.. Everything works fine, but my player has never moved so far.. Do you have any idea where could the mistake be ?

  12. MisterBassBoost Avatar

    Great content. Keep it up!

Leave a Reply

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