![Kenny Yip Coding](/img/default-banner.jpg)
- Видео 147
- Просмотров 3 273 462
Kenny Yip Coding
США
Добавлен 6 фев 2018
Hello!
On this channel, I showcase my portfolio projects and create coding tutorials. I am currently working on a javascript tutorial series where I focus on game programming with html, css, and javascript. My goal is to provide HD quality coding tutorials with detailed explanations within the shortest amount of time possible. If that is something that interests you, please consider subscribing and sharing this channel with friends and family! Stay tuned for my next video!
www.kennyyipcoding.com/
On this channel, I showcase my portfolio projects and create coding tutorials. I am currently working on a javascript tutorial series where I focus on game programming with html, css, and javascript. My goal is to provide HD quality coding tutorials with detailed explanations within the shortest amount of time possible. If that is something that interests you, please consider subscribing and sharing this channel with friends and family! Stay tuned for my next video!
www.kennyyipcoding.com/
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...
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++ Const Pointers vs Pointer To Const
Просмотров 4833 месяца назад
C Const Pointers vs Pointer To Const
Multidimensional Arrays in C++ (2D arrays)
Просмотров 3393 месяца назад
Multidimensional Arrays in C (2D arrays)
I can't get the gbd --version to work for the life of me
It also won't let me select a language
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
To fix this run MSYS2 administrator
Thanks for the tutorial :-)
perfect expression
I could not find thew versions in command prompt what should I do
Thankyou
waste of time
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)
4:52 bro i cant click it
it must write capital Y? Y/n msys2
there is something error when installing msys2 command
i gotta do all this just to write hello world this is so stupid codeing is way over complicated
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
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
Code is in the GitHub link in the video description
You should see what error the line starts at. Learning how to debug is a useful skill
@@KennyYipCoding I did everything you said and tbh I didn't find any error in any of those lines
@@KennyYipCoding but thank youu
thanks!
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
thanks so much this was a good clean start
is gcc better than MS C++?
Thanks a lot, bro 🙏
it works if I create files on desktop, but any other place and I receive an error. any ideas?
hi there! after i click run code, this message pops up : launch: program 'C:\Users\mypc\OneDrive\Desktop\test.exe' does not exist
why isnt my bloody cout statement being recognised?????????
@@dylanmuruppel4929 what does the error say when you run the code?
why isnt my bloody cout statement being recognised?????????
Thank you so much! A try a lot of videos and always struggeles in running C and C++ code . Regards👏💯
Hey bro, what's the difference between blue one and purple one?
Why do you use size_t
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.
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 😢
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. 🙂
@@KennyYipCoding you are correct they working flawless on my laptop 💻 btw thanks for your playlist of JavaScript game development 🙏🏻
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 👍🏻
Good 👍 job
🎉
Its not compiling😭😭tried 4 times... "launch.json" is coming again and again
Thank you very much
Really well made video, super interesting!
thanku sir
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.
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.
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
@@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.
Thankyou so muchhh
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 (:
Thanks kenny, this tutorial helped me out a lot
Why "select language" is not showing on my vs code😮😮. I need help please
Would it be possible to do a virtual pet game?
this select language option is not showing in my text file, what can i do to get it back?
for me instead of adding in Path under USER variables, I added it to Path under SYSTEM variables and it worked.
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)
Thank you!
I don't know but the project doesn't respond to mobile clicks
Bro striped , wrapped candy and choco is not becoming after mixing 4 -5-6 candy please tell me solution
it isnt working im not sure why as i followed the steps but rip
love this!
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?
doesnt work ;/
you do not host that code it is not website yet.
great job!
thank you