Java Programming: Let’s Build a Game #1

/, Programming Video Tutorials, Uncategorized/Java Programming: Let’s Build a Game #1

Java Programming: Let’s Build a Game #1

FavoriteLoadingAdd to favorites

Complete Java Game Development Course now available on my website http://www.codingmadesimple.com/java-game-design-course/

Java468x60

Support my Patreon – https://www.patreon.com/realtutsgml

Part 1 of a series on the very basic fundamentals of Java game design. 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.

Have you ever wanted to create games? Have you ever gotten fed up with it being to difficult? Well now is the time to thank me and possibly subscribe because you have just found the channel for you! Game Maker Tutorials, Java Game Programming, Unity3D Tutorials, Batch, C++ and much much more! This is the channel for you, the one stop shop for an exploration of your hidden talent as a game developer. Unleash your potential and go wild with imagination when you finally figure out how to make any game you want!

Wave Playlist- https://www.youtube.com/playlist?list=PLWms45O3n–7TtyMACZqmEgT0nfkOrfLd

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
http://www.google.com/+RealTutsGML

Game Maker Studio: Programming
Game Maker Studio: Tutorial
Java Programming
Game Programming
Game Tutorial
Programming Tutorial

http://youtu.be/1gir2R7G9ws

49 Comments

  1. Evan V April 26, 2017 at 8:53 pm - Reply

    public void run()
    {
    long lastTime = System.nanoTime();
    double amountOfTicks = 60.0;
    double ns = 1000000000 / amountOfTicks;
    double delta = 0;
    long timer = System.currentTimeMillis();
    int frames = 0;
    while(running){
    long now = System.nanoTime();
    delta += (now – lastTime) / ns;
    lastTime = now;
    while(delta >= 1){
    tick();
    delta–;
    }
    if(running)
    render();
    frames++;

    if(System.currentTimeMillis() – timer > 1000){
    timer += 1000;
    System.out.println("FPS: " + frames);
    frames = 0;
    }
    }
    stop();
    }

  2. Lulușa Armand April 26, 2017 at 8:55 pm - Reply

    Starting to work on my first game using your tutorial:) i’m a beginner programmer, learning Java at work, but I want to create this game as a part time thing at home.

  3. alisalman hussein April 26, 2017 at 8:56 pm - Reply

    also i’d like to refer that i almost finished the first basic level in java so is this video too advanced for me ?do you recommend some videos for me to learn about game development or can i start from this video??please answer me!!

  4. Pilotdog April 26, 2017 at 8:57 pm - Reply

    Thank god this channel exists, my Computer Science class started using Java Eclipse. This could help me get better at programming

  5. Karan Rana April 26, 2017 at 8:57 pm - Reply

    in which software u made this game

  6. Adele Zoobi April 26, 2017 at 8:57 pm - Reply

    What software do u use?

  7. YUCKFOUPAYME April 26, 2017 at 9:01 pm - Reply

    I just started using Java, without previous experience in programming and it’s painful because i understand nothing. I’m trying hard to learn and all that but nothing it’s still sounds like arabic to me 😩

  8. BlazertronGames April 26, 2017 at 9:03 pm - Reply

    Damn your game looks similar to an undertale battle

  9. Austin Grant April 26, 2017 at 9:03 pm - Reply

    what eclipse and packages did u use for this video? so that i know what to download

  10. Matdrox April 26, 2017 at 9:05 pm - Reply

    I can’t figure out why my window still is white……. I followed all the steps, I literally wrote off the exact same thing he did, I can’t program.

  11. K Dancer April 26, 2017 at 9:08 pm - Reply

    How to run the game ??????? Any one plzzz

  12. CreepChomper April 26, 2017 at 9:09 pm - Reply

    public void run() {
    long lastTime = System.nanoTime();
    double amountOfTicks = 60.0;
    double ns = 1000000000 / amountOfTicks;
    double delta = 0;
    long timer = System.currentTimeMillis();
    int frames = 0;
    while(running) {
    long now = System.nanoTime();
    delta += (now – lastTime) / ns;
    lastTime = now;
    while(delta >= 1) {
    tick();
    delta–;
    }
    if(running)
    render();
    frames++;

    if(System.currentTimeMillis() – timer > 1000) {
    timer += 1000;
    System.out.println("FPS: " + frames);
    frames = 0;
    }
    }
    stop();
    }

  13. ExtremeGTA5Stunters ! April 26, 2017 at 9:09 pm - Reply

    what’s the program you use??

  14. TheComputerBuilderEst April 26, 2017 at 9:11 pm - Reply

    not working

  15. YYZ - League & CSGO April 26, 2017 at 9:12 pm - Reply

    guys i need help whn i made the buffer strategy it doesnt change color or anything and says buffer strategy cannot be resolved as a type

  16. keith nolan April 26, 2017 at 9:16 pm - Reply

    Hi guys. Just getting started with java, I was wondering if anyone could point me in the right direction for finding this eclipse software. Thanks !!

  17. Rhinoceros Gaming April 26, 2017 at 9:19 pm - Reply

    dude, I am a bit late but when I run it doesn’t show the fps

  18. TechEverything April 26, 2017 at 9:19 pm - Reply

    Can you do it in eclipse

  19. niko furry April 26, 2017 at 9:21 pm - Reply

    when i tried to run it it gave me this error:

    Exception in thread "main" java.lang.Error: Unresolved compilation problem:
    Game cannot be resolved to a type

    at tutorial.game.main(game.java:26)

  20. Tai Do April 26, 2017 at 9:23 pm - Reply

    If I do not know java at all, should i watch this course? Or should I go learn the fundamental first?

  21. Orry April 26, 2017 at 9:23 pm - Reply

    where i cab finde the app he use?

  22. JustinGaming47 April 26, 2017 at 9:24 pm - Reply

    Hi at 17:38 in the vid i ran my side and it didn’t blink. any i might have to change. i followed exactly in his steps

  23. XxHakeMoOoHxD April 26, 2017 at 9:24 pm - Reply

    what app name please download to my pc please

  24. tomek1234poland April 26, 2017 at 9:26 pm - Reply

    public void run()
    {
    long lastTime = Systm.nanoTime();
    double amountOfTicks = 60.0;
    double ns = 1000000000000 / amontOfTicks;
    double delta = 0;
    long timer = System.currentTimeMillis();
    int fraves = 0;
    while(running)
    {
    long now = System.nanoTime();
    dellta += (now – lastTime) / ns;
    lastTime = now;
    while(delta >=1)
    {
    tick();
    delta–;
    }
    if(running)
    render();
    frames++;

    if(System..currentTimeMillis() – timer > 1000)
    {
    timer = 1000;
    System.out.println("FPS: "+ frames);
    frames 0;
    }
    }
    stop;
    }

  25. Luca$sino April 26, 2017 at 9:29 pm - Reply

    Hey guys, how do i actually launch my game? Created a code for a game using literature and internet for help and it is error free, but i actually wanna play it. Sorry i am new to Java been studying it for only a week

  26. Kimson Nguyen April 26, 2017 at 9:30 pm - Reply

    What compiler is used?

  27. Rosen The Hacker April 26, 2017 at 9:30 pm - Reply

    what is program for java programming?

  28. Mito Soma April 26, 2017 at 9:31 pm - Reply

    What program are you using?

  29. John Collins April 26, 2017 at 9:31 pm - Reply

    I have identical text, but it won’t run. I am currently at the point of 11:07.
    Can someone please give me some reasons as to why it won’t work, and how to fix those reasons?

  30. MineKnight10398 April 26, 2017 at 9:33 pm - Reply

    which eclipse do you use in this?
    i use neon 2

  31. Live & Learn April 26, 2017 at 9:33 pm - Reply

    private void render () {
    BufferStrategy bs = this.getBufferStrategy() ; //this line come as an error . why ?
    if (bs == null) {

  32. Faraaz Khan April 26, 2017 at 9:34 pm - Reply

    what’s the background template called? lol

  33. Iustin Traista April 26, 2017 at 9:35 pm - Reply

    What program are you using?

  34. Karan Rana April 26, 2017 at 9:38 pm - Reply

    I want to make my own app,where I should make it with java language

  35. alisalman hussein April 26, 2017 at 9:38 pm - Reply

    how can i know the reserved methods in java??i mean should i memorize them or should just take a look at them ? and where can i take a look at them?thanks

  36. Shivam Jain April 26, 2017 at 9:38 pm - Reply

    what software does he use?

  37. samcrew April 26, 2017 at 9:40 pm - Reply

    Me at the beginning what is a canvas? what is a jframe?

  38. Wojciech Serafin April 26, 2017 at 9:41 pm - Reply

    Can someone explain me why when i change in run() method value of ns from: double ns = 1000000000/amountOfTicks; into double ns = (10^9)/amountOfTicks;, game stops working.

  39. EncryptionXYZ April 26, 2017 at 9:41 pm - Reply

    651 dollars per this video, this is the reason why I need to learn java lol

  40. Mista T April 26, 2017 at 9:41 pm - Reply

    Which software is this?

  41. Jadin Andrews April 26, 2017 at 9:41 pm - Reply

    4:11 that’s what she said

  42. The Greatest Musician April 26, 2017 at 9:42 pm - Reply

    what app did you use? pls… for javascript…pls

  43. Arming Hacking April 26, 2017 at 9:42 pm - Reply

    WHAT PROGRAM ARE U USING!!!!!!!11!11!!1!1!1!1!!!!!!!???????????????????

  44. TheGamerKnight April 26, 2017 at 9:45 pm - Reply

    If this video is even still relevant, I’m not getting the flickering black background which I think means that my render function isn’t running. I’ve type our all my code the way it should work but it’s now. any help would be appreciated.

  45. DjVolumeUp200 April 26, 2017 at 9:46 pm - Reply

    I get an error where Eclipse couldn’t find my main class,how to fix that?

  46. KusKusPL April 26, 2017 at 9:47 pm - Reply

    How do you make Eclipse dark?

  47. ★SkillZ★⑲ April 26, 2017 at 9:48 pm - Reply

    25 Million FPS
    JESUS CHRIST

  48. Alex To go April 26, 2017 at 9:50 pm - Reply

    so what does he do for a living? obviously code. Is he independent or whay

  49. yoop April 26, 2017 at 9:51 pm - Reply

    Attention new viewers! Before you try this, PLEASE learn the basics of java, please. I made the mistake of not doing so and I regret it. I recommend "The New Boston" as a good place to start.

Leave A Comment

*