Kenny Yip Coding
Kenny Yip Coding
  • 146
  • 3 175 727
Code Google Chrome Dinosaur Game in Java
How to code google chrome dinosaur game in java. In this tutorial, you will learn to create the google chrome dinosaur game with the built-in java awt/swing graphics library.
Throughout the tutorial, you will learn how to create the game loop, create a jframe and jpanel, draw images on the jpanel, add click handlers to make the chrome dinosaur jump, randomly generate cactus and move them across the screen, detect collisions between the chrome dinosaur and each cactus, and add a running score.
Setup Java with Visual Studio Code:
ua-cam.com/video/BB0gZFpukJU/v-deo.html
Code: github.com/ImKennyYip/chrome-dinosaur-java
Website: www.kennyyipcoding.com/
Java Game Programming Projects Playlist:
ua-cam.com/play/PLnKe36F30Y4Y1XQOqNsL9Fgg_p6nYhcng.html
JavaScript Game Programming Projects Playlist:
ua-cam.com/play/PLnKe36F30Y4bLhA-st9sC4ZthyV7nsL2Q.html
Subscribe for more coding tutorials 😄!
Переглядів: 1 019

Відео

Code Tic Tac Toe in Python
Переглядів 1,6 тис.Місяць тому
python tic tac toe game. How to code a Tic Tac Toe game in Python for beginners! Learn how to create a game of Tic Tac Toe in Python using the tkinter graphics library. Throughout the tutorial, you will learn how to create a graphical user interface (GUI) to display the Tic Tac Toe game, and check win or tie conditions using a 2D array. Setup Python with Visual Studio Code: ua-cam.com/video/9o4...
C++ Recursion with Vectors
Переглядів 268Місяць тому
Recursion and Recursive Functions in C . Recursive function is a function that calls itself. In this video we will go over how to traverse through a vector in a recursive function. First we would need a base case which is usually when the index reaches out of bounds (index size). Then we need to create a recursive step which is the index. With each recursive call, we pass index 1, which increme...
Recursion in C++
Переглядів 1552 місяці тому
Recursion and Recursive Functions in C . Recursive function is a function that calls itself. Every recursive function needs a base case to determine when the recursion should end. With every recursive call, we pass in a new parameter that reaches towards the base case. This is called the recursive step. In this video, we will go over how to calculate the factorial of a number using iteration an...
Functions in C++ Practice Problems
Переглядів 2182 місяці тому
C Functions. In this video, we will review the concepts covered so far on C Functions. This includes functions, parameters, return values, pass by const reference, function overloading, and templates or generics. You will learn If you need to review these topics: Functions: ua-cam.com/video/65PSQUdH5k0/v-deo.html Pass by Value vs Reference: ua-cam.com/video/77XcoXwoK2c/v-deo.html Function Overl...
C++ Templates and Generics Functions
Переглядів 1802 місяці тому
Generics and Templates in C . In this video you will learn how to create templates so that your functions can work for any type, hence the term generic. Two examples where we would want to create a generic function would be if we were swapping two variables or iterating and printing out the values of a vector. In both cases, there is no need to specify a type so we can just use a template to cr...
C++ Const Reference
Переглядів 2962 місяці тому
Const Reference in C . In C , there is a term called const correctness which is the practice of adding const when not modifying values. In C , when we create temporary variables such as function parameters or the variable used for ranged base for loops, we create a copy of the value. This can be expensive for non primitive data types such as strings and vectors where we copy over every element ...
C++ Function Overloading
Переглядів 2062 місяці тому
Function Overloading in C . Function overloading, also known as polymorphic functions, allow us to create multiple functions of the same name but with different parameters. Hence the term polymorphic, which means many forms in greek. We can define functions with different number of parameters as well as different parameter types. If you need to review these topics: Functions: ua-cam.com/video/6...
C++ Functions Pass by Value or Reference
Переглядів 1642 місяці тому
C Pass by Value or Pass by Reference in functions? In this video we will look at several function examples where we would want to pass parameters by value or by reference. When we pass by value, we are making a copy of the value. Generally, we want to pass by value for primitive data types because it is more performant to just make that copy because of how references are implemented. For larger...
C++ Functions
Переглядів 3232 місяці тому
Functions in C . In this video, you will learn about function declarations, how to create and call function. You will also learn how about parameters, default parameters, and return types. Functions are very useful in programming because they allow us to define a reusable block of code for a specific task/workflow. C Playlist: ua-cam.com/play/PLnKe36F30Y4ZDNIOZ51sX25pWKQ1pkpTE.html Install C wi...
Pointers to Pointers C++
Переглядів 2282 місяці тому
C Pointers to Pointers. In this video you will learn about pointers to pointers in c , sometimes referred to as a double pointer. A pointer is a variable that holds a memory address. Because pointers are basically variables, they are also stored somewhere on the stack with a memory address location. Therefore we can create a pointer to a pointer. Using a pointer to a pointer, we can create 2D a...
C++ Dynamic Arrays vs Dynamically Allocated Arrays
Переглядів 4632 місяці тому
C Dynamic Arrays vs Dynamically Allocated Arrays. In this video, you will learn what the difference is between a dynamic array and a dynamically allocated array. A dynamically allocated array is simply an array created on the heap memory. A dynamic array however is an array that "resizes". The idea behind the resizing is simply creating another array on the heap with twice the capacity and copy...
C++ Dynamic Arrays (Dynamically Allocated Array)
Переглядів 5922 місяці тому
C Dynamically Allocated Array. More often referred to as a dynamic array, although this is incorrect since dynamic array refers to another concept, but we will discuss that in another video. In this video you will learn how to allocate an array on the heap. This is referred to as a dynamically allocated array, which defers from a statically allocated array on the stack. By creating an array on ...
Dynamic Memory Allocation in C++
Переглядів 3463 місяці тому
C Dynamic Memory Allocation. In this video you will learn the difference between static (stack memory) and dynamic (heap memory/free store). The stack memory is allocated at compile time, which is when your program is converted from c into machine code. At this time there are checks for syntax errors and how much stack memory is needed. Variables and function calls are stored on the stack memor...
C++ Pointers and Arrays
Переглядів 2773 місяці тому
C Pointers and Arrays, also known as Array Pointers. In this video, you will have a more in depth understanding of how an array works. Because an array is a contigious block of memory, we can use a pointer to point to an array's starting memory address. With a pointer, we can also modify the array using pointer arithmetic, which is how indexing works in an array. Basically, the syntax array[ind...
C++ Null Pointers
Переглядів 3563 місяці тому
C Null Pointers
References in C++
Переглядів 2833 місяці тому
References in C
C++ Const Pointers vs Pointer To Const
Переглядів 4453 місяці тому
C Const Pointers vs Pointer To Const
Pointers in C++
Переглядів 9713 місяці тому
Pointers in C
Tic Tac Toe Game in C++
Переглядів 6 тис.3 місяці тому
Tic Tac Toe Game in C
Multidimensional Arrays in C++ (2D arrays)
Переглядів 3083 місяці тому
Multidimensional Arrays in C (2D arrays)
Rock Paper Scissors Game in C++
Переглядів 1,5 тис.3 місяці тому
Rock Paper Scissors Game in C
C++ Switch Statement
Переглядів 4244 місяці тому
C Switch Statement
C++ Break and Continue Statements
Переглядів 3214 місяці тому
C Break and Continue Statements
Do While Loops in C++
Переглядів 3334 місяці тому
Do While Loops in C
While Loops in C++
Переглядів 3384 місяці тому
While Loops in C
For Each Loop in C++
Переглядів 5794 місяці тому
For Each Loop in C
Code Flappy Bird in Java
Переглядів 26 тис.4 місяці тому
Code Flappy Bird in Java
For Loops in C++
Переглядів 5364 місяці тому
For Loops in C
Why does index start at 0 in computer science?
Переглядів 3815 місяців тому
Why does index start at 0 in computer science?

