15 49.0138 8.38624 1 0 4000 1 https://pubvision-network.com 300 true 0
theme-sticky-logo-alt

Java Game Development #10 – Shooting Bullets!

24 Comments


Make Video Games 2018 ►

In this video we learn how to add bullets into our game that the player can shoot. 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.

Link to the beginning video ►

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 appreciate it if you’d check out my content.

Twitter ►
Google+ ►
Patreon ►

Have fun learning!

Nguồn: https://pubvision-network.com/

Xem thêm bài viết khác: https://pubvision-network.com/game/

Previous
Next

24 Comments

  • July 9, 2020 at 3:16 pm
    R.O.

    Nice man!
    I learnt a lot from your videos:)

    Reply
  • July 9, 2020 at 3:16 pm
    Rohan Kar

    Thanks man. I actually got stuck in my game as I could make my player throw only one knife at a time. The idea of the linked list is super helpful. Very precise and effective explanation.

    Reply
  • July 9, 2020 at 3:16 pm
    Lesley Chingwena

    you move between classes too fast

    Reply
  • July 9, 2020 at 3:16 pm
    infernoblaze47

    that moment when bullets just dont work

    Reply
  • July 9, 2020 at 3:16 pm
    Iga

    Hi there, what program to code are you using? drjava fucks me up lol

    Reply
  • July 9, 2020 at 3:16 pm
    Sparky Steve

    i know this may be a dumb question so is the getX and get Y for the space key command were basically referencing the x and y of the ship and drawing the bullet there and then the tick is what makes it move till its destroyed?

    Reply
  • July 9, 2020 at 3:16 pm
    Hex

    2019 and the code still works well.

    Reply
  • July 9, 2020 at 3:16 pm
    Obi

    this helped me a lot, thanks

    Reply
  • July 9, 2020 at 3:16 pm
    Rathod Jaisingh

    which book wilp be good fir game development

    Reply
  • July 9, 2020 at 3:16 pm
    Darcy Feuz

    How would I make my enemy shoot a bullet like the player. I want to make it shoot on a timer (1.5 seconds maybe).

    Reply
  • July 9, 2020 at 3:16 pm
    D Smith

    What's your favorite ice cream?

    Reply
  • July 9, 2020 at 3:16 pm
    Jay Bartgis

    How do you make it shoot fully automatic

    Reply
  • July 9, 2020 at 3:16 pm
    niteskyrider

    my space ship is moving really fast how do you slow it down?

    Reply
  • July 9, 2020 at 3:16 pm
    Shikhar Mainalee

    So you say you are going to reply to the comments?

    JUST LOOK AT THE NUMBER OF COMMENTS THAT YOU DIDN'T REPLY TO AND I AM 99.9999999999999999% SURE THAT YOU WON'T REPLY TO THIS ONE EITHER!!!!!!!!!!! AND A LOT OF THE UNREPLIED ARE QUESTIONS TOO!!!!!!!!!!!!!!

    Reply
  • July 9, 2020 at 3:16 pm
    fawad jamil

    plzzzz…… up the sprite sheet on your website, mine doest show the space ship…pllllllzllllzllzlzlzlzlzlzlz

    Reply
  • July 9, 2020 at 3:16 pm
    Starlyn Urena Ventura

    is shooting nut not from the plane but from another part of my applet, I ave an Sprite class and an Animation class do i need sets and gets for my sprite class if i do how would i do that so i can called in my main game where in keypresses i have this: if(xPressed)
    {
    bullet b = new bullet(getX(), getY(), this);
    c.addBullet(b);
    b.setVelY(5);
    }

    Reply
  • July 9, 2020 at 3:16 pm
    Starlyn Urena Ventura

    does your sprite sheet class has a grab image method ?

    Reply
  • July 9, 2020 at 3:16 pm
    RichyK1

    Awesome series, gj

    Reply
  • July 9, 2020 at 3:16 pm
    Gameriffy

    can i have the source code cuz it dosen't want to work for me

    Reply
  • July 9, 2020 at 3:16 pm
    ContainsCaffeine

    is there a way to control the number of bullets on the screen??

    Reply
  • July 9, 2020 at 3:16 pm
    LegendOfZeldaOOT

    can I shoot more than 1 bullet?

    Reply
  • July 9, 2020 at 3:16 pm
    LegendOfZeldaOOT

    Is there a way to shoot multiple bullets out at one time?

    Reply
  • July 9, 2020 at 3:16 pm
    hemang vyas

    getting error in controller section b.get(i)
    here is code:http://pastie.org/10835688 and error:http://pastie.org/10835690

    Reply
  • July 9, 2020 at 3:16 pm
    BetaTraps

    Thanks man this helped a lot. Teacher making me do this in VB which sucks i prefer java but this video helped me solve my problems. Thanks so much.

    Reply

Leave a Reply