Kenny Yip Coding
Kenny Yip Coding
  • Видео 147
  • Просмотров 3 273 462
Code Space Invaders in Java
Code space invaders game in java.
In this tutorial, you will learn how to code space invaders 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 move the ship and fire bullets, randomly generate space invader aliens and move them across the screen, detect collisions between the bullets and aliens, and add a running score. In addition, you will learn how to reset the game and randomly generate aliens of different colors every time a set of aliens have been cleared.
Code: github.com/ImKennyYip/space-invaders-java
Website: www.kennyyipcoding.com/
Java...
Просмотров: 748

Видео

Code Google Chrome Dinosaur Game in Java
Просмотров 1,4 тыс.Месяц назад
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...
Code Tic Tac Toe in Python
Просмотров 2,3 тыс.Месяц назад
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: ruclips.net/video/9o...
C++ Recursion with Vectors
Просмотров 3092 месяца назад
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++
Просмотров 1832 месяца назад
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
Просмотров 2422 месяца назад
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: ruclips.net/video/65PSQUdH5k0/видео.html Pass by Value vs Reference: ruclips.net/video/77XcoXwoK2c/видео.html Function Ove...
C++ Templates and Generics Functions
Просмотров 1972 месяца назад
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
Просмотров 3412 месяца назад
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
Просмотров 2172 месяца назад
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: ruclips.net/video/...
C++ Functions Pass by Value or Reference
Просмотров 1872 месяца назад
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
Просмотров 3482 месяца назад
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: ruclips.net/p/PLnKe36F30Y4ZDNIOZ51sX25pWKQ1pkpTE Install C with VS C...
Pointers to Pointers C++
Просмотров 2633 месяца назад
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
Просмотров 5133 месяца назад
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)
Просмотров 7523 месяца назад
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++
Просмотров 4213 месяца назад
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
Просмотров 3163 месяца назад
C Pointers and Arrays
C++ Null Pointers
Просмотров 3883 месяца назад
C Null Pointers
References in C++
Просмотров 3153 месяца назад
References in C
C++ Const Pointers vs Pointer To Const
Просмотров 4833 месяца назад
C Const Pointers vs Pointer To Const
Pointers in C++
Просмотров 1,1 тыс.3 месяца назад
Pointers in C
Tic Tac Toe Game in C++
Просмотров 6 тыс.3 месяца назад
Tic Tac Toe Game in C
Multidimensional Arrays in C++ (2D arrays)
Просмотров 3393 месяца назад
Multidimensional Arrays in C (2D arrays)
Rock Paper Scissors Game in C++
Просмотров 1,6 тыс.4 месяца назад
Rock Paper Scissors Game in C
C++ Switch Statement
Просмотров 4534 месяца назад
C Switch Statement
C++ Break and Continue Statements
Просмотров 3374 месяца назад
C Break and Continue Statements
Do While Loops in C++
Просмотров 3484 месяца назад
Do While Loops in C
While Loops in C++
Просмотров 3654 месяца назад
While Loops in C
For Each Loop in C++
Просмотров 6374 месяца назад
For Each Loop in C
Code Flappy Bird in Java
Просмотров 29 тыс.5 месяцев назад
Code Flappy Bird in Java
For Loops in C++
Просмотров 5825 месяцев назад
For Loops in C