КОМЕНТАРІ

  • @cyberbulb4760
    @cyberbulb4760 8 годин тому

    only took pulling out my journal and 30 minutes lol

  • @ChastenRamirez
    @ChastenRamirez 14 годин тому

    damn sir how did you memorize all the codes . you are so pro!

  • @nighthawkgaming1962
    @nighthawkgaming1962 20 годин тому

    what's the differance from the blue and purple versions?

  • @blockhead1899
    @blockhead1899 День тому

    thank you coding is a struggle when you cant do it

  • @fahad11247
    @fahad11247 День тому

    the simpilest and the easiest tutorial of running c++. Thanks alot

  • @anthonylopez6149
    @anthonylopez6149 2 дні тому

    for me i dont see that language option text show up at all

  • @Samuel_406
    @Samuel_406 2 дні тому

    4:50 i dont have an option to select language

    • @HolzmannVinny
      @HolzmannVinny День тому

      Me too my friend, I'm facing the same issue.

    • @Samuel_406
      @Samuel_406 День тому

      @@HolzmannVinny name the file with extention.cpp

    • @HolzmannVinny
      @HolzmannVinny День тому

      @@Samuel_406 thx my friend, and if you look at the bottom right you should see a label there "plain text". You can select all languages that you have

    • @Samuel_406
      @Samuel_406 День тому

      @@HolzmannVinny tnx bro it was realy helpful🤗

  • @NARAEVAL
    @NARAEVAL 2 дні тому

    This guy 0:50 wrote "pyton" instead of "python" of course it will say "there is not recognized"

    • @KennyYipCoding
      @KennyYipCoding 2 дні тому

      Think you misunderstood what I said. I said if you didn’t have Python installed, it would say not recognized. And I typed Pyton because I already had Python installed so it wouldn’t show the message if I typed Python…

  • @Ali-EditsGS
    @Ali-EditsGS 2 дні тому

    thanks bro i appriciate it

  • @swscoobysnacks4784
    @swscoobysnacks4784 3 дні тому

    Hello! I hope this gets seen, it's been about 2 years since this video was published.. Can you please make a tutorial of how you got the pages to link together? Time stamps of 4:45-4:52 as visual example of what I'm referencing. I've tried just standard linking between pages like I do in Visual Studio code, but it's failing and I'm not finding a youtube tutorial on how to do it nor in the resources on github pages. I'm looking to do exactly what you did to link your 2 pages, and I'm at a loss atm on a solution...

    • @KennyYipCoding
      @KennyYipCoding 3 дні тому

      What do you mean by link? You mean clicking a link from one page leading to another? That’s an html tag

  • @AnujSrivastava-hk5ov
    @AnujSrivastava-hk5ov 3 дні тому

    Great !!! Simple Clean & Fast

  • @AbelDawson-qz2zh
    @AbelDawson-qz2zh 3 дні тому

    Anytime I run the code it shows open launch.json..its not working...help

  • @robtai6225
    @robtai6225 4 дні тому

    can u do a tutorial on pacman?

  • @jackking9647
    @jackking9647 4 дні тому

    thanks alot

  • @user-pu6mj6zx8g
    @user-pu6mj6zx8g 5 днів тому

    much thanks

  • @KhadijaIbrahimRano
    @KhadijaIbrahimRano 5 днів тому

    Thank you so much, i really appreciate it.👍

  • @abeltesfa143
    @abeltesfa143 5 днів тому

    thank you projects really help

  • @dr.kermit3392
    @dr.kermit3392 5 днів тому

    it keeps showing errors that some packages/resources were unable to be installed whenever i download the packages in the MSYS2 terminal. Could u please tell me a way to fix it.

    • @AbelDawson-qz2zh
      @AbelDawson-qz2zh 4 дні тому

      Same problem here

    • @AbelDawson-qz2zh
      @AbelDawson-qz2zh 4 дні тому

      And I've noticed that the msys file he downloaded had a yellow icon...but the one he pasted the command in had a purple/pink icon...it's the same on my computer I don't know if they are different tho

  • @AbleslayerCollectives
    @AbleslayerCollectives 5 днів тому

    What’s a POKéMON

  • @themarketingbully1686
    @themarketingbully1686 6 днів тому

    Didn’t work for me.. it never pops up and says my site is ready and I followed it step by step.

  • @user-co6eg3ot3c
    @user-co6eg3ot3c 6 днів тому

    n! = n × (n−1) × (n−2) × …× 2 × 1 int main() { int factorial = 1; int n = 4; for (int i = n; i > 0; i--) { factorial *= i; } cout << n << "! factorial = " << factorial << endl; return 0; }

  • @MuteManiac
    @MuteManiac 6 днів тому

    Thank You Soo Much!

  • @zenovcozru6153
    @zenovcozru6153 6 днів тому

    can u help me how to fix "Launch: program path does not exist"?

  • @Haptic_Drift
    @Haptic_Drift 6 днів тому

    Hey Kenny, great vid. I had a lot of fun following along and experimenting. I've hit a wall...how do I implement a 'reset' button. I'm assuming I have to create a new JButton for it, yeah? I created one: "JButton reset; " but I don't really know where to go from here. Do I make a 'reset' function? If so, how do I do that, and where do I place it in the code? (Beginner here...apologies)

    • @KennyYipCoding
      @KennyYipCoding 6 днів тому

      Yes, similar to how I added a click handler to the each individual tile, which are buttons. You would need to create a function and tie it to the reset button.

    • @KennyYipCoding
      @KennyYipCoding 6 днів тому

      Resetting is quite simple, you just need to call the reset function you create and within the function, just reset the variables to the starting conditions. Example: set score = 0

    • @Haptic_Drift
      @Haptic_Drift 4 дні тому

      Thank you for the reply. I’ll give it a shot!

  • @exoboa6859
    @exoboa6859 6 днів тому

    Right, so when i go to create a new text file the options shown in the video do not show up on mine, i made sure i had everything properly installed, it shows i have it correctly installed. Can someone help me out? It's showing a blank screen, with no options to choose like a language

  • @iam-shreyasingh
    @iam-shreyasingh 6 днів тому

    trying since yest but finally able to run my prog with help of the clear instructions you have provided on this video , Thank You !

  • @SavvyPotato-pe8jj
    @SavvyPotato-pe8jj 7 днів тому

    My pipe images aren't popping up? could someone help?

  • @user-um1hi2qj4m
    @user-um1hi2qj4m 8 днів тому

    It says py is not a recognized as an internel or external command, operable program or batch file

  • @robtai6225
    @robtai6225 8 днів тому

    can you give a tutorial on platformer?

  • @husseinkizz
    @husseinkizz 8 днів тому

    Man have seen a lot on youtube, all game tutorials are over mathing, this is really different, well explained no complexity!

  • @Dexter101x
    @Dexter101x 8 днів тому

    Mine is show as if gdb isn't installed, how do I get the extension for vscode to run the file?

  • @KabirAhmed-mg6ly
    @KabirAhmed-mg6ly 8 днів тому

    My command prompt is showing that " gcc is not recognized as an internal or external command" ......I cant diagnose the problem...

  • @cofishachou
    @cofishachou 9 днів тому

    Life saver man <3 Love you

  • @GoSoloPlay
    @GoSoloPlay 9 днів тому

    You're the beest! Thank for the video

  • @1george
    @1george 9 днів тому

    If the problem persists, run this command in windows terminal: code --install-extension ms-python.python

  • @Ba-xm9bc
    @Ba-xm9bc 10 днів тому

    Hey Please help code html css JavaScript php MySQL sql?

  • @E-nook
    @E-nook 11 днів тому

    Thank you so much for this tutorial.

  • @PrathameshTusharPatil
    @PrathameshTusharPatil 11 днів тому

    hello sir when i started to run my java program ,it is taking time and showing some issue so what could be the problem ?? its always showing the following content : Initiating server activation Request to kill LSP server. Cannot kill: current process is None Launching Oracle Java SE Language Server with default system JDK and userdir

  • @EzhnoJiromoo
    @EzhnoJiromoo 11 днів тому

    Such an amazing Tutorial with great Explanation! Glad that Found this Channel, Please keep it up. Thanks a lot.

  • @StudyTimrest
    @StudyTimrest 11 днів тому

    bro thx so much

  • @PappuManasa-qq6ub
    @PappuManasa-qq6ub 11 днів тому

    you heped me alot...thankyou soo much💗

  • @leonelmessi3010
    @leonelmessi3010 11 днів тому

    pipes ArrayList is added with pipes.add(topPipe); So does it mean the it is added infinitely to the pipes ArrayList? If so, then pipes.size() is infinite? Sorry I don't have good knowledge about these memory management since I am new at programming

  • @maxameddacar7700
    @maxameddacar7700 11 днів тому

    thanks pro but he said to me you have an error

  • @peaceandlovenz
    @peaceandlovenz 11 днів тому

    My first game complete. Took me 4 days working on it after work every night. Thanks was fun

  • @skatla
    @skatla 12 днів тому

    can you tell me how i can make the game restart using space when its game over?

  • @kobysmith-mccallister4893
    @kobysmith-mccallister4893 12 днів тому

    The GOAT of java tutorials

  • @tuxat_
    @tuxat_ 13 днів тому

    thanks for explaining all the complicated parts! really helped me out a lot!

  • @rushskill3518
    @rushskill3518 13 днів тому

    you are actually a namespace user 🤓

  • @FedericoSantini-fw4kh
    @FedericoSantini-fw4kh 13 днів тому

    you are the number 1

  • @tokensgaming
    @tokensgaming 13 днів тому

    How can we generate a solution that works with the rules of SUDOKU?

    • @KennyYipCoding
      @KennyYipCoding 13 днів тому

      This would require complex algorithms, probably with backtracking. It is more time efficient to have the solution ready instead of solving it on spot. Also, you need to assume that the random puzzle you create is solvable in the first place.

    • @tokensgaming
      @tokensgaming 13 днів тому

      @@KennyYipCoding Hear me out.. I’m trying to generate a solution that is solvable, let’s call each 3x3 grid a box.. 📦 so first I shuffle an array of numbers from 1 to 9 and assign it to box 1, 5, and 9 each time a new shuffle, then the rest of the boxes I have to start comparing with the boxes that I generated (1,5,9)

    • @tokensgaming
      @tokensgaming 13 днів тому

      @@KennyYipCoding I also got a double array for rows and columns, that have the values 1 to 9, but after generating the first 3 boxes I will start deleting the numbers for each column and row , so we can work with the rest available numbers with the rest of the boxes