Java Programming: Let's Build a Game #1


Source Code and Courses ►

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-

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

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


Xem thêm bài viết khác:


  1. Sir, when I write this piece of code from this tutorial, I face only white screen the onw that came last time you wrote the code before the loop.
    private void render() {

    BufferStrategy bs = this.getBufferStrategy();






    Graphics g = bs.getDrawGraphics();


    Everything I tried but I am only getting a white screen after running with all your methods given in this video. There is no green background appearance after that color change of the rectangle. Also, no flash of black and white is appearing. Please help sir!

  2. My head actually hurt lol but this is good this mean that i am learning, it it kinda head throbbing but i think i get this. Thank you for the video i appreciate this

  3. I can't manage to let it open the window the first time(11:00), I always get this error:
    Error: Could not find or load main class
    Caused by: java.lang.ClassNotFoundException:
    I work on IntelliJ

    Can someone help me please!!:)

  4. While using a 6 year old tutorial might be suboptimal the pace and way of explaining really
    appeals to me. One problem i encountered is the moment I start the game my PC
    gets lagged into oblivion, while the in game fps still shows 4k+ the system basically
    freezes for 5-10 seconds at a time so I’m unable to close the app or basically
    do anything. I’m not doing this on a historic potato PC and even if it’s just a
    black screen. Does anyone have an idea what the cause may be? Something in the
    code or maybe more on the hardware side of things?

  5. Why don't I get the fps count in my console??? Healp it's 1 am and I wanna kill myself ahdadfkashdfgasdfjkahsdkjfhasdjkfhe

  6. hi!!! i like this tutorial so much but i have a problem, when i run the program my window is not flashing black or becomes green but a lot of FPS in console appear(
    from comments i understand that not only i have faced with this problem
    I have already tried to comment show() in run method, change running=true, but it still doesn`t work(
    as i understand it is something wrong with FPS my computer settings or what??? (in my case they are around 810, but when i close app is is still working and FPS are 1000000-3000000 and i really do not understand what is going on(( please, if sb will handle with it, i will be so glad for sharing a solution)
    if i manage to do it i will leave it as a comment here)
    or if you are sure that it can`t be resolved, please said it to me, too)

  7. Its weird when I constructed the object and ran it the window width and height where the smallest they can be.
    I am not sure why it did not open up as the same size as you.
    Can it be that I am running on jdk 8?

  8. I got a Java project rn and I hardly understand that Lang
    bout some ducks swimming randomly in a pool eating lilies….This video is helping me so much

  9. Sorry if this was already answered in the comments, I searched but could not find it. Is there a reason that needs to extend Canvas? I could not figure out why this would need to be the case. I took the extends off of Window and it still ran fine, but maybe I am missing something?

  10. Pro tip for everyone. My import java.awt.Canvas; didn't work in the beginning. I was super confused. The solution I found was to go into the, and type
    requires java.sql;
    requires java.desktop;

    I have no idea what these do, but it fixes the problem.

  11. First, it is definitely on the fast side. It isn't the worst thing cause I never have to wait for you. Two, you say this is the boring stuff, but as someone who only knows up to making objects and inheritance, someone who has never touched anything relating to awt or gui, the first time that rectangular canvas popped up in the middle of my screen, I was beyond excited. Everything about this has been super fun to complete, even if I am just rewriting what I see on a screen.

  12. please put an epilepsy warning. there is… none. at all. and i'd say that this is more than fairly likely to send an epileptic person into a seizure.

  13. I watched this video once, back before I started learning java. I didn't understand a thing xD now that I've got some of the fundamentals down, it's starting to make more sense. Looking forward to watching this again once I'm a java master and picking it apart! Not every video inspires me to learn a new language, so kudos to you, RealTutsGML!

  14. hey, so I really like your tutorials but please help me with these:
    1. when I copied your code the screen didn't start flashing. I thought it wasn't such a big deal because the background worked.
    2. now for some reason the screen sometimes does render what I tell it to render and sometimes it's just a white screen. I'm not even kidding, it's random. I press run, white screen. I close that window and press run, white screen. I close that window and press run, it actually renders what I want it to render, and then when I run it again it's a white screen. Please please please help me with this I don't understand what's going on.

  15. After running the code, my window does not display any graphics. No color changes, no flashing screen, nothing. What did I do wrong?


Please enter your comment!
Please enter your name here