Комментарии

  • @jacobdaniels3793
    @jacobdaniels3793 9 часов назад

    I can't get the gbd --version to work for the life of me

  • @Freedom15532
    @Freedom15532 11 часов назад

    Everytime I begin to run pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain. I get this error error: failed to init transaction (unable to lock database) error: could not lock database: Permission denied

    • @Freedom15532
      @Freedom15532 11 часов назад

      To fix this run MSYS2 administrator

  • @lizarose3095
    @lizarose3095 13 часов назад

    Thanks for the tutorial :-)

  • @eckartmuller151
    @eckartmuller151 14 часов назад

    perfect expression

  • @merajmahir9380
    @merajmahir9380 19 часов назад

    I could not find thew versions in command prompt what should I do

  • @mehachhajed5984
    @mehachhajed5984 День назад

    Thankyou

  • @AbdulMajeed-lr9sd
    @AbdulMajeed-lr9sd День назад

    waste of time

  • @Thxtnt
    @Thxtnt День назад

    Coming from using C#, trying to learn the basics of C++ for fun and since I'm an Unreal Engine developer who's only really used blueprints, and I'm going to need to learn C++ in order to rewrite some of the code without blueprints as they're extremely unoptimized (For some reason they compile into C++ IN runtime which effectively makes it interpreted C++ which is stupid)

  • @WolfyRealm
    @WolfyRealm День назад

    4:52 bro i cant click it

  • @WolfyRealm
    @WolfyRealm День назад

    it must write capital Y? Y/n msys2

  • @WolfyRealm
    @WolfyRealm День назад

    there is something error when installing msys2 command

  • @jamescut466
    @jamescut466 День назад

    i gotta do all this just to write hello world this is so stupid codeing is way over complicated

  • @Beens-hb7sy
    @Beens-hb7sy День назад

    There is a problem though this part u said to copy the (code/terminal stuff) line but I didn't see the line u were talking about 😢 5:30

  • @msl7qic
    @msl7qic День назад

    can you please if you still have it send it?? I'm not doing anything wrong but they still give me like 50+ errors:(!! I need it for schoolllllllll

    • @KennyYipCoding
      @KennyYipCoding День назад

      Code is in the GitHub link in the video description

    • @KennyYipCoding
      @KennyYipCoding День назад

      You should see what error the line starts at. Learning how to debug is a useful skill

    • @msl7qic
      @msl7qic День назад

      @@KennyYipCoding I did everything you said and tbh I didn't find any error in any of those lines

    • @msl7qic
      @msl7qic День назад

      @@KennyYipCoding but thank youu

  • @ccfeng-dfc
    @ccfeng-dfc 2 дня назад

    thanks!

  • @Mood-cy9my
    @Mood-cy9my 2 дня назад

    hi hope you're doing well package src; public class App { public static void main(String[] args){ BlackJack blackJack = new BlackJack(); } } when i run the program normaly i get an error <tempCodeRunnerFile.java:4: error: cannot find symbo> and when i try to debug it works fine when i add blackjack.startGame(); it gives me two decks if you can explain edit: a constractor runs automatically when intansiating a class

  • @StacyJaxen
    @StacyJaxen 2 дня назад

    thanks so much this was a good clean start

  • @StacyJaxen
    @StacyJaxen 2 дня назад

    is gcc better than MS C++?

  • @gandiganesh6216
    @gandiganesh6216 2 дня назад

    Thanks a lot, bro 🙏

  • @adrianfilimon2716
    @adrianfilimon2716 2 дня назад

    it works if I create files on desktop, but any other place and I receive an error. any ideas?

  • @user-wk9ln3hb9l
    @user-wk9ln3hb9l 2 дня назад

    hi there! after i click run code, this message pops up : launch: program 'C:\Users\mypc\OneDrive\Desktop\test.exe' does not exist

  • @dylanmuruppel4929
    @dylanmuruppel4929 3 дня назад

    why isnt my bloody cout statement being recognised?????????

    • @KennyYipCoding
      @KennyYipCoding 3 дня назад

      @@dylanmuruppel4929 what does the error say when you run the code?

  • @dylanmuruppel4929
    @dylanmuruppel4929 3 дня назад

    why isnt my bloody cout statement being recognised?????????

  • @softwareengineer141
    @softwareengineer141 3 дня назад

    Thank you so much! A try a lot of videos and always struggeles in running C and C++ code . Regards👏💯

  • @TaraZakii
    @TaraZakii 3 дня назад

    Hey bro, what's the difference between blue one and purple one?

  • @Nkobe_de_accomplish
    @Nkobe_de_accomplish 3 дня назад

    Why do you use size_t

    • @KennyYipCoding
      @KennyYipCoding 3 дня назад

      This was explained in my video on for loops. But basically that is the type that vector.size() returns. size_t (size_type) is an unsigned integer, meaning its 0 or postive. This let's you store more bits for numbers since you don't need to indicate negative numbers. You can't have a negative size so it wouldn't make sense to use an int, which can be negative.

  • @Yash-gangurde310
    @Yash-gangurde310 3 дня назад

    It is not a working mobile phone i have done coding as u said and i hosted them also but none of flappy bird , 2048, and candy crush work on mobile phone 😢

    • @KennyYipCoding
      @KennyYipCoding 3 дня назад

      well you have to understand why they don't work on mobile. It's just not in the code. You have to write the code to make something work. Theres no key being pressed on your phone, no space bar being pressed to make the flappy bird jump. There's no arrow keys being pressed to move the 2048 tiles. You would have to implement buttons on the web page to process these events. Also mobile web pages don't support drag and drop ui components well. There's probably a library or something out there that you can use to process drag drop events. In general, a laptop is not the same environment as a mobile phone, so a website would function differently. That's where mobile apps come in. If you want to make a game playable on the phone, it would have to be a mobile app, which is out of the scope of these tutorials. Nobody plays mobile games on a website, they play through applications. 🙂

    • @Yash-gangurde310
      @Yash-gangurde310 3 дня назад

      @@KennyYipCoding you are correct they working flawless on my laptop 💻 btw thanks for your playlist of JavaScript game development 🙏🏻

    • @Yash-gangurde310
      @Yash-gangurde310 3 дня назад

      Actually i hosted them free on the web so i just wanted to share with my friends to show them but i tried before and they are not working so i worried i will try to modify them for mobile phone 👍🏻

  • @Nkobe_de_accomplish
    @Nkobe_de_accomplish 3 дня назад

    Good 👍 job

  • @n.rmahor8820
    @n.rmahor8820 3 дня назад

    Its not compiling😭😭tried 4 times... "launch.json" is coming again and again

  • @user-kk2bi1tc5m
    @user-kk2bi1tc5m 3 дня назад

    Thank you very much

  • @silvermurrell5057
    @silvermurrell5057 3 дня назад

    Really well made video, super interesting!

  • @user-yv1bv1vo7d
    @user-yv1bv1vo7d 3 дня назад

    thanku sir

  • @russcan_tiger6390
    @russcan_tiger6390 3 дня назад

    Why would you introduce iterations using i and j when you haven't covered that in your lessons yet? You continue to throw in new coding concepts without introducing them and leave it to your beginner viewers to try and extrapolate and understand. It's been frustrating from the middle of your series and it continues to happen. I'm gritting my teeth trying to get through these videos.

    • @KennyYipCoding
      @KennyYipCoding 3 дня назад

      Sorry this course was supposed to be intermediate Python / Data Structures and Algorithms. So the first part (memory maps) was just review of basic Python and understand how things work, basically filling in the gaps.

    • @KennyYipCoding
      @KennyYipCoding 3 дня назад

      I have placed a pause on the series and thought about doing a Python series from the beginning, which I’ll do once I complete my c++ tutorial series

    • @russcan_tiger6390
      @russcan_tiger6390 21 час назад

      @@KennyYipCoding Memory maps were a great way to visually show what happens in Python. They were rudimentary concepts that were easy to understand and you made it seem like that was going to be the pace of the series. However, the videos keep increasing in complexity without much of a pattern. Although you explain the level of Python that one should have before starting the series (not even on RUclips though, but on your GitHub), that level of foundation should have been introduced by you through RUclips; through a beginner Python series (as you suggest in your comment below). As of right now, it just seems we arbitrarily chose a level of coding knowledge and went with it. All just suggestions and food for thought.

  • @grishmitaagrawal8496
    @grishmitaagrawal8496 4 дня назад

    Thankyou so muchhh

  • @amihay_elboher
    @amihay_elboher 4 дня назад

    If you don't succeed to run the code (like Kenny does at ~ 6:00,) and relaunching vscode / your computer doesn't help, here's what I did to manage the problem. I searched for "Developer Command Prompt for VS" in my computer (I use Windows, so I clicked on Start and typed that,) and then I clicked on the command prompt-like program I saw. I navigated to the folder where my code resides by "cd <absolute_path>" + Enter (you can get the absolute_path by entering vscode, rightclick on the C++ file -> Copy Path, and then you have the absolute path of the folder plus the file name, so erase the file name and that's it.) Then, I typed "code ." and vscode was opened again, so I closed the opened window of vscode from before. When I opened the C++ file, and maybe tried to run it, vscode asked me to install relevant extensions. For some reason, the extension Kenny mentions in the video wasn't installed. I installed it and it just worked exactly as Kenny explained. Good luck fellows (:

  • @ImHlkari
    @ImHlkari 4 дня назад

    Thanks kenny, this tutorial helped me out a lot

  • @gurusharan.721
    @gurusharan.721 4 дня назад

    Why "select language" is not showing on my vs code😮😮. I need help please

  • @vonmarlon4221
    @vonmarlon4221 4 дня назад

    Would it be possible to do a virtual pet game?

  • @pushprajpanth3849
    @pushprajpanth3849 5 дней назад

    this select language option is not showing in my text file, what can i do to get it back?

  • @user-me3hi9ns6p
    @user-me3hi9ns6p 5 дней назад

    for me instead of adding in Path under USER variables, I added it to Path under SYSTEM variables and it worked.

  • @stxrpen164
    @stxrpen164 5 дней назад

    I'm at 6:01 and having a problem.Whenever I press the run button, it says "launch: program 'C:\Users\MyName\Documents\VSCODE\cppTutorial.exe' does not exist" and it tells me to open launch.json. Edit: Wait nvm I figured out the problem! You were supposed to press the second option first, then the first option. (The second option compiles the code)

  • @jackal_sniper_scary
    @jackal_sniper_scary 5 дней назад

    I don't know but the project doesn't respond to mobile clicks

  • @pb-nk5pb
    @pb-nk5pb 6 дней назад

    Bro striped , wrapped candy and choco is not becoming after mixing 4 -5-6 candy please tell me solution

  • @xxbounceboi
    @xxbounceboi 6 дней назад

    it isnt working im not sure why as i followed the steps but rip

  • @robtai6225
    @robtai6225 6 дней назад

    love this!

  • @randommarble
    @randommarble 6 дней назад

    I finally installed it after so long but now i keep getting this pop up window saying "the prelaunchtask 'c/c++ g++.exe build active file' terminated with exit code -1" every time I try to run the code. Also I need to choose between C++ (Windows) and C++ (GDB/LLDB), apart from the debug configuration or something. How do I fix this?

  • @barcinnicrab9562
    @barcinnicrab9562 6 дней назад

    doesnt work ;/

  • @eyosiyas874
    @eyosiyas874 7 дней назад

    you do not host that code it is not website yet.

  • @zavqiddintojiboev5805
    @zavqiddintojiboev5805 7 дней назад

    great job!

  • @RETENYA
    @RETENYA 8 дней назад

    thank